org.geotools.graph.traverse
Class BasicGraphTraversal

java.lang.Object
  extended byorg.geotools.graph.traverse.AbstractGraphTraversal
      extended byorg.geotools.graph.traverse.BasicGraphTraversal
All Implemented Interfaces:
GraphTraversal

public class BasicGraphTraversal
extends AbstractGraphTraversal

A very simple traversal in which a single pass is made over the components of the graph.


Field Summary
 
Fields inherited from interface org.geotools.graph.traverse.GraphTraversal
CONTINUE, STOP
 
Constructor Summary
BasicGraphTraversal(Graph graph, GraphWalker walker)
           
 
Method Summary
protected  void walk(java.util.Collection elements)
           
 void walkEdges()
          Iterates over all edges in the graph.
 void walkNodes()
          Iterates over all nodes in the graph.
 
Methods inherited from class org.geotools.graph.traverse.AbstractGraphTraversal
finish, getGraph, getWalker, initEdges, initNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicGraphTraversal

public BasicGraphTraversal(Graph graph,
                           GraphWalker walker)
Method Detail

walkNodes

public void walkNodes()
Iterates over all nodes in the graph.

Specified by:
walkNodes in interface GraphTraversal
Specified by:
walkNodes in class AbstractGraphTraversal

walkEdges

public void walkEdges()
Iterates over all edges in the graph.

Specified by:
walkEdges in interface GraphTraversal
Specified by:
walkEdges in class AbstractGraphTraversal

walk

protected void walk(java.util.Collection elements)