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


MultigraphQ
MultigraphQ[g]
yields True if the graph g is a multigraph and False otherwise.
Examples
open all close allBasic Examples (2)
Test whether a graph has multiple edges:
MultigraphQ gives False for inputs that are not graphs with multiple edges:
Scope (2)
Properties & Relations (2)
A PathGraph has no multiple edges:
The adjacency matrix of a graph with multiple edges has some entries greater than 1:
Possible Issues (1)
MultigraphQ gives False for non-explicit graphs:
Related Guides
History
Text
Wolfram Research (2014), MultigraphQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MultigraphQ.html.
CMS
Wolfram Language. 2014. "MultigraphQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MultigraphQ.html.
APA
Wolfram Language. (2014). MultigraphQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MultigraphQ.html
BibTeX
@misc{reference.wolfram_2025_multigraphq, author="Wolfram Research", title="{MultigraphQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/MultigraphQ.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_multigraphq, organization={Wolfram Research}, title={MultigraphQ}, year={2014}, url={https://reference.wolfram.com/language/ref/MultigraphQ.html}, note=[Accessed: 18-August-2025]}