pub fn path_cost(path: &[Vertex]) -> u32Expand description
The cost of one path: the time of its final arrival at its last vertex.
Waits before the final arrival count, also waits at the goal before leaving it again.
Trailing waits at the last vertex do not. An empty path costs 0.
ยงPanics
Panics if a path has more than u32::MAX positions.