public class StronglyConnectedComponents<T extends DfsVertex & ComponentVertex,U extends OrderedDfsVertex>
extends java.lang.Object
| Constructor and Description |
|---|
StronglyConnectedComponents(AbstractGraph<T> graph,
VertexFactory<U> vertexFactory,
GraphFactory<U> graphFactory)
Prepare to mark the graph for strongly connected components.
|
| Modifier and Type | Method and Description |
|---|---|
Transposer<T,U> |
run()
Marks the strongly connected components in the graph by setting
the treeNumber field of each vertex accordingly.
|
public StronglyConnectedComponents(AbstractGraph<T> graph, VertexFactory<U> vertexFactory, GraphFactory<U> graphFactory)
graph - graph for which strongly connected components are to be determined.public Transposer<T,U> run()