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 hashing of SCCs in dedupe #788

Open
wants to merge 2 commits into
base: ghc-8.6
Choose a base branch
from

Conversation

tomsmalley
Copy link

This is a rebased version of #787 to remove the extra commit

Fixes #748

We hash an SCC by concatenating the hashes of all the nodes. Previously
we sorted the nodes by the hashes first, which meant two graphs with
identical nodes would get the same hash, even if the edges were
different. This commit changes the sorting to take topology into
account, thereby fixing the bug.

We hash an SCC by concatenating the hashes of all the nodes. Previously
we sorted the nodes by the hashes first, which meant two graphs with
identical nodes would get the same hash, even if the edges were
different. This commit changes the sorting to take topology into
account, thereby fixing the bug.
@tomsmalley tomsmalley mentioned this pull request May 12, 2020
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.

-dedupe breaks mappending Text
1 participant