MixedGraphQ

MixedGraphQ[g]

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

Details

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

Examples

open allclose all

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

Scope  (6)

See Also

UndirectedGraphQ  DirectedGraphQ  DirectedEdge  UndirectedEdge

Introduced in 2014
(10.0)