Tutorials › Graph Theory (Undergraduate) › Cayley Graphs of Cyclic and Dihedral Groups

Automorphisms and Cayley Graphs · Tutorial 685 of 799

Cayley Graphs of Cyclic and Dihedral Groups

Translate group generators into graph edges, then use the chosen generators to identify the resulting cycle or prism structure.

Advanced 10 min read

What You'll Learn

  • Define undirected Cayley graphs using right multiplication by an inverse-closed generating set
  • Derive cycle graphs from cyclic groups and identify when a step generator connects all vertices
  • Compute adjacency in a dihedral group from its presentation
  • Compare a dihedral Cayley graph that is a prism with one that is a single cycle
  • Check degrees, edge counts and connectedness in small examples
  • Avoid confusing a group’s generating set with the shape of its Cayley graph

From Group Multiplication to Graph Edges

A Cayley graph records a group’s multiplication using edges: from each group element, follow each chosen generator to a neighboring element. For cyclic groups, one step generator traces a cycle. For dihedral groups, the choice of generators can produce either a cycle or a graph with two polygonal rims and connecting edges. The group is fixed, but its Cayley graph depends on the generating set.

Throughout, graphs are finite, simple and undirected. We use the following convention for a group \(G\) and a generating set \(S\): vertices are group elements, and a vertex \(g\) is adjacent to \(gs\) for every \(s\in S\). To obtain an undirected graph, \(S\) must be inverse-closed: whenever \(s\in S\), \(s^{-1}\in S\). We also require that the identity is not in \(S\), so the construction has no loops. The edge set consists of unordered pairs, so writing the same edge from its two endpoints does not create a multiple edge.

Definition: For a finite group \(G\) and an inverse-closed generating set \(S\subseteq G\setminus\{e\}\), the (undirected) Cayley graph \(\operatorname{Cay}(G,S)\) has vertex set \(G\) and edge set \(\{\{g,gs\}:g\in G,\ s\in S\}\). Each vertex has degree \(|S|\): its neighbors \(gs\) are distinct for distinct \(s\), by cancellation in the group.

Changing from right multiplication to left multiplication is another common convention, but it can change how a labelled example is described. Here every adjacency calculation uses \(g\mapsto gs\). In particular, the order of factors matters when the group is not commutative.

Cyclic Groups and Their Step Sizes

Write the cyclic group of order \(n\) additively as \(\mathbb Z_n=\{0,1,\ldots,n-1\}\), with addition modulo \(n\). A step \(k\) and its inverse \(-k\) give the inverse-closed generating set \(S=\{k,-k\}\), provided these are distinct and nonzero. Then \(x\) is adjacent to \(x+k\) and \(x-k\), with all arithmetic taken modulo \(n\).

Theorem: Let \(n\ge3\), and let \(k\) be an integer such that \(k\not\equiv0\pmod n\) and \(2k\not\equiv0\pmod n\). In \(\operatorname{Cay}(\mathbb Z_n,\{k,-k\})\), every connected component is a cycle of length \(q=n/\gcd(n,k)\). In particular, the graph is the cycle \(C_n\) exactly when \(\gcd(n,k)=1\).

Proof. Put \(d=\gcd(n,k)\) and \(q=n/d\). Starting at \(x\), repeated steps of \(+k\) give the sequence \(x,x+k,x+2k,\ldots\), where the entries are reduced modulo \(n\). The first return to \(x\) occurs at the least positive integer \(j\) for which \(jk\) is divisible by \(n\). Dividing \(n\) and \(k\) by \(d\) shows that this least integer is \(q\). Thus the \(q\) vertices \(x,x+k,\ldots,x+(q-1)k\) are distinct, and the next step returns to \(x\). Because \(2k\not\equiv0\pmod n\), we have \(q\ge3\), so these steps form a cycle. Every edge changes a vertex by \(+k\) or \(-k\); therefore no edge leaves the set reached from \(x\), and that set is exactly its connected component. Finally, \(q=n\) exactly when \(d=1\). \(\square\)

Worked Example: The Standard Cycle from \(\mathbb Z_7\)

Take \(G=\mathbb Z_7\) and \(S=\{1,-1\}=\{1,6\}\). Here \(\gcd(7,1)=1\), so the theorem predicts one cycle on all seven vertices. The adjacency rule is \(x\sim x+1\) or \(x-1\pmod 7\).

Listing the edges from successive \(+1\) steps gives \(01,12,23,34,45,56,60\). Hence \(V=\{0,1,2,3,4,5,6\}\) and \(E=\{01,12,23,34,45,56,60\}\), which is \(C_7\). Each vertex has the two distinct neighbors obtained by adding \(1\) and \(6\) modulo \(7\); for example, the neighbors of \(0\) are \(1\) and \(6\).

Check: There are \(7\cdot2/2=7\) edges, since the sum of the seven degrees is \(7\cdot2=14\), and each edge contributes two to that sum. The listed edge set also has seven edges and connects all seven vertices in one cycle.

Worked Example: A Step That Splits \(\mathbb Z_8\)

Let \(G=\mathbb Z_8\) and \(S=\{2,-2\}=\{2,6\}\). Now \(\gcd(8,2)=2\), so the component length is \(8/2=4\), not \(8\). Repeatedly adding \(2\) from \(0\) gives \(0,2,4,6,0\); from \(1\) it gives \(1,3,5,7,1\).

Thus \(V=\{0,1,2,3,4,5,6,7\}\) and \(E=\{02,24,46,60,13,35,57,71\}\). These are two disjoint 4-cycles. For example, the neighbors of \(4\) are \(4+2=6\pmod 8\) and \(4-2=2\pmod 8\). The two displayed cycles account for every vertex and every edge.

Check: There are \(8\cdot2/2=8\) edges, agreeing with the eight listed. The graph is disconnected: every step changes parity by an even amount, so a path cannot move between an even and an odd vertex.

Dihedral Groups: Rotations and Reflections

The dihedral group \(D_n\) is the symmetry group of a regular \(n\)-gon, with \(2n\) elements. Let \(r\) denote rotation by one position and \(s\) a reflection. Its presentation is \(r^n=e\), \(s^2=e\), and \(srs=r^{-1}\). Every element is uniquely of the form \(r^i\) or \(r^i s\), with \(i\) taken modulo \(n\). The relation implies \(sr=r^{-1}s\), which determines how right multiplication changes the labels.

Choose \(S=\{r,r^{-1},s\}\), for \(n\ge3\). The rotations \(r,r^{-1}\) are distinct, and each is its own partner under inversion; \(s=s^{-1}\). The adjacency rules are

$$ r^i\sim r^{i+1},\ r^{i-1},\ r^i s, \qquad r^i s\sim r^{i-1}s,\ r^{i+1}s,\ r^i. $$

For the second rule, for instance, \((r^i s)r=r^i(sr)=r^i r^{-1}s=r^{i-1}s\), while \((r^i s)s=r^i\). The graph has two cycles, one on the rotations and one on the reflections, with corresponding vertices joined by edges. This is the prism graph over \(C_n\).

Proposition: For \(n\ge3\), \(\operatorname{Cay}(D_n,\{r,r^{-1},s\})\) consists of two \(n\)-cycles joined by \(n\) corresponding edges. It has \(2n\) vertices, degree \(3\) at every vertex and \(3n\) edges.

Proof. The \(n\) elements \(e,r,\ldots,r^{n-1}\) are distinct and form a cycle under right multiplication by \(r\) and \(r^{-1}\). The \(n\) elements \(s,rs,\ldots,r^{n-1}s\) are distinct and form a second cycle: the displayed adjacency rule connects \(r^i s\) to \(r^{i-1}s\) and \(r^{i+1}s\). Right multiplication by \(s\) joins \(r^i\) to \(r^i s\) for every \(i\). These two sets are disjoint and contain all \(2n\) group elements, so this accounts for all vertices. Each vertex has exactly two neighbors along its own cycle and one across the joining edge, giving degree \(3\). Summing degrees gives \(2n\cdot3=6n\); every edge is counted at both endpoints, so the number of edges is \(6n/2=3n\). \(\square\)

Worked Example: The Cayley Graph of \(D_4\) with a Reflection Generator

Use \(D_4=\{e,r,r^2,r^3,s,rs,r^2s,r^3s\}\) and \(S=\{r,r^{-1},s\}=\{r,r^3,s\}\). The vertex set is exactly the eight elements displayed. Applying the adjacency rules, the rotation cycle contributes \(er,r r^2,r^2r^3,r^3e\), or edges \(er,rr^2,r^2r^3,r^3e\). The reflection cycle contributes \(s,rs,r^2s,r^3s,s\), or edges \(s\,rs,rs\,r^2s,r^2s\,r^3s,r^3s\,s\). The reflection edges join the corresponding pairs \(e,s\), \(r,rs\), \(r^2,r^2s\), and \(r^3,r^3s\).

Consequently the full edge set is \(E=\{er,rr^2,r^2r^3,r^3e,\ s\,rs,rs\,r^2s,r^2s\,r^3s,r^3s\,s,\ es,r\,rs,r^2\,r^2s,r^3\,r^3s\}\). For a direct adjacency check, \(r^2s\) has neighbors \(r^2s\cdot r=r s\), \(r^2s\cdot r^{-1}=r^3s\), and \(r^2s\cdot s=r^2\). These are exactly its two neighbors on the reflection cycle and its joining-edge neighbor.

Check: The edge list has \(8+4=12\) edges, matching the degree count \(8\cdot3/2=12\). The two cycles and four joining edges also show directly that the graph is connected.

Two Reflections Can Give a Different Graph

A different generating set for the same dihedral group can produce a different graph. Take \(S=\{s,sr\}\). Both elements are reflections and are involutions: \((sr)^2=srsr=r^{-1}r=e\). Their product \(s(sr)=r\), so the two reflections generate \(r\) as well as \(s\), and hence generate \(D_n\). The Cayley graph is now 2-regular, rather than 3-regular.

Proposition: For \(n\ge3\), \(\operatorname{Cay}(D_n,\{s,sr\})\) is the cycle \(C_{2n}\).

Proof. Starting from \(e\), alternate right multiplication by \(s\) and \(sr\). The resulting sequence is \(r^i,r^i s,r^{i+1}\) for each \(i\) modulo \(n\), because \(r^i\cdot s=r^i s\) and \((r^i s)(sr)=r^{i+1}\). Thus the cyclic sequence is \(e,s,r,rs,r^2,r^2s,\ldots,r^{n-1},r^{n-1}s,e\). Its \(2n\) entries before the return are distinct, since the rotation elements \(r^i\) are distinct, the reflection elements \(r^i s\) are distinct, and rotations are not reflections. Each consecutive pair is an edge from one of the two generators. Every vertex has degree \(2\), and these consecutive edges already form a cycle through all vertices; therefore there are no additional edges. \(\square\)

Worked Example: A Six-Cycle from \(D_3\)

Let \(D_3=\{e,r,r^2,s,rs,r^2s\}\) and \(S=\{s,sr\}\). Alternating the two generators gives the vertex sequence \(e,s,r,rs,r^2,r^2s,e\). Therefore \(V=\{e,r,r^2,s,rs,r^2s\}\) and \(E=\{es,sr, r\,rs, rs\,r^2, r^2\,r^2s, r^2s\,e\}\), where each pair denotes an unordered edge.

For example, the neighbors of \(r\) are \(r s=rs\) and \(r(sr)=r s r=r^0s=s\), using \(sr=r^{-1}s\) and \(r^3=e\). These agree with the two adjacent vertices \(s\) and \(rs\) in the listed cycle.

Check: There are six vertices and each has degree \(2\), giving \(6\cdot2/2=6\) edges; the edge set has six. The sequence visits all six distinct group elements before returning to \(e\), so the graph is connected and is \(C_6\).

Common Pitfall: The Group Does Not Determine One Cayley Graph

A common error is to identify a Cayley graph from the group alone and overlook the generating set. For \(D_3\), the set \(\{r,r^{-1},s\}\) gives degree \(3\) at every vertex, whereas \(\{s,sr\}\) gives degree \(2\). These graphs cannot be the same: their degrees differ, and the first has two triangular cycles joined by three edges while the second is a 6-cycle.

For instance, a wrong calculation might claim that the graph from \(\{r,r^{-1},s\}\) is a 6-cycle because \(D_3\) has six elements. But the identity has three distinct neighbors, \(r\), \(r^{-1}=r^2\), and \(s\), so its degree is \(3\), not \(2\). A vertex on a cycle has degree \(2\). The correction is to calculate \(gS\) for a vertex before guessing the shape, and then check the labels around each proposed cycle.

These constructions show how group structure translates into graph structure. A cyclic generator gives a cycle when it reaches every group element; a non-generating step splits the graph into smaller cycles. In a dihedral group, adding a reflection to the rotation generators creates a pair of polygonal rims with joining edges, while two suitable reflections give one larger cycle. In every case, adjacency follows from the specified multiplication convention, not just from the geometric picture suggested by the group.

Check Your Understanding

For each question, use the right-multiplication convention and show enough calculation to verify your answer.

  1. For \(\operatorname{Cay}(\mathbb Z_{10},\{2,-2\})\), find the component length and number of components.
  2. In \(\operatorname{Cay}(D_5,\{r,r^{-1},s\})\), list the neighbors of \(rs\) and state the total number of edges.
  3. Explain why \(\{s,sr\}\) generates \(D_n\) when \(r^n=e\), \(s^2=e\), and \(srs=r^{-1}\).
  4. For \(D_4\), compare the degrees in the Cayley graphs from \(\{r,r^{-1},s\}\) and \(\{s,sr\}\).
  5. Give the condition on \(k\) under which the graph from \(\mathbb Z_n\) with steps \(k\) and \(-k\) is one cycle of length \(n\), assuming the two steps are distinct and nonzero.