MultigraphQ

MultigraphQ[g]
yields True if the graph g is a multigraph and False otherwise.

DetailsDetails

  • A graph is a multigraph if there are multiple undirected edges or multiple directed edges with the same direction between the same vertices.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Test whether a graph has multiple edges:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

MultigraphQ gives False for inputs that are not graphs with multiple edges:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)
Translate this page: