This resource function is obsolete. Use the built-in symbol SimpleGraphQ instead.

Function Repository Resource:

SimplicalGraphQ

Source Notebook

Test whether a graph is simplical

Contributed by: Jon McLoone

ResourceFunction["SimplicalGraphQ"][gr]

tests whether the graph gr is simplical.

Details

A graph is simplical if no edge starts and ends at the same vertex, and no two edges have the same pair of vertices.

Examples

Basic Examples (3) 

If more than one edge joins the same pair of vertices then the graph is not simplical:

In[1]:=
gr = Graph[{1 -> 2, 2 -> 3, 2 -> 3}]
Out[1]=
In[2]:=
ResourceFunction["SimplicalGraphQ"][gr]
Out[2]=

Self-connected vertices are not simplical:

In[3]:=
gr = Graph[{1 -> 2, 2 -> 2}]
Out[3]=
In[4]:=
ResourceFunction["SimplicalGraphQ"][gr]
Out[4]=

The Petersen graph is simplicial:

In[5]:=
gr = PetersenGraph[]
Out[5]=
In[6]:=
ResourceFunction["SimplicalGraphQ"][gr]
Out[6]=

Publisher

Jon McLoone

Version History

  • 1.0.0 – 25 March 2022

Related Resources

License Information