is_isomorphic() function #4530
-
Is there a function similar to is_isomorphic() for comparing two graphs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
We do not support any |
Beta Was this translation helpful? Give feedback.
We do not support any
is_isomorphic()
functionality since PyG is a deep learning/GNN library rather than a general graph analytics library. IMO, you are better off to convert PyG graphs to a general graph analytics library (e.g.,networkx
) and perform the checks their. If you are only interested in approximating isomorphism, you might be able to get something to work via thetorch_geometric.nn.conv.WLConv
to model the Weisfeiler-Lehman graph isomorphism test by comparing the histogram of node colors of two graphs (see here for an example).