Combinatorica`
Combinatorica`
UndirectedQ
As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. »
UndirectedQ[g]
yields True if graph is undirected.
Details and Options
- UndirectedQ functionality is now available in the built-in Wolfram Language function UndirectedGraphQ.
- To use UndirectedQ, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
Examples
Basic Examples (2)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0ho1is46qjlv-rmcvi
In[2]:=2

✖
https://wolfram.com/xid/0ho1is46qjlv-euxtzb
In[3]:=3

✖
https://wolfram.com/xid/0ho1is46qjlv-c7xwog
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0ho1is46qjlv-fczqlq
Out[4]=4

UndirectedQ has been superseded by UndirectedGraphQ:
In[1]:=1

✖
https://wolfram.com/xid/0ho1is46qjlv-ec1xd2
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0ho1is46qjlv-q4ahb
Out[2]=2

Wolfram Research (2012), UndirectedQ, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html.
✖
Wolfram Research (2012), UndirectedQ, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html.
Text
Wolfram Research (2012), UndirectedQ, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html.
✖
Wolfram Research (2012), UndirectedQ, Wolfram Language function, https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html.
CMS
Wolfram Language. 2012. "UndirectedQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html.
✖
Wolfram Language. 2012. "UndirectedQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html.
APA
Wolfram Language. (2012). UndirectedQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html
✖
Wolfram Language. (2012). UndirectedQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html
BibTeX
✖
@misc{reference.wolfram_2025_undirectedq, author="Wolfram Research", title="{UndirectedQ}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html}", note=[Accessed: 02-April-2025
]}
BibLaTeX
✖
@online{reference.wolfram_2025_undirectedq, organization={Wolfram Research}, title={UndirectedQ}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/UndirectedQ.html}, note=[Accessed: 02-April-2025
]}