Package graphs

Interface ShortestPathSolver<V>

    • Method Detail

      • solution

        List<V> solution​(V goal)
        Returns the single-pair shortest path from a start defined in Constructor#run(Graph, V) to the goal.
        Parameters:
        goal - the goal vertex.
        Returns:
        a list of vertices representing the shortest path.