pub fn bidirected<'a, G, Ws, W>(
    g: &'a G,
    weights: Ws,
    src: G::Node,
    snk: G::Node
) -> Vec<G::Edge>where
    G: IndexNetwork<'a>,
    G::Node: Hash,
    Ws: EdgeMap<'a, G, W>,
    W: NumAssign + Ord + Copy,
Expand description

Solve shortest path with bidirectional Dijkstra as bidirected graph.

The graph is considered as bidirected graph with different weights for each direction.

  • g the graph
  • weights the (non-negative) arc weights
  • src the source node
  • snk the sink node

Return the incoming arc for each node forming the shortest path tree.