Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Enumerate possible ordered hypergraphs with a given signature
ResourceFunction["EnumerateHypergraphs"][sig] generates a list of all canonical hypergraphs with the specified signature sig. | |
ResourceFunction["EnumerateHypergraphs"][sig,s] allows only up to s distinct elements. | |
ResourceFunction["EnumerateHypergraphs"][sig,type] generates all possible hypergraphs with the specified type of connectivity. |
All | require both left- and right- hand sides to be connected individually and to one another |
Automatic | require left-hand side to be connected and to be connected to the right-hand side |
None | do not constrain based on connectivity |
Enumerate ordered hypergraphs with pairs of binary relations:
In[1]:= |
|
Out[1]= |
|
Enumerate all ordered hypergraphs with pairs of ternary relations:
In[2]:= |
|
Out[2]= |
|
An equivalent specification:
In[3]:= |
|
Out[3]= |
|
Ordered hypergraphs with no constraints on connectivity:
In[4]:= |
|
Out[4]= |
|
Constrain to at most two distinct elements:
In[5]:= |
|
Out[5]= |
|
Use with a more complicated signature:
In[6]:= |
|
Out[6]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License