Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the adjacency matrix for vertices in a hypergraph
ResourceFunction["HypergraphAdjacencyMatrix"][hg] finds the adjacency matrix for the hypergraph hg. |
Make an adjacency matrix from a fairly simple hypergraph:
| In[1]:= | ![]() |
| Out[1]= |
Use MatrixPlot to visualize the matrix:
| In[2]:= |
| Out[2]= | ![]() |
See the adjacency matrix:
| In[3]:= |
| Out[3]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License