getShortestEdge

open fun getShortestEdge(startFrom: V, endWith: V, onlyWeighted: Boolean = true, defaultWeight: Double = Edge.DefaultWeight): Edge<V, E>?

Returns shortest edge between startFrom and endWith vertexes if present; null otherwise. If onlyWeighted is false for edges without weight the defaultWeight will be used. If onlyWeighted is true the edges without weight will not be taken into account.

Throws