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 SummaryConstructorsConstructorDescriptionDepthFirstSearchResult(Map<Vertex, Vertex> paths, DynamicSequence<Vertex> visited) Construct a depth-first search result.
- 
Method Summary
- 
Constructor Details- 
DepthFirstSearchResultConstruct a depth-first search result.- Parameters:
- paths- the paths found to connected vertices
- visited- the order vertices were finished visiting in
 
 
- 
- 
Method Details- 
pathsGet the paths found to connected vertices.- Returns:
- the paths
 
- 
visitedGet the order vertices were finished being visited in.- Returns:
- the order of vertices visited
 
 
-