Modifier and Type | Method and Description |
---|---|
static <N,E> List<List<N>> |
collectSCCs(Graph<N,E> graph)
Collects all strongly-connected components in a graph.
|
static <N,E> void |
findSCCs(Graph<N,E> graph,
SCCListener<N> listener)
Find all strongly-connected components in a graph.
|
public static <N,E> void findSCCs(Graph<N,E> graph, SCCListener<N> listener)
SCCListener.foundSCC(java.util.Collection)
method is invoked. The listener
object may hence not be null.
Tarjan's algorithm is used for realizing the SCC search.
graph
- the graphlistener
- the SCC listenerTarjanSCCVisitor
public static <N,E> List<List<N>> collectSCCs(Graph<N,E> graph)
Tarjan's algorithm is used for realizing the SCC search.
graph
- the graphTarjanSCCVisitor
Copyright © 2015. All Rights Reserved.