-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
could_be_isomorphic returns False for an isomorphic graph on 3.2 #7038
Comments
Thanks for reporting this!! Also, can you describe how you know these are isomorphic graphs? |
Yes, sorry! Both left and right come from the same edge list, only ids are remapped. It is the same graph and it is isomorphic as proved by the assertion. Something has changed in the |
I can verify that `nx.triangles was changed 3 months ago in #6258 so I think an error was introduced there -- something about self-loops but even worse, something that counts the triangles differently depending on relabeling the nodes. |
Thanks soo much for reporting this bug. It would have been hard for me to find for sure. I guess the result is: we should never use |
Wow, that is a tricky one. Thanks for debugging! |
Current Behavior
We have noticed a new failure on downstream testing using isomorphic checks when updating to networkx 3.2. We know that the graph we check is isomorphic, yet
nx.could_be_isomorphic
started returningFalse
, which I believe is a regression in the latest release.Expected Behavior
nx.could_be_isomorphic
should returnTrue
for an isomorphic graphSteps to Reproduce
Environment
Python version: 3.9 - 3.12
NetworkX version: 3.2
Additional context
The gefx files:
Archive.zip
The text was updated successfully, but these errors were encountered: