int removeEdges ( final PrepEdgeFilter bothFilter , List < IntArrayList > components , int min ) { // remove edges determined from nodes but only if less than minimum size EdgeExplorer explorer = ghStorage . createEdgeExplorer ( bothFilter ) ; int removedEdges = 0 ; for ( IntArrayList component : components ) { removedEdges += removeEdges ( explorer , bothFilter . getAccessEnc ( ) , component , min ) ; } return removedEdges ; }
This method removes the access to edges available from the nodes contained in the components . But only if a components size is smaller then the specified min value .