Documentation of 'edu.uci.ics.jung.algorithms.shortestpath.Distance' Java class
Distance
edu.uci.ics.jung.algorithms.shortestpath

Interface Distance<V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Number getDistance(V source, V target)
      Returns the distance from the source vertex to the target vertex.
      java.util.Map<V,java.lang.Number> getDistanceMap(V source)
      Returns a Map which maps each vertex in the graph (including the source vertex) to its distance (represented as a Number) from source.
    • Method Detail

      • getDistance

        java.lang.Number getDistance(V source,
                                     V target)
        Returns the distance from the source vertex to the target vertex. If target is not reachable from source, returns null.
        Parameters:
        source - the vertex from which distance is to be measured
        target - the vertex to which distance is to be measured
        Returns:
        the distance from source to target
      • getDistanceMap

        java.util.Map<V,java.lang.Number> getDistanceMap(V source)
        Returns a Map which maps each vertex in the graph (including the source vertex) to its distance (represented as a Number) from source. If any vertex is not reachable from source, no distance is stored for that vertex.
        Parameters:
        source - the vertex from which distances are to be measured
        Returns:
        a Map of the distances from source to other vertices in the graph

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.