Module Path.Johnson
Parameters
Signature
val all_pairs_shortest_paths : G.t -> W.t HVV.tall_pairs_shortest_paths gcomputes the distance of shortest path between all pairs of vertices ing. They are returned as a hash table mapping each pair of vertices to their distance. Ifgcontains a negative-cycle, raisesNegativeCycle lwherelis such a cycle.Complexity: at most O(VElog(V))