@HyperNeutrino Unrelated, but why do you "reimplement" union and intersection which is probably slower than the builtin version? For multiset? Try it online!
transform should be transpose ?
@HyperNeutrino Why would you need to sort an adjacency matrix?
existing += [sorted(transpose(a)) for a in permutations(transpose(adjacency(n)))]
(I renamed as ^^^)
BTW I suggest limit line length. Not everybody has wide monitor like you (assuming you have).
And even if they does, they may want to split the screen width to multiple windows.
(I'm talking about some of the long list comprehension)
@user202729 I reimplemented them because Proton's union and intersection operators (I'm assuming you're talking about | and &) are broken. Again, a necessary fix because it's breaking one of the few things that lets Proton outgolf Python, but that's for a later time. For my Python solution I really should fix that. I thought sorting the adjacency matrix and taking all vertical permutations of it would let me check for isomorphisms but I don't think it works. I don't get _i not in [i] eithe
but yeah now that I see that I think I was trying to be lazy and do something with copy-pasting but I didn't so now that I see it it's obvious how it's meant to be done :p