|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TraversalAlg<V extends VPred,E extends EdgeSPT>
Interface for algorithms that traverse a graph.
| Method Summary | |
|---|---|
void |
calculate(V startNode)
Performs the graph search algorithm from the given start node. |
TraversalGraph<V,E> |
reconstructTraversalGraph()
Returns the SPT (BFS/Dijkstra) or traversal graph (DFS) from the last start node calculate(V) was called on. |
| Method Detail |
|---|
void calculate(V startNode)
startNode - Start nodeTraversalGraph<V,E> reconstructTraversalGraph()
calculate(V) was called on. For BFS/Dijkstra, the
shortest path "tree" we return may contain multiple shortest paths.
calculate(V)
was called on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||