getPath

abstract fun getPath(startFrom: V, endWith: V): Path<V, E>?

Returns optimal path between startFrom and endWith vertexes if it exists; null otherwise. To determinate the optimal path, the weight of edges is taken into account. For edges without weight Edge.DefaultWeight is used.

Throws