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 BUG in graph reverse method & Add needed tests #916

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

Conversation

itsamirhn
Copy link

This PR fix the issue in #873.

The issue was in the old reverse method, edges reversed one by one and this was making issue for graphs with cycle of length 2. For example, when graph with only two edges AB and BA was reversing, on reversing AB, BA was exist and there will be crash.

@itsamirhn itsamirhn changed the title Fix graph reverse method & Add needed tests Fix BUG in graph reverse method & Add needed tests Jul 30, 2022
@itsamirhn
Copy link
Author

Would you please check this PR? @trekhleb

@itsamirhn itsamirhn force-pushed the fix-graph-reverse branch from 71b2b0f to ede3b37 Compare June 3, 2024 22:37
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

Successfully merging this pull request may close these issues.

1 participant