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

Possible bug in articulation.[cpp|py|...] #94

Open
Edmond-Mo opened this issue Nov 24, 2021 · 0 comments
Open

Possible bug in articulation.[cpp|py|...] #94

Edmond-Mo opened this issue Nov 24, 2021 · 0 comments

Comments

@Edmond-Mo
Copy link

This condition doesn't check for node u's parent to see if it's a root node.

if (dfs_low[v] >= dfs_num[u]) // for articulation point

I think it should be something like this:
if (dfs_parent[u] != -1 && dfs_low[v] >= dfs_num[u])

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