| Constructor and Description |
|---|
DepthFirstSearch(AbstractGraph<T> 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 DepthFirstSearch(AbstractGraph<T> graph)
graph - graph on which the search will be runpublic boolean search()