pub fn path_cost<G: Graph + ?Sized>(graph: &G, path: &[usize]) -> Option<f64>
The cost of path if every consecutive pair is an edge; None otherwise (or if empty).
path
None