MixedGraphQ

MixedGraphQ[g]
yields True if the graph g is a mixed graph and False otherwise.

DetailsDetails

  • A graph is mixed if it has both directed and undirected edges.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Test whether a graph is a mixed graph:

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

MixedGraphQ gives False for inputs that are not graphs with mixed edges:

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