Bug introduced in 9.0.1 or earlier and fixed in 11.0.1
Consider the following two graphs:
g1 = Graph[{1, 2, 3}, {}];
g2 = SimpleGraph@Graph[{1, 2, 3}, {1 <-> 1}];
They are clearly the same thing because SimpleGraph
will remove the self loop (only edge) from g2
.
Yet IsomorphicGraphQ
disagrees:
IsomorphicGraphQ[g1, g2]
(* False *)
I believe this is a bug and it exists in all of 9.0.1 through to 10.4.0.
Is there a workaround?
Compress
/Uncompress
I agree that this is a bug and I added that tag accordingly. $\endgroup$