protected void cleanUp ( ) { int prevNodeCount = ghStorage . getNodes ( ) ; PrepareRoutingSubnetworks preparation = new PrepareRoutingSubnetworks ( ghStorage , encodingManager . fetchEdgeEncoders ( ) ) ; preparation . setMinNetworkSize ( minNetworkSize ) ; preparation . setMinOneWayNetworkSize ( minOneWayNetworkSize ) ; preparation . doWork ( ) ; int currNodeCount = ghStorage . getNodes ( ) ; logger . info ( "edges: " + Helper . nf ( ghStorage . getAllEdges ( ) . length ( ) ) + ", nodes " + Helper . nf ( currNodeCount ) + ", there were " + Helper . nf ( preparation . getMaxSubnetworks ( ) ) + " subnetworks. removed them => " + Helper . nf ( prevNodeCount - currNodeCount ) + " less nodes" ) ; }
Internal method to clean up the graph .