Skip to content

feat: add bellman-ford algorithm #136

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

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

caojoshua
Copy link
Contributor

Add bellman-ford algorithm to find shortest paths from single source in a graph. It is able to detect negative weight cycles. See https://en.wikipedia.org/wiki/Bellman%E2%80%93Ford_algorithm

@raklaptudirm raklaptudirm merged commit 839efc7 into TheAlgorithms:master Jun 12, 2023
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

Successfully merging this pull request may close these issues.

3 participants