Package graphs.shortestpaths
Interface ShortestPathSolver.Constructor<V>
-
- Type Parameters:
V
- the type of vertices.
- Enclosing interface:
- ShortestPathSolver<V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ShortestPathSolver.Constructor<V>
Constructor forShortestPathSolver
.- See Also:
ShortestPathSolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShortestPathSolver<V>
run(Graph<V> graph, V start)
Functional interface for running the constructor.
-
-
-
Method Detail
-
run
ShortestPathSolver<V> run(Graph<V> graph, V start)
Functional interface for running the constructor. Given an implementation ofShortestPathSolver
, refer to its constructor as (for example)ShortestPathSolver::new
.- Parameters:
graph
- the input graph.start
- the start vertex.- Returns:
- an instance of
ShortestPathSolver
.
-
-