code: public void clearLayersStates() {
          for (Layer layer : layers) {
              layer.clear();
              layer.clearNoiseWeightParams();
          }
  
          for (GraphVertex vertex : vertices) {
              vertex.clearVertex();
          }
      }
docs: This method just makes sure there's no state preserved within layers