pub fn all_pairs_shortest<N, E>( graph: &Graph<N, E>, ) -> HashMap<(NodeId, NodeId), f32>
Floyd-Warshall: all-pairs shortest paths.