agl2.alg
Class StrongComponents
java.lang.Object
|
+--agl2.alg.StrongComponents
- public class StrongComponents
- extends java.lang.Object
The StrongComponents
description.
using tarjan's method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graph
protected DirectedGraph graph
visitor
protected GraphVisitor visitor
StrongComponents
public StrongComponents(DirectedGraph g,
GraphVisitor v)
- The default constructor
apply
public void apply(java.lang.Object root)
visitNode
public void visitNode(java.lang.Object v)
- Visit the nodes in the graph in Order of SCC
getComponents
public static DirectedGraph getComponents(DirectedGraph g,
java.lang.Object root)
- Return the graph of the SCC's
getComponents
public static DirectedGraph getComponents(BidirectedGraph g,
java.lang.Object root)