Documentation of 'org.jgrapht.alg.interfaces.ShortestPathAlgorithm' Java class
ShortestPathAlgorithm
org.jgrapht.alg.interfaces

Interface ShortestPathAlgorithm<V,E>

    • Method Detail

      • getPath

        GraphPath<V,E> getPath(V source,
                               V sink)
        Get a shortest path from a source vertex to a sink vertex.
        Parameters:
        source - the source vertex
        sink - the target vertex
        Returns:
        a shortest path or null if no path exists
      • getPathWeight

        double getPathWeight(V source,
                             V sink)
        Get the weight of the shortest path from a source vertex to a sink vertex. Returns Double.POSITIVE_INFINITY if no path exists.
        Parameters:
        source - the source vertex
        sink - the sink vertex
        Returns:
        the weight of the shortest path from a source vertex to a sink vertex, or Double.POSITIVE_INFINITY if no path exists

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.