Skip to content

Fix loop range in negative weight cycle detection#78

Merged
SamirPaulb merged 1 commit into
SamirPaulb:mainfrom
Ujwal200707:main
May 3, 2026
Merged

Fix loop range in negative weight cycle detection#78
SamirPaulb merged 1 commit into
SamirPaulb:mainfrom
Ujwal200707:main

Conversation

@Ujwal200707
Copy link
Copy Markdown
Contributor

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.
@SamirPaulb SamirPaulb merged commit 190934c into SamirPaulb:main May 3, 2026
SamirPaulb added a commit that referenced this pull request May 4, 2026
Fix loop range in negative weight cycle detection
SamirPaulb added a commit that referenced this pull request May 4, 2026
Fix loop range in negative weight cycle detection
SamirPaulb added a commit that referenced this pull request May 4, 2026
Fix loop range in negative weight 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.

2 participants