FindCycle[g]
finds a list of vertices that define a cycle in graph g.
FindCycle
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)
Needs["Combinatorica`"]g = FromUnorderedPairs[{{1, 2}, {2, 3}, {3, 4}, {4, 5}, {1, 5}, {1, 6}}];ShowGraph[g]FindCycle[g]This function has been superseded by FindCycle in the Mathematica kernel:
g = Graph[{12, 15, 23, 34, 45, 16}]FindCycle[g]See Also
Tech Notes
Related Guides
-
▪
- Cycles and Connectivity ▪
- Graph Properties ▪
- Graphs & Networks ▪
- Graph Visualization ▪
- Computation on Graphs ▪
- Graph Construction & Representation ▪
- Graphs and Matrices ▪
- Graph Properties & Measurements ▪
- Graph Operations and Modifications ▪
- Statistical Analysis ▪
- Social Network Analysis ▪
- Graph Properties ▪
- Mathematical Data Formats ▪
- Discrete Mathematics
Text
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.
APA
Wolfram Language. (2012). FindCycle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Combinatorica/ref/FindCycle.html
BibTeX
@misc{reference.wolfram_2026_findcycle, author="Wolfram Research", title="{FindCycle}", year="2012", howpublished="\url{https://reference.wolfram.com/language/Combinatorica/ref/FindCycle.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_findcycle, organization={Wolfram Research}, title={FindCycle}, year={2012}, url={https://reference.wolfram.com/language/Combinatorica/ref/FindCycle.html}, note=[Accessed: 15-June-2026]}