Function rs_graph::shortestpath::bidijkstra::bidirected
source · 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 graphweights
the (non-negative) arc weightssrc
the source nodesnk
the sink node
Return the incoming arc for each node forming the shortest path tree.