Skip to main content

path_weight

Function path_weight 

Source
pub fn path_weight(
    graph: &Graph,
    path: &[&str],
    weight_attr: &str,
) -> Option<f64>
Expand description

Compute the weight of a path given edge weights. Matches networkx.path_weight(G, path, weight).