public class TarjansSCCAlgorithm extends Object
See http://en.wikipedia.org/wiki/Tarjan's_strongly_connected_components_algorithm. See http://www.timl.id.au/?p=327 and http://homepages.ecs.vuw.ac.nz/~djp/files/P05.pdf
Constructor and Description |
---|
TarjansSCCAlgorithm(Graph graph,
BooleanEncodedValue accessEnc,
boolean excludeSingleNodeComponents) |
Modifier and Type | Method and Description |
---|---|
List<com.carrotsearch.hppc.IntArrayList> |
findComponents()
Find and return a list of all strongly connected components of g.
|
void |
setAdditionalEdgeFilter(EdgeFilter additionalFilter)
Allows adding an additional edge filter to exclude edges while searching for connected components.
|
public TarjansSCCAlgorithm(Graph graph, BooleanEncodedValue accessEnc, boolean excludeSingleNodeComponents)
public void setAdditionalEdgeFilter(EdgeFilter additionalFilter)
public List<com.carrotsearch.hppc.IntArrayList> findComponents()
excludeSingleNodeComponents
Copyright © 2012–2020. All rights reserved.