Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dijkstra 3D All Paths #39

Open
h-cohen opened this issue May 23, 2023 · 1 comment
Open

Dijkstra 3D All Paths #39

h-cohen opened this issue May 23, 2023 · 1 comment
Labels
question Further information is requested

Comments

@h-cohen
Copy link

h-cohen commented May 23, 2023

Hi,

Trying to figure out how to use the parents function.
My goal is to obtain ALL possible shortest paths between a pair of nodes (or voxels).

Using the path_from_parents function is returning the same value as the regular dijkstra function.

Thank you for all your help,
Cheers

@william-silversmith william-silversmith added the question Further information is requested label May 23, 2023
@william-silversmith
Copy link
Contributor

Hi! Path from parents is used to find a single shortest path from any point on the grid. Currently, there is no function in dijkstra3d that exhaustively searches for all equal paths.

networkx does have a function for this: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.shortest_paths.generic.all_shortest_paths.html#networkx.algorithms.shortest_paths.generic.all_shortest_paths

I don't know what your performance requirements are though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants