Tutorials › Graph Theory (Undergraduate) › Automorphism Groups of Paths, Cycles, and Complete Graphs

Automorphisms and Cayley Graphs · Tutorial 678 of 799

Automorphism Groups of Paths, Cycles, and Complete Graphs

Learn how graph structure restricts automorphisms and how to describe the resulting groups explicitly.

Advanced 9 min read

What You'll Learn

  • Determine all automorphisms of a path, including the one-vertex case.
  • Use endpoint and distance constraints to prove the path classification.
  • Describe cycle automorphisms as rotations and reflections.
  • Derive the order and defining relations of the dihedral group of a cycle.
  • Identify the automorphism group of a complete graph with a symmetric group.
  • Check the classifications on explicit small graphs and avoid common counting errors.

Why These Three Families Are Special

An automorphism is a symmetry of a graph expressed as a permutation of its vertices. For paths, the endpoints sharply limit where a symmetry can send the graph. A cycle has no endpoints, so it allows rotations as well as reflections. In a complete graph, every pair of distinct vertices is adjacent, leaving no adjacency restriction on a permutation. These contrasts make paths, cycles and complete graphs useful first examples of automorphism groups.

All graphs in this tutorial are finite and simple. For a graph \(G=(V,E)\), a permutation \(\varphi:V\to V\) is an automorphism if, for all distinct \(u,v\in V\), \(uv\in E\) if and only if \(\varphi(u)\varphi(v)\in E\). The set of all automorphisms, with composition as its operation, is the automorphism group \(\operatorname{Aut}(G)\). Composition means applying the rightmost map first. The identity map is an automorphism; the composition of two automorphisms preserves adjacency; and the inverse of an automorphism preserves adjacency as well. Thus these permutations form a group.

One useful consequence of the definition is that automorphisms preserve degrees. Indeed, the neighbors of \(v\) are carried bijectively to the neighbors of \(\varphi(v)\): adjacency is preserved in both directions, and \(\varphi\) is a bijection. Hence \(\deg(v)=\deg(\varphi(v))\). Automorphisms also preserve distances, since they carry paths to paths of the same length, and their inverses give the reverse distance inequality.

Automorphisms of Paths

Theorem: For the path \(P_n\), \(\operatorname{Aut}(P_1)\) contains only the identity. For every \(n\ge2\), \(\operatorname{Aut}(P_n)\) consists of the identity and the reversal of the path. In particular, for \(n\ge2\) the group has order \(2\).

Proof. For \(n=1\), there is just one vertex and just one permutation of the vertex set, so only the identity is possible. Now let \(n\ge2\), and label the vertices of \(P_n\) in order as \(1,2,\ldots,n\), with edges \(i(i+1)\) for \(1\le i<n\). Its endpoints are \(1\) and \(n\). If \(n\ge3\), these are exactly the vertices of degree \(1\), so any automorphism must send endpoint \(1\) to either \(1\) or \(n\). If \(n=2\), both vertices are endpoints, and the same two possibilities apply to the image of \(1\).

Distances from an endpoint determine every vertex: the vertex at distance \(i-1\) from endpoint \(1\) is \(i\), and the vertex at distance \(i-1\) from endpoint \(n\) is \(n+1-i\). Since an automorphism preserves distances, if it sends \(1\) to \(1\), it must send every \(i\) to \(i\); if it sends \(1\) to \(n\), it must send every \(i\) to \(n+1-i\). Both resulting maps preserve the listed edges: the identity fixes each edge, and reversal sends \(i(i+1)\) to \((n-i)(n+1-i)\), also an edge of the path. For \(n\ge2\) the two maps differ at vertex \(1\). Thus there are exactly two. \(\square\)

Worked Example: The Symmetries of \(P_5\)

Let \(G=P_5\) have vertex set \(V=\{1,2,3,4,5\}\) and edge set \(E=\{12,23,34,45\}\). Its degrees are \(\deg(1)=1\), \(\deg(2)=2\), \(\deg(3)=2\), \(\deg(4)=2\), and \(\deg(5)=1\). Therefore an automorphism must send endpoint \(1\) to endpoint \(1\) or \(5\).

If \(1\) maps to \(1\), preservation of distances from \(1\) forces the images \(1,2,3,4,5\), in order, to be \(1,2,3,4,5\). If \(1\) maps to \(5\), the distances from \(5\) force the images to be \(5,4,3,2,1\). The two candidate maps are consequently the tuples of images \((1,2,3,4,5)\) and \((5,4,3,2,1)\).

Check: The first map fixes all four edges. Under the second map, \(12\) maps to \(54=45\), \(23\) to \(43=34\), \(34\) to \(32=23\), and \(45\) to \(21=12\). Both maps preserve the edge set, and the endpoint argument shows there are no others.

Automorphisms of Cycles

For \(n\ge3\), label the vertices of \(C_n\) by the residues \(0,1,\ldots,n-1\), with addition interpreted modulo \(n\). Its edge set consists of \(i(i+1)\) for all residues \(i\). Define \(r(i)=i+1\) and \(s(i)=-i\), with values taken modulo \(n\). The map \(r\) rotates the cycle by one place, and \(s\) reflects it.

Theorem: For \(n\ge3\), every automorphism of \(C_n\) has exactly one of the forms \(i\mapsto i+a\) or \(i\mapsto a-i\), where \(a\) is a residue modulo \(n\). Thus \(\operatorname{Aut}(C_n)\) is the dihedral group of order \(2n\).

Proof. Let \(\varphi\) be an automorphism. Vertex \(0\) can map to any residue \(a\), giving \(n\) choices. After \(a=\varphi(0)\) is chosen, vertex \(1\) must map to one of the two neighbors of \(a\), namely \(a+1\) or \(a-1\). Once these images are chosen, the rest of the images are forced in sequence: for \(1\le i\le n-2\), vertex \(i+1\) is adjacent to \(i\), and its image must be the neighbor of \(\varphi(i)\) other than \(\varphi(i-1)\). The two neighbors are distinct, and injectivity prevents \(\varphi(i+1)=\varphi(i-1)\). This gives either \(\varphi(i)=a+i\) throughout or \(\varphi(i)=a-i\) throughout.

Each displayed form really is an automorphism. An edge with endpoints \(i,i+1\) maps under the first form to the pair \(a+i,a+i+1\), and under the second to \(a-i,a-i-1\); in both cases the images are consecutive residues and hence adjacent. There are \(n\) maps of each form. They are all distinct: maps with different \(a\) have different images of \(0\), and the two forms with the same \(a\) differ at \(1\), since \(a+1\not\equiv a-1\pmod n\) for \(n\ge3\). Therefore there are exactly \(2n\) automorphisms.

In group notation, the maps \(r\) and \(s\) generate all these automorphisms: the rotations are \(r^a\), and the reflections are \(r^a s\). They satisfy \(r^n=\mathrm{id}\), \(s^2=\mathrm{id}\), and \(srs=r^{-1}\). For example, \(srs(i)=i-1=r^{-1}(i)\). These relations describe the dihedral symmetries; here the convention is that the dihedral group of an \(n\)-cycle has order \(2n\). \(\square\)

Worked Example: Listing the Automorphisms of \(C_4\)

Let \(G=C_4\) have vertex set \(V=\{0,1,2,3\}\) and edge set \(E=\{01,12,23,30\}\). The formula gives four maps \(i\mapsto i+a\) and four maps \(i\mapsto a-i\), with residues reduced modulo \(4\).

Writing each map as the tuple \((\varphi(0),\varphi(1),\varphi(2),\varphi(3))\), the rotations are \((0,1,2,3)\), \((1,2,3,0)\), \((2,3,0,1)\), and \((3,0,1,2)\). The reflections are \((0,3,2,1)\), \((1,0,3,2)\), \((2,1,0,3)\), and \((3,2,1,0)\).

Check: Each listed map takes consecutive residues to consecutive residues, so it preserves every edge. The count can also be obtained directly: there are \(4\) choices for the image of \(0\), and then \(2\) choices for the image of its neighbor \(1\). The sequential argument in the theorem forces all other images, giving \(4\cdot2=8\). The list contains \(4+4=8\) distinct maps, as required.

Automorphisms of Complete Graphs

Theorem: For every \(n\ge1\), \(\operatorname{Aut}(K_n)\) is the symmetric group \(S_n\), the group of all permutations of its \(n\) vertices. Its order is \(n!\).

Proof. In \(K_n\), every pair of distinct vertices is an edge. Let \(\varphi\) be any permutation of the vertices. Distinct vertices \(u,v\) have distinct images \(\varphi(u),\varphi(v)\), so their images are adjacent in \(K_n\). Thus every permutation is an automorphism. Conversely, an automorphism is a permutation by definition, so there are no other maps. This argument also covers \(K_1\), whose sole permutation is the identity. Therefore the automorphism group is \(S_n\); the number of permutations is \(n!\), since their images can be selected successively in \(n,n-1,\ldots,1\) ways. \(\square\)

Worked Example: The Symmetries of \(K_4\)

Let \(G=K_4\) have vertex set \(V=\{1,2,3,4\}\) and edge set \(E=\{12,13,14,23,24,34\}\). Every permutation of \(\{1,2,3,4\}\) preserves adjacency, because every pair of distinct vertices is an edge. For instance, the permutation with image tuple \((2,4,1,3)\) sends the six edges, in the order listed, to \(24,12,23,14,34,13\), all of which belong to \(E\).

The total number of permutations is \(4\cdot3\cdot2\cdot1=24\): there are \(4\) choices for the image of vertex \(1\), \(3\) remaining choices for vertex \(2\), then \(2\) for vertex \(3\), and \(1\) for vertex \(4\). As a second count, first choose the image of vertex \(1\) in \(4\) ways; the other three vertices can then be permuted in \(3\cdot2\cdot1=6\) ways, giving \(4\cdot6=24\). Hence \(\operatorname{Aut}(K_4)=S_4\) and has order \(24\).

Comparing the Three Families

The classifications reflect what adjacency allows. In a path with at least two vertices, choosing the image of one endpoint determines the entire map. In a cycle, choosing the image of one vertex and then choosing which of its two neighbors receives the next vertex determines the entire map. In a complete graph, there is no special adjacency pattern to constrain the permutation, so every permutation works.

GraphAutomorphismsGroup
\(P_1\)Identity onlyTrivial group
\(P_n\), \(n\ge2\)Identity and reversalOrder \(2\)
\(C_n\), \(n\ge3\)Rotations and reflectionsDihedral group of order \(2n\)
\(K_n\), \(n\ge1\)All vertex permutations\(S_n\), order \(n!\)

Some graphs belong to more than one family: \(C_3\) is also \(K_3\). The two descriptions agree. The cycle formula gives \(2\cdot3=6\) automorphisms, while \(S_3\) has \(3\cdot2\cdot1=6\) permutations. This agreement is a useful check, not an exception to either classification.

Common Pitfalls

Not every vertex permutation preserves a path. For \(P_4\) with vertex set \(\{1,2,3,4\}\) and edge set \(\{12,23,34\}\), consider the tempting but incorrect claim that swapping \(2\) and \(3\) while fixing \(1\) and \(4\) is an automorphism. That permutation sends edge \(12\) to \(13\), but \(13\notin E\). The correction is to use structural constraints: an automorphism must send endpoints to endpoints, and the image of one endpoint determines all vertices by their distances from it.

Do not count only rotations of a cycle. A cycle has reflections as well as rotations. For \(C_4\), counting only the four rotations misses the four reflections listed above. The correction is to choose both the image of a starting vertex and which of its two neighbors is the image of a chosen adjacent vertex. Those choices yield \(n\cdot2\) automorphisms.

Check Your Understanding

Use the classifications and proofs above to answer these questions.

  1. Why does the theorem for paths treat \(P_1\) separately from \(P_n\) for \(n\ge2\)?
  2. Write the two automorphisms of \(P_6\) as tuples of images of \(1,2,3,4,5,6\).
  3. For \(C_5\), how many choices are there for the image of vertex \(0\), and how many choices remain for the image of vertex \(1\)? Why do these choices determine the rest?
  4. Explain why \(i\mapsto a-i\) preserves adjacency in \(C_n\).
  5. How many automorphisms does \(K_3\) have, and why does this agree with the cycle classification for \(C_3\)?