Package com.ibm.wala.util.graph.traverse
Class DFSAllPathsFinder<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
com.ibm.wala.util.graph.traverse.DFSPathFinder<T>
com.ibm.wala.util.graph.traverse.DFSAllPathsFinder<T>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess,SequencedCollection<T>
Extends
DFSPathFinder to discover all paths from a set of root nodes
to nodes passing some Predicate.
Note that this code performs work that is potentially exponential in the size
of the underlying graph, using exponential space. It most likely won't work
even for graphs of moderate size.- See Also:
-
Field Summary
Fields inherited from class com.ibm.wala.util.graph.traverse.DFSPathFinder
G, pendingChildrenFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnected(T n) get the out edges of a given nodeMethod getPendingChildren.protected voidsetPendingChildren(T v, Iterator<? extends T> iterator) Method setPendingChildren.Methods inherited from class com.ibm.wala.util.graph.traverse.DFSPathFinder
currentPath, find, hasNextMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
DFSAllPathsFinder
-
DFSAllPathsFinder
- Throws:
IllegalArgumentException
-
-
Method Details
-
getConnected
Description copied from class:DFSPathFinderget the out edges of a given node- Overrides:
getConnectedin classDFSPathFinder<T>- Parameters:
n- the node of which to get the out edges- Returns:
- the out edges
-
getPendingChildren
Description copied from class:DFSPathFinderMethod getPendingChildren.- Overrides:
getPendingChildrenin classDFSPathFinder<T>- Returns:
- Object
-
setPendingChildren
Description copied from class:DFSPathFinderMethod setPendingChildren.- Overrides:
setPendingChildrenin classDFSPathFinder<T>
-