Class TarjanSCC.ConnectedComponents
java.lang.Object
com.graphhopper.routing.subnetwork.TarjanSCC.ConnectedComponents
- Enclosing class:
- TarjanSCC
-
Method Summary
Modifier and TypeMethodDescriptioncom.carrotsearch.hppc.IntArrayList
A reference to the biggest component contained ingetComponents()
or an empty list if there are either no components or the biggest component has only a single node (and hencegetComponents()
is empty).List<com.carrotsearch.hppc.IntArrayList>
A list of arrays each containing the nodes of a strongly connected component.int
getNodes()
com.carrotsearch.hppc.BitSet
The set of nodes that form their own (single-node) component.int
The total number of strongly connected components.
-
Method Details
-
getComponents
A list of arrays each containing the nodes of a strongly connected component. Components with only a single node are not included here, but need to be obtained usinggetSingleNodeComponents()
. -
getSingleNodeComponents
public com.carrotsearch.hppc.BitSet getSingleNodeComponents()The set of nodes that form their own (single-node) component. IfTarjanSCC.excludeSingleNodeComponents
is enabled this set will be empty. -
getTotalComponents
public int getTotalComponents()The total number of strongly connected components. This always includes single-node components. -
getBiggestComponent
public com.carrotsearch.hppc.IntArrayList getBiggestComponent()A reference to the biggest component contained ingetComponents()
or an empty list if there are either no components or the biggest component has only a single node (and hencegetComponents()
is empty). -
getNodes
public int getNodes()
-