agl2
Class Graphs
java.lang.Object
|
+--agl2.Graphs
- public class Graphs
- extends java.lang.Object
The Graphs
a collections of graph routine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Graphs
public Graphs()
print
public static void print(java.io.PrintStream out,
VertexGraph g)
toString
public static java.lang.String toString(VertexGraph g)
graphViz
public static java.lang.String graphViz(VertexGraph g)
nestedString
public static java.lang.String nestedString(VertexGraph g,
java.lang.Object root)
- Produce a string presentation of the graph
in a DFS fasion with indenting
Example:
root
node1
node2
node3
node4
node5
node6