Class AbstractGraphIterator
Object
AbstractGraphIterator
- All Implemented Interfaces:
GraphIterator
- Direct Known Subclasses:
BreadthFirstTopologicalIterator
,DirectedBreadthFirstTopologicalIterator
,SourceGraphIterator
An abstract implementation of GraphIterator.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGraph()
Returns the graph being traversed.Returns the traversal for the iterator.Returns the walker being traversed over the graph.void
setTraversal
(GraphTraversal traversal) Sets the traversal for the iterator.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface GraphIterator
cont, init, killBranch, next
-
Constructor Details
-
AbstractGraphIterator
public AbstractGraphIterator()
-
-
Method Details
-
setTraversal
Description copied from interface:GraphIterator
Sets the traversal for the iterator.- Specified by:
setTraversal
in interfaceGraphIterator
- Parameters:
traversal
- The traversal requesting components from the iterator.- See Also:
-
getTraversal
Description copied from interface:GraphIterator
Returns the traversal for the iterator.- Specified by:
getTraversal
in interfaceGraphIterator
- Returns:
- The traversal requesting components from the iterator.
- See Also:
-
getGraph
Returns the graph being traversed.- Returns:
- The graph being traversed.
- See Also:
-
getWalker
Returns the walker being traversed over the graph.- Returns:
- The walker being traversed over the graph.
- See Also:
-