pub fn undirected<'a, G, W, F>(
    g: &'a G,
    weights: F
) -> Vec<Vec<Option<(W, G::Node<'a>)>>>where
    G: IndexGraph,
    W: NumAssign + Ord + Copy + Bounded,
    F: Fn(G::Edge<'a>) -> W,
Expand description

Solve the All-Pairs-Shortest-Path-Problem with the algorithm of Floyd and Warshall on an undirected graph.

Returns a 2D vector with entries (dist, pred) for each pair of nodes where dist is the length of the shortest path and pred is the predecessor of the last node.