Skip to content

Fix loop range in negative weight cycle detection#78

Open
Ujwal200707 wants to merge 1 commit intoSamirPaulb:mainfrom
Ujwal200707:main
Open

Fix loop range in negative weight cycle detection#78
Ujwal200707 wants to merge 1 commit intoSamirPaulb:mainfrom
Ujwal200707:main

Conversation

@Ujwal200707
Copy link
Copy Markdown

This line ensures Bellman–Ford performs exactly the required number of relaxations (V–1) for correct shortest-path calculation and efficient negative-cycle detection.

This line ensures Bellman–Ford performs exactly the required number of relaxations (V–1) for correct shortest-path calculation and efficient negative-cycle detection.
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.

1 participant