Package graphs

Interface ShortestPathSolver<V>

    • Method Detail

      • solution

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