public static class EdgeBasedTarjanSCC.ConnectedComponents extends Object
Modifier and Type | Method and Description |
---|---|
com.carrotsearch.hppc.IntArrayList |
getBiggestComponent()
A reference to the biggest component contained in
getComponents() or an empty list if there are
either no components or the biggest component has only a single edge (and hence getComponents() is
empty). |
List<com.carrotsearch.hppc.IntArrayList> |
getComponents()
A list of arrays each containing the edge keys of a strongly connected component.
|
int |
getEdgeKeys() |
com.carrotsearch.hppc.BitSet |
getSingleEdgeComponents()
The set of edge-keys that form their own (single-edge key) component.
|
int |
getTotalComponents()
The total number of strongly connected components.
|
public List<com.carrotsearch.hppc.IntArrayList> getComponents()
getSingleEdgeComponents()
.
The edge key is either 2*edgeId (if the edge direction corresponds to the storage order) or 2*edgeId+1 (for
the opposite direction).public com.carrotsearch.hppc.BitSet getSingleEdgeComponents()
EdgeBasedTarjanSCC.excludeSingleEdgeComponents
is enabled this set will be empty.public int getTotalComponents()
public com.carrotsearch.hppc.IntArrayList getBiggestComponent()
getComponents()
or an empty list if there are
either no components or the biggest component has only a single edge (and hence getComponents()
is
empty).public int getEdgeKeys()
Copyright © 2012–2020. All rights reserved.