WOLFRAM

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)Summary of the most common use cases

Test whether a graph has multiple edges:

Out[1]=1
Out[2]=2

MultigraphQ gives False for inputs that are not graphs with multiple edges:

Out[1]=1
Out[2]=2

Scope  (2)Survey of the scope of standard use cases

MultigraphQ gives False for expressions that are not graphs:

Out[1]=1

MultigraphQ works with large graphs:

Out[3]=3

Properties & Relations  (2)Properties of the function, and connections to other functions

A PathGraph has no multiple edges:

Out[1]=1
Out[2]=2

The adjacency matrix of a graph with multiple edges has some entries greater than 1:

Out[1]=1
Out[2]=2
Out[3]=3

Its incidence matrix has repeated columns:

Out[4]=4

Possible Issues  (1)Common pitfalls and unexpected behavior

MultigraphQ gives False for non-explicit graphs:

Out[1]=1
Wolfram Research (2014), MultigraphQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MultigraphQ.html.
Wolfram Research (2014), MultigraphQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MultigraphQ.html.

Text

Wolfram Research (2014), MultigraphQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MultigraphQ.html.

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.

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

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: 29-March-2025 ]}

@misc{reference.wolfram_2025_multigraphq, author="Wolfram Research", title="{MultigraphQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/MultigraphQ.html}", note=[Accessed: 29-March-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: 29-March-2025 ]}

@online{reference.wolfram_2025_multigraphq, organization={Wolfram Research}, title={MultigraphQ}, year={2014}, url={https://reference.wolfram.com/language/ref/MultigraphQ.html}, note=[Accessed: 29-March-2025 ]}