Package dsa.lab11.base
Class DepthFirstSearchResult<Vertex>
java.lang.Object
dsa.lab11.base.DepthFirstSearchResult<Vertex>
- Type Parameters:
Vertex
- the vertex type
The result of performing (normal or full) depth-first search.
-
Constructor Summary
ConstructorsConstructorDescriptionDepthFirstSearchResult
(Map<Vertex, Vertex> paths, DynamicSequence<Vertex> visited) Construct a depth-first search result. -
Method Summary
-
Constructor Details
-
DepthFirstSearchResult
Construct a depth-first search result.- Parameters:
paths
- the paths found to connected verticesvisited
- the order vertices were finished visiting in
-
-
Method Details
-
paths
Get the paths found to connected vertices.- Returns:
- the paths
-
visited
Get the order vertices were finished being visited in.- Returns:
- the order of vertices visited
-