cycletypes
Cycletypes are a framework used primarily in graph theory and combinatorics to classify the various kinds of directed or undirected cycles that can occur within a graph. The classification is based on properties such as length, vertex repetition, edge direction and nesting. The most common cycle types include: simple cycles, where all vertices are distinct and the cycle is closed; repeated cycles, where a vertex or a set of vertices repeat within the same cycle; directed versus undirected cycles, depending on whether the edges have a direction that must be followed; and complex cycles, which are combinations of simple or repeated cycles that share vertices or edges.
In directed graphs, cycle types are important for algorithms that detect deadlocks, partitions, or topological sorting,
The cycletype classification also appears in permutation group theory, where the cycle type of a permutation