Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 481 Bytes

File metadata and controls

17 lines (12 loc) · 481 Bytes
Symbols and Functions > Utility Functions >

IndexHypergraph

IndexHypergraph replaces the vertices of the hypergraph by its vertex indices:

In[]:= IndexHypergraph[{{x, y, z}, {w, y}, {z, {x}, {{y}}}}]
Out[]= {{2, 3, 4}, {1, 3}, {4, 5, 6}}

Replace the vertices with integers starting from -10:

In[]:= IndexHypergraph[{{x, y, z}, {w, y}, {z, {x}, {{y}}}}, -10]
Out[]= {{-9, -8, -7}, {-10, -8}, {-7, -6, -5}}