Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Test whether a graph is simplical
ResourceFunction["SimplicalGraphQ"][gr] tests whether the graph gr is simplical. |
If more than one edge joins the same pair of vertices then the graph is not simplical:
In[1]:= |
Out[1]= |
In[2]:= |
Out[2]= |
Self-connected vertices are not simplical:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
The Petersen graph is simplicial:
In[5]:= |
Out[5]= |
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License