pub fn floyd_warshall(g: &Graph) -> Result<AllPairsShortestPaths, ErrorsJSL>Expand description
Floyd-Warshall, O(V³) time and O(V²) memory; negative edges are allowed. Returns an error
if the graph has a negative cycle (a negative diagonal entry).