org.safehaus.penrose.graph
Class Graph

java.lang.Object
  extended byorg.safehaus.penrose.graph.Graph

public class Graph
extends java.lang.Object

Author:
Endi S. Dewata

Constructor Summary
Graph()
           
 
Method Summary
 void addEdge(GraphEdge edge)
           
 void addNode(java.lang.Object node)
           
 GraphEdge getEdge(java.util.Set nodes)
           
 java.util.Collection getEdgeObjects(java.lang.Object node)
           
 java.util.Collection getEdges()
           
 java.util.Collection getEdges(java.lang.Object node)
           
 java.util.Collection getNodes()
           
 java.lang.String toString()
           
 void traverse(GraphVisitor visitor)
           
 void traverse(GraphVisitor visitor, java.lang.Object node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Graph

public Graph()
Method Detail

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