org.safehaus.penrose.graph
Class GraphIterator

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

public class GraphIterator
extends java.lang.Object

Author:
Endi S. Dewata

Field Summary
 Graph graph
           
 GraphVisitor visitor
           
 
Constructor Summary
GraphIterator(Graph graph, GraphVisitor visitor)
           
 
Method Summary
 java.util.Collection getVisitedEdges()
           
 java.util.Collection getVisitedNodes()
           
 void traverse(java.lang.Object node)
           
 int traverseEdges(java.lang.Object node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graph

public Graph graph

visitor

public GraphVisitor visitor
Constructor Detail

GraphIterator

public GraphIterator(Graph graph,
                     GraphVisitor visitor)
Method Detail

traverse

public void traverse(java.lang.Object node)
              throws java.lang.Exception
Throws:
java.lang.Exception

traverseEdges

public int traverseEdges(java.lang.Object node)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getVisitedNodes

public java.util.Collection getVisitedNodes()

getVisitedEdges

public java.util.Collection getVisitedEdges()