|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.util.graph.traverse.DFS
public class DFS
utilities related to depth-first search.
| Constructor Summary | |
|---|---|
DFS()
|
|
| Method Summary | ||
|---|---|---|
static
|
getReachableNodes(Graph<T> G)
Perform a DFS and return the set of all nodes visited. |
|
static
|
getReachableNodes(Graph<T> G,
java.util.Collection<? extends T> C)
Perform a DFS starting with a particular node set and return the set of all nodes visited. |
|
static
|
getReachableNodes(Graph<T> G,
java.util.Collection<? extends T> C,
Filter filter)
Perform a DFS starting with a particular node and return the set of all nodes visited. |
|
static
|
iterateDiscoverTime(Graph<T> G)
|
|
static
|
iterateDiscoverTime(Graph<T> G,
java.util.Iterator<T> roots)
|
|
static
|
iterateDiscoverTime(Graph<T> G,
T N)
|
|
static
|
iterateFinishTime(Graph<T> G)
|
|
static
|
iterateFinishTime(Graph<T> G,
java.util.Iterator<? extends T> ie)
|
|
static
|
sortByDepthFirstOrder(Graph<T> G,
T n)
Perform a DFS of a graph starting with a specified node and return a sorted list of nodes. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DFS()
| Method Detail |
|---|
public static <T> java.util.Collection<T> getReachableNodes(Graph<T> G,
java.util.Collection<? extends T> C,
Filter filter)
C - collection of nodes to start fromfilter - only traverse nodes that need this filter
java.lang.IllegalArgumentException - if C is null
public static <T> java.util.Set<T> getReachableNodes(Graph<T> G,
java.util.Collection<? extends T> C)
G - the graph containing n
java.lang.IllegalArgumentException - if C is null
public static <T> java.util.Set<T> getReachableNodes(Graph<T> G)
throws java.lang.IllegalArgumentException
G - the graph containing n
java.lang.IllegalArgumentException - if G == null
public static <T> java.util.SortedSet<T> sortByDepthFirstOrder(Graph<T> G,
T n)
G - a graphn - the initial node
public static <T> DFSDiscoverTimeIterator<T> iterateDiscoverTime(Graph<T> G)
G -
public static <T> java.util.Iterator<T> iterateDiscoverTime(Graph<T> G,
java.util.Iterator<T> roots)
throws java.lang.IllegalArgumentException
roots - roots of traversal, in order to visit in outermost loop of DFS
java.lang.IllegalArgumentException - if roots == null
public static <T> DFSDiscoverTimeIterator<T> iterateDiscoverTime(Graph<T> G,
T N)
N - root of traversal
public static <T> DFSFinishTimeIterator<T> iterateFinishTime(Graph<T> G)
throws java.lang.IllegalArgumentException
G - a graph
java.lang.IllegalArgumentException - if G == null
public static <T> DFSFinishTimeIterator<T> iterateFinishTime(Graph<T> G,
java.util.Iterator<? extends T> ie)
G - a graphie - roots of traversal, in order to visit in outermost loop of DFS
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||