Closed adamsardar closed 2 years ago
Hi, This function return the shortest path between each combination of an OD matrix, more precisely "one of the shortest paths" if there are several ones. Since all edges have cost 1, BCDF and BEDF equals to 3 so the algorithm return the first it has reached (because C has been popped from the priority queue before E). I agree the function name could be misinterpreted...
I've noticed some surprising behaviour in
get_multi_paths
:If I use an undirected graph:
Represented by adjacency matrix:
Then
get_multi_paths
does not return all of the paths between nodes B and F:There are two degenerate paths from B to F: one via C, which is reported, and one via E, which is not.
Is this a bug or have I used the tool incorrectly? Or assumed that it should return all paths when it wont?