maxitg / SetReplace

C++/Wolfram Language package for exploring set and graph rewriting systems
MIT License
219 stars 46 forks source link

IsomorphicHypergraphQ #480

Closed daneelsan closed 4 years ago

daneelsan commented 4 years ago

The problem

Implement the IsomorphicHypergraphQ function, which tests isomorphism between two hypergraphs. See:

Comment

The resource function works for undirected hypergraphs.

Possible Solution

In[]:= IsomorphicHypergraphQ[{{a, e, d}, {d, c}, {c, b}, {b, a}}, {{2, 4}, {4, 5, 1}, {1, 3}, {3, 2}}]
Out[]= True
In[]:= IsomorphicHypergraphQ[{{a, e, d}, {d, c}, {c, b}, {b, a}}, {{2, 4}, {4, 3, 1}, {1, 3}, {5, 2}}]
Out[]= False
maxitg commented 4 years ago

There is also IsomorphicOrderedHypergraphQ, but I don't know if it works.