public class BreadthFirstTopologicalIterator extends AbstractGraphIterator

| Constructor and Description |
|---|
BreadthFirstTopologicalIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected Queue |
buildQueue(Graph graph)
Builds the active node queue.
|
void |
cont(Graphable current,
GraphTraversal traversal)
Continues the iteration by incrementing the counters of any unvisited nodes related to the
current node.
|
void |
init(Graph graph,
GraphTraversal traversal)
Creates the active queue, and populates it with all nodes of degree less than 2.
|
void |
killBranch(Graphable current,
GraphTraversal traversal)
Kills the current branch of the traversal by not incremening the counters of any related
nodes.
|
Graphable |
next(GraphTraversal traversal)
Returns the next node in the active node queue.
|
getGraph, getTraversal, getWalker, setTraversalpublic void init(Graph graph, GraphTraversal traversal)
graph - The graph being whose components are being iterated over.org.geotools.graph.traverse.GraphIterator#init(Graph)public Graphable next(GraphTraversal traversal)
org.geotools.graph.traverse.GraphIterator#next()public void cont(Graphable current, GraphTraversal traversal)
current - The current component of the traversal.org.geotools.graph.traverse.GraphIterator#cont(Graphable)public void killBranch(Graphable current, GraphTraversal traversal)
current - The current component of the traversal.org.geotools.graph.traverse.GraphIterator#killBranch(Graphable)Copyright © 1996–2019 Geotools. All rights reserved.