org.safehaus.penrose.graph
Class Graph
java.lang.Object
org.safehaus.penrose.graph.Graph
- public class Graph
- extends java.lang.Object
- Author:
- Endi S. Dewata
|
Constructor Summary |
Graph()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Graph
public Graph()
addNode
public void addNode(java.lang.Object node)
getNodes
public java.util.Collection getNodes()
addEdge
public void addEdge(GraphEdge edge)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEdge
public GraphEdge getEdge(java.util.Set nodes)
getEdges
public java.util.Collection getEdges()
getEdges
public java.util.Collection getEdges(java.lang.Object node)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEdgeObjects
public java.util.Collection getEdgeObjects(java.lang.Object node)
throws java.lang.Exception
- Throws:
java.lang.Exception
toString
public java.lang.String toString()
traverse
public void traverse(GraphVisitor visitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
traverse
public void traverse(GraphVisitor visitor,
java.lang.Object node)
throws java.lang.Exception
- Throws:
java.lang.Exception