Package org.apache.calcite.util.graph
Class TopologicalOrderIterator<V,E extends DefaultEdge>
java.lang.Object
org.apache.calcite.util.graph.TopologicalOrderIterator<V,E>
- Type Parameters:
V
- Vertex typeE
- Edge type
- All Implemented Interfaces:
Iterator<V>
public class TopologicalOrderIterator<V,E extends DefaultEdge>
extends Object
implements Iterator<V>
Iterates over the edges of a graph in topological order.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
next()
static <V,
E extends DefaultEdge>
Iterable<V>of
(DirectedGraph<V, E> graph) void
remove()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining