Module Graph__Path.Dijkstra
Parameters
Signature
val shortest_path : G.t -> G.V.t -> G.V.t -> G.E.t list * W.tshortest_path g v1 v2computes the shortest path from vertexv1to vertexv2in graphg. The path is returned as the list of followed edges, together with the total length of the path. raiseNot_foundif the path fromv1tov2does not exist.Complexity: at most O((V+E)log(V))