Package graphs.shortestpaths
Interface ShortestPathSolver<V>
-
- Type Parameters:
V
- the type of vertices.
- All Known Implementing Classes:
DijkstraSolver
,ToposortDAGSolver
public interface ShortestPathSolver<V>
Single-source shortest paths from a start vertex to all reachable vertices.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ShortestPathSolver.Constructor<V>
Constructor forShortestPathSolver
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<V>
solution(V goal)
Returns the single-pair shortest path from a start vertex to the goal.
-