Skip to main content

path_cost

Function path_cost 

Source
pub fn path_cost<G: Graph + ?Sized>(graph: &G, path: &[usize]) -> Option<f64>
Expand description

The cost of path if every consecutive pair is an edge; None otherwise (or if empty).