com.jeffpalm.graph.algorithms
Class StrongComponents2
java.lang.Object
com.jeffpalm.graph.algorithms.StrongComponents2
- All Implemented Interfaces:
- Graph.Algorithm
public class StrongComponents2
- extends java.lang.Object
- implements Graph.Algorithm
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StrongComponents2
public StrongComponents2()
compute
public void compute(Graph g)
- This is taken from the class nodes #7 p.3
- Specified by:
compute
in interface Graph.Algorithm
numStrongComponents
public int numStrongComponents(Graph g)
findStrongComponents
public java.util.Map findStrongComponents(Graph g)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)