Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the volumes of successively larger neighborhoods around nodes in a hypergraph
ResourceFunction["HypergraphNeighborhoodVolumes"][graph] finds the count of neighbors within successive distances for each vertex in graph. | |
ResourceFunction["HypergraphNeighborhoodVolumes"][graph,{v1,v2,…}] finds the counts for the vertices vi. | |
ResourceFunction["HypergraphNeighborhoodVolumes"][graph,All,r] finds counts from all vertices out to maximum radius r. | |
ResourceFunction["HypergraphNeighborhoodVolumes"][graph,{v1,v2,…},Automatic] finds counts only out to the minimum radius for any of the vertices vi. | |
ResourceFunction["HypergraphNeighborhoodVolumes"][graph,"Random"→n,…] finds counts for n randomly chosen vertices. |
Neighbor counts for each vertex of a hypergraph:
In[1]:= |
|
Out[1]= |
|
Count neighbors for each vertex:
In[2]:= |
|
Out[2]= |
|
Count neighbors for a subset of vertices:
In[3]:= |
|
Out[3]= |
|
Count neighbors for a random sampling of vertices:
In[4]:= |
|
Out[4]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License