Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the transversal hypergraph of a hypergraph defined by a list of hyperedges and isolated vertices
ResourceFunction["TransversalHypergraph"][list] computes the transversal hypergraph of list. |
Compute the transversal hypergraph of the hypergraph having vertices a, b, c, d, e, f, g and hyperedges {a,b,c,d}, {b,c}, {c,d,e}:
In[1]:= |
Out[1]= |
Define a random hypergraph having n vertices and m hyperedges:
In[2]:= |
Out[3]= |
Plot the hypergraph:
In[4]:= |
Out[5]= |
Find its transversal hypergraph:
In[6]:= |
Out[6]= |
Plot the transversal hypergraph:
In[7]:= |
Out[7]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License