Skip to main content

single_source_dijkstra_path_length

Function single_source_dijkstra_path_length 

Source
pub fn single_source_dijkstra_path_length(
    graph: &Graph,
    source: &str,
    weight_attr: &str,
) -> Vec<(String, f64)>
Expand description

Single-source Dijkstra returning distances only. Matches networkx.single_source_dijkstra_path_length(G, source, weight=weight).