public class SlowDFSDiscoverTimeIterator<T> extends DFSDiscoverTimeIterator<T>
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
modCount| Modifier | Constructor and Description |
|---|---|
protected |
SlowDFSDiscoverTimeIterator()
For use with extreme care by subclasses that know what they're doing.
|
|
SlowDFSDiscoverTimeIterator(Graph<T> G)
Constructor SlowDFSDiscoverTimeIterator.
|
|
SlowDFSDiscoverTimeIterator(Graph<T> G,
Iterator<T> nodes)
Construct a depth-first enumerator across the (possibly improper) subset of nodes reachable
from the nodes in the given enumeration.
|
|
SlowDFSDiscoverTimeIterator(Graph<T> G,
T N)
Construct a depth-first enumerator starting with a particular node in a directed graph.
|
| Modifier and Type | Method and Description |
|---|---|
protected Iterator<? extends T> |
getConnected(T n)
get the out edges of a given node
|
protected Iterator<? extends T> |
getPendingChildren(Object n) |
protected void |
init(Graph<T> G,
Iterator<? extends T> nodes) |
protected void |
setPendingChildren(T v,
Iterator<? extends T> iterator)
Method setPendingChildren.
|
hasNext, init, init, next, remove, visitEdgeadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitforEachRemainingcontainsAll, equals, hashCodeparallelStream, streampublic static final long serialVersionUID
protected SlowDFSDiscoverTimeIterator()
public SlowDFSDiscoverTimeIterator(Graph<T> G, T N)
G - the graph whose nodes to enumeratepublic SlowDFSDiscoverTimeIterator(Graph<T> G, Iterator<T> nodes)
G - the graph whose nodes to enumeratenodes - the set of nodes from which to start searchingpublic SlowDFSDiscoverTimeIterator(Graph<T> G) throws NullPointerException
NullPointerException - if G is nullprotected Iterator<? extends T> getPendingChildren(Object n)
getPendingChildren in class DFSDiscoverTimeIterator<T>protected void setPendingChildren(T v, Iterator<? extends T> iterator)
setPendingChildren in class DFSDiscoverTimeIterator<T>protected Iterator<? extends T> getConnected(T n)
DFSDiscoverTimeIteratorgetConnected in class DFSDiscoverTimeIterator<T>n - the node of which to get the out edges