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

Update connected_components.jl#188

Open
sbromberger wants to merge 3 commits intoJuliaAttic:masterfrom
sbromberger:patch-2
Open

Update connected_components.jl#188
sbromberger wants to merge 3 commits intoJuliaAttic:masterfrom
sbromberger:patch-2

Conversation

@sbromberger
Copy link
Copy Markdown
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
Copy Markdown
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