Combinatorica`
Combinatorica`
FindCycle
As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. »
FindCycle[g]
finds a list of vertices that define a cycle in graph g.
Details and Options
- FindCycle functionality is now available in the built-in Wolfram Language function FindCycle.
- To use FindCycle, 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/0bbsp9ltxa2-rmcvi
In[2]:=2

✖
https://wolfram.com/xid/0bbsp9ltxa2-cj0gww
In[3]:=3

✖
https://wolfram.com/xid/0bbsp9ltxa2-cubcnm
Out[3]=3

In[4]:=4

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

This function has been superseded by FindCycle in the Mathematica kernel:
In[1]:=1

✖
https://wolfram.com/xid/0bbsp9ltxa2-ohbd57
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0bbsp9ltxa2-fxkaod
Out[2]=2

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