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

Problem on article "Finding a Negative Cycle in the Graph" #1220

Open
SneakyPeaky opened this issue Jan 14, 2024 · 0 comments
Open

Problem on article "Finding a Negative Cycle in the Graph" #1220

SneakyPeaky opened this issue Jan 14, 2024 · 0 comments

Comments

@SneakyPeaky
Copy link

Article: Finding a Negative Cycle in the Graph

Problem:
Line

if(d[e.a] < INF)

from the code sample is always executed (because array 'd' was never initialized with infinites), and can be removed

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

1 participant