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 for ShortestPathSolver.
    See Also:
    ShortestPathSolver
    • Method Detail

      • run

        ShortestPathSolver<V> run​(Graph<V> graph,
                                  V start)
        Functional interface for running the constructor. Given an implementation of ShortestPathSolver, refer to its constructor as (for example) ShortestPathSolver::new.
        Parameters:
        graph - the input graph.
        start - the start vertex.
        Returns:
        an instance of ShortestPathSolver.