MultigraphQ

MultigraphQ[g]

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

Details

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

Examples

open allclose all

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]=

Scope  (2)

Properties & Relations  (2)

Possible Issues  (1)

See Also

SimpleGraphQ  LoopFreeGraphQ  DirectedGraphQ  UndirectedGraphQ  MixedGraphQ

Introduced in 2014
(10.0)