Cycle Graph — Definition, Formula & Examples
A cycle graph is a graph where every vertex has exactly two edges, and the vertices form a single closed loop with no branches or dead ends.
The cycle graph on vertices is a 2-regular connected graph in which the vertex set has edge set . It has exactly edges and is the unique (up to isomorphism) connected graph on vertices where every vertex has degree 2.
Key Formula
Where:
- = The cycle graph on n vertices
- = Number of vertices (must be at least 3)
- = Number of edges in the cycle graph
- = Degree of each vertex
Worked Example
Problem: Determine the number of edges, the chromatic number, and whether the cycle graph is bipartite.
Edges: A cycle graph on vertices always has exactly edges.
Bipartiteness: A cycle graph is bipartite if and only if is even. Since 5 is odd, is not bipartite.
Chromatic number: For odd cycles, you need 3 colors to properly color the vertices (no two adjacent vertices share a color). For even cycles, 2 colors suffice.
Answer: has 5 edges, is not bipartite, and has chromatic number 3.
Why It Matters
Cycle graphs appear throughout discrete mathematics and computer science. Detecting cycles in directed graphs is essential for topological sorting and deadlock detection in operating systems. Odd versus even cycle structure also determines whether a graph is bipartite, a key classification used in matching algorithms and network flow problems.
Common Mistakes
Mistake: Confusing a cycle graph with a cycle (subgraph) within a larger graph.
Correction: A cycle graph is a standalone graph that consists entirely of a single cycle. A cycle in a general graph is a closed walk with no repeated vertices embedded inside a potentially much larger structure.
