org.quilt.graph
Class Walker

java.lang.Object
  |
  +--org.quilt.graph.Walker

public class Walker
extends java.lang.Object

Walks a Visitor through a Quilt directed graph, visiting each vertex and edge once and only once. Any subgraphs are visited with the same guarantee.

Author:
Jim Dixon

Constructor Summary
Walker()
          No-arg constructor.
 
Method Summary
 Exit visit(Directed g, Visitor guest)
          Walk through the entire graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Walker

public Walker()
No-arg constructor.

Method Detail

visit

public Exit visit(Directed g,
                  Visitor guest)
Walk through the entire graph.

Parameters:
guest - Agent which does something as we walk the graph.
Returns:
Reference to the exit Vertex of the graph.


Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.