|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack<T>
com.ibm.wala.util.graph.traverse.DFSDiscoverTimeIterator<T>
com.ibm.wala.util.graph.traverse.SlowDFSDiscoverTimeIterator<T>
public class SlowDFSDiscoverTimeIterator<T>
This class implements depth-first search over a Graph, return an enumeration of the nodes of the graph in order of increasing discover time. This class follows the outNodes of the graph nodes to define the graph, but this behavior can be changed by overriding the getConnected method.
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
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,
java.util.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. |
| Method Summary | |
|---|---|
protected java.util.Iterator<? extends T> |
getConnected(T n)
get the out edges of a given node |
protected java.util.Iterator<? extends T> |
getPendingChildren(java.lang.Object n)
Method getPendingChildren. |
protected void |
init(Graph<T> G,
java.util.Iterator<? extends T> nodes)
|
protected void |
setPendingChildren(T v,
java.util.Iterator<? extends T> iterator)
Method setPendingChildren. |
| Methods inherited from class com.ibm.wala.util.graph.traverse.DFSDiscoverTimeIterator |
|---|
hasNext, init, init, next, remove, visitEdge |
| Methods inherited from class java.util.Stack |
|---|
empty, peek, pop, push, search |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
protected SlowDFSDiscoverTimeIterator()
public SlowDFSDiscoverTimeIterator(Graph<T> G,
T N)
G - the graph whose nodes to enumerate
public SlowDFSDiscoverTimeIterator(Graph<T> G,
java.util.Iterator<T> nodes)
G - the graph whose nodes to enumeratenodes - the set of nodes from which to start searching
public SlowDFSDiscoverTimeIterator(Graph<T> G)
throws java.lang.NullPointerException
G -
java.lang.NullPointerException - if G is null| Method Detail |
|---|
protected java.util.Iterator<? extends T> getPendingChildren(java.lang.Object n)
DFSDiscoverTimeIterator
getPendingChildren in class DFSDiscoverTimeIterator<T>
protected void setPendingChildren(T v,
java.util.Iterator<? extends T> iterator)
setPendingChildren in class DFSDiscoverTimeIterator<T>v - iterator -
protected void init(Graph<T> G,
java.util.Iterator<? extends T> nodes)
protected java.util.Iterator<? extends T> getConnected(T n)
DFSDiscoverTimeIterator
getConnected in class DFSDiscoverTimeIterator<T>n - the node of which to get the out edges
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||