Skip to content
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.

Update connected_components.jl #188

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update connected_components.jl #188

wants to merge 3 commits into from

Conversation

sbromberger
Copy link
Contributor

This fixes the bug in #187. It seems appropriate to check for w_color > 0 instead of ==1 since it shouldn't matter here that the vertex hasn't been explored. We're doing a dfs for each vertex whose colormap !=0 in any case.

That said, I'm not really an expert in Tarjan's algorithm, so please review it :)

This fixes the bug in #187. It seems appropriate to check for `w_color > 0` instead of `==1` since it shouldn't matter here that the vertex hasn't been explored. We're doing a dfs for each vertex whose colormap !=0 in any case.
@sbromberger
Copy link
Contributor Author

Hm. Apparently the fix that works for LightGraphs doesn't carry over to Graphs. Let me dig some more.

@sbromberger sbromberger mentioned this pull request Aug 25, 2016
KristofferC pushed a commit to KristofferC/Graphs.jl that referenced this pull request Oct 9, 2021
KristofferC pushed a commit to KristofferC/Graphs.jl that referenced this pull request Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants