V - Vertex typeE - Edge typepublic class TopologicalOrderIterator<V,E extends DefaultEdge> extends Object implements Iterator<V>
| Modifier and Type | Field and Description |
|---|---|
(package private) Map<V,int[]> |
countMap |
(package private) List<V> |
empties |
private DefaultDirectedGraph<V,E> |
graph |
| Constructor and Description |
|---|
TopologicalOrderIterator(DirectedGraph<V,E> graph) |
| Modifier and Type | Method and Description |
|---|---|
(package private) Set<V> |
findCycles() |
boolean |
hasNext() |
V |
next() |
static <V,E extends DefaultEdge> |
of(DirectedGraph<V,E> graph) |
private void |
populate(Map<V,int[]> countMap,
List<V> empties) |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprivate final DefaultDirectedGraph<V,E extends DefaultEdge> graph
public TopologicalOrderIterator(DirectedGraph<V,E> graph)
public static <V,E extends DefaultEdge> Iterable<V> of(DirectedGraph<V,E> graph)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.