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

fix is_cyclic and topological_sort #284

Merged
merged 9 commits into from
Jul 6, 2023

Conversation

etiennedeg
Copy link
Member

Fixes a bug introduced by #266

We should not mark a vertex visited when we store the neighbors on the stack.

@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Merging #284 (c0d021d) into master (d3b2706) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #284      +/-   ##
==========================================
- Coverage   97.29%   97.29%   -0.01%     
==========================================
  Files         114      114              
  Lines        6659     6657       -2     
==========================================
- Hits         6479     6477       -2     
  Misses        180      180              

@gdalle gdalle added the bug Something isn't working label Jul 5, 2023
@gdalle
Copy link
Member

gdalle commented Jul 5, 2023

Is the meaning of the numbers (the one I had you add in a comment) still the same?

@etiennedeg
Copy link
Member Author

No, I forgot to update the comment for is_cyclic. When we stack the neighbors of a node, we should not mark these already as visited, so we need one less color.

Copy link
Member

@gdalle gdalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gdalle gdalle merged commit 57cd3ac into JuliaGraphs:master Jul 6, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants