public class EdgeTypeDepthFirstSearch<E extends EdgeTypeData,V extends EdgeTypeDfsVertex<E>>
extends java.lang.Object
Constructor and Description |
---|
EdgeTypeDepthFirstSearch(AbstractGraph<V> graph)
Prepare the depth-first search.
|
Modifier and Type | Method and Description |
---|---|
boolean |
search()
Conduct a depth-first search on the graph, visiting vertices
in no predetermined order.
|
public EdgeTypeDepthFirstSearch(AbstractGraph<V> graph)
graph
- graph on which the search will be runpublic boolean search()