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

algo::bellman_ford should return the source and target indices when returning the NegativeCycle error. #195

Closed
mitchmindtree opened this issue Dec 31, 2017 · 1 comment

Comments

@mitchmindtree
Copy link
Contributor

This can be useful when using bellman_ford to find negative cycles (e.g. in exchange arbitrage).

@bluss
Copy link
Member

bluss commented Dec 31, 2017

😄 That's a fun idea, but I will actually close this. We don't need all loose ideas as issues. If this is an actual use case that you are pursuing, make sure to say so in the issue (and it will not be closed).

As always, I hope that algorithms can be built upon petgraph and just not in petgraph.

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

No branches or pull requests

2 participants