pub fn path_distances(path: &[Node]) -> u32
Returns the sum distance that all the nodes’ are from each other.