public class DirectedBreadthFirstTopologicalIterator extends AbstractGraphIterator
Constructor and Description |
---|
DirectedBreadthFirstTopologicalIterator() |
Modifier and Type | Method and Description |
---|---|
protected Queue |
buildQueue(Graph graph) |
void |
cont(Graphable current,
GraphTraversal traversal)
Signals to the iterator that iteration should continue from the current component in the
traversal.
|
void |
init(Graph graph,
GraphTraversal traversal)
Signals to the itereator that iteration is about to begin.
|
void |
killBranch(Graphable current,
GraphTraversal traversal)
Signals the iterator to kill the branch at the current component.
|
Graphable |
next(GraphTraversal traversal)
Returns the next graph component in the iteration.
|
getGraph, getTraversal, getWalker, setTraversal
public DirectedBreadthFirstTopologicalIterator()
public void init(Graph graph, GraphTraversal traversal)
GraphIterator
graph
- The graph being whose components are being iterated over.public Graphable next(GraphTraversal traversal)
GraphIterator
public void cont(Graphable current, GraphTraversal traversal)
GraphIterator
current
- The current component of the traversal.public void killBranch(Graphable current, GraphTraversal traversal)
GraphIterator
current
- The current component of the traversal.Copyright © 1996–2019 Geotools. All rights reserved.