MixedGraphQ[g]
yields True if the graph g is a mixed graph and False otherwise.
MixedGraphQ
MixedGraphQ[g]
yields True if the graph g is a mixed graph and False otherwise.
Examples
open all close allBasic Examples (2)
Test whether a graph is a mixed graph:
Graph[{12, 23, 31}]MixedGraphQ[%]MixedGraphQ gives False for inputs that are not graphs with mixed edges:
CompleteGraph[5]MixedGraphQ[%]Scope (6)
MixedGraphQ works with undirected graphs:
MixedGraphQ[[image]]MixedGraphQ[[image]]MixedGraphQ[[image]]MixedGraphQ[[image]]MixedGraphQ gives False for expressions that are not graphs:
MixedGraphQ[x]MixedGraphQ works with large graphs:
g = Graph[Flatten[Table[If[i == j, ij, ij], {i, 1000}, {j, i, 1000}]]];MixedGraphQ[g]//TimingRelated Guides
History
Text
Wolfram Research (2014), MixedGraphQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MixedGraphQ.html.
CMS
Wolfram Language. 2014. "MixedGraphQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MixedGraphQ.html.
APA
Wolfram Language. (2014). MixedGraphQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MixedGraphQ.html
BibTeX
@misc{reference.wolfram_2026_mixedgraphq, author="Wolfram Research", title="{MixedGraphQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/MixedGraphQ.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_mixedgraphq, organization={Wolfram Research}, title={MixedGraphQ}, year={2014}, url={https://reference.wolfram.com/language/ref/MixedGraphQ.html}, note=[Accessed: 12-June-2026]}