void markNodesRemovedIfUnreachable ( ) { EdgeExplorer edgeExplorer = ghStorage . createEdgeExplorer ( ) ; for ( int nodeIndex = 0 ; nodeIndex < ghStorage . getNodes ( ) ; nodeIndex ++ ) { if ( detectNodeRemovedForAllEncoders ( edgeExplorer , nodeIndex ) ) ghStorage . markNodeRemoved ( nodeIndex ) ; } }
Removes nodes if all edges are not accessible . I . e . removes zero degree nodes .