-
Notifications
You must be signed in to change notification settings - Fork 310
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
[FEA]: shortest_path
implementation in nx-cugraph
#4178
Comments
Thanks @lorenzobalzani for the feature request!
We typically choose to implement algorithms for each release based on a combination of factors including requests for them, how much effort they are to add, and how much we think they'll be needed by community members and projects. Now that you've requested |
@eriknw - We can partially implement this today through the C API. There are several cases:
|
Hi again, @lorenzobalzani I'll close this issue, but we can re-open it or create a new one if you find that there's still more to do. Currently, graphs with negative weights are not supported, but we should have an update in an upcoming release to remove that limitation (I created this issue for that) |
Is this a new feature, an improvement, or a change to existing functionality?
New Feature
How would you describe the priority of this feature request
Critical (currently preventing usage)
Please provide a clear description of problem this feature solves
I would like
nx-cugraph
to implement the methodshortest_path
. Current algorithms implementation includes only path lengths, as you can see here.Could an alternative be implementing
single_source_shortest_path
and access the path by looking up at the target node idx in the result? Maybe it's even easier sincesingle_source_shortest_path_lengths
is already there.Are there any motivations why this feature hasn't been implemented yet?
Describe your ideal solution
A wrapper for
shortest_path()
that accepts a source and a target node in the graph and returns ONE of the possible shortest paths (if many).Function signature to wrap:
Describe any alternatives you have considered
I do not see any alternatives, as of today.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: