org.safehaus.penrose.graph
Class GraphIterator
java.lang.Object
org.safehaus.penrose.graph.GraphIterator
- public class GraphIterator
- extends java.lang.Object
- Author:
- Endi S. Dewata
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graph
public Graph graph
visitor
public GraphVisitor visitor
GraphIterator
public GraphIterator(Graph graph,
GraphVisitor visitor)
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()