pub fn calc_path_multiple_sources_and_targets(
    fast_graph: &FastGraph,
    sources: Vec<(NodeId, Weight)>,
    target: Vec<(NodeId, Weight)>
) -> Option<ShortestPath>
Expand description

Calculates the shortest path from any of the sources to any of the targets.

The path returned will be the one with minimum weight among all possible paths between the sources and targets. The sources and targets can also be assigned an initial weight. In this case the path returned will be the one that minimizes start_weight + path-weight + target_weight. The weight of the path also includes start_weight and target_weight.