Tutorials › Graph Theory (Undergraduate) › Composition and Inverses of Graph Automorphisms

Automorphisms and Cayley Graphs · Tutorial 676 of 799

Composition and Inverses of Graph Automorphisms

You will prove the group laws for graph automorphisms and practise computing compositions and inverses without confusing their order.

Advanced 9 min read

What You'll Learn

  • Define automorphisms as adjacency-preserving bijections and identify the identity automorphism.
  • Prove that composing two automorphisms gives another automorphism.
  • Prove that the inverse permutation of an automorphism is also an automorphism.
  • Verify the group axioms, including associativity and the empty-graph case.
  • Compute vertex and edge images while keeping composition order straight.

From Graph Symmetries to Algebra

A graph symmetry can be viewed as a relabelling of vertices that leaves adjacency unchanged. Performing one symmetry and then another produces a new relabelling. Reversing a symmetry also gives a relabelling, but it is important to prove that both operations still preserve the graph’s edges. These facts allow all the symmetries of a fixed graph to be treated together as an algebraic object: a group.

Throughout, \(G=(V,E)\) is a finite simple graph unless stated otherwise. Thus each edge is an unordered pair of distinct vertices, and there are no multiple edges. A permutation of \(V\) is a bijection from \(V\) to itself. We use the usual function-composition convention: \((f\circ g)(v)=f(g(v))\), so \(g\) acts first.

Definition: An automorphism of \(G\) is a permutation \(f:V\to V\) such that, for every pair of vertices \(u,v\), \(uv\in E\) if and only if \(f(u)f(v)\in E\). Write \(\operatorname{Aut}(G)\) for the set of all automorphisms of \(G\).

The “if and only if” matters. An automorphism preserves both edges and nonedges: it does not turn an edge into a nonedge or a nonedge into an edge. Equivalently, the edge set obtained by applying \(f\) to both endpoints of every edge is exactly \(E\). Since \(f\) is a bijection, its action on unordered pairs is also a bijection.

Composition and Inversion

Theorem: If \(f,g\in\operatorname{Aut}(G)\), then \(f\circ g\in\operatorname{Aut}(G)\), and \(f^{-1}\in\operatorname{Aut}(G)\). The identity map \(\operatorname{id}_V\), defined by \(\operatorname{id}_V(v)=v\), is an automorphism.

Proof. First, \(\operatorname{id}_V\) is a bijection. For any \(u,v\in V\), \(uv\in E\) if and only if \(\operatorname{id}_V(u)\operatorname{id}_V(v)=uv\in E\). Hence it is an automorphism.

Now let \(f,g\in\operatorname{Aut}(G)\). Their composition is a bijection because the composition of bijections is a bijection. For any \(u,v\in V\), the defining property of \(g\), followed by that of \(f\), gives \(uv\in E\) if and only if \(g(u)g(v)\in E\), if and only if \(f(g(u))f(g(v))\in E\). Since \(f(g(u))=(f\circ g)(u)\) and likewise for \(v\), the composition preserves adjacency in both directions. Thus \(f\circ g\in\operatorname{Aut}(G)\).

Finally, \(f^{-1}\) is a bijection. Given \(x,y\in V\), put \(u=f^{-1}(x)\) and \(v=f^{-1}(y)\). Then \(xy\in E\) if and only if \(f(u)f(v)\in E\), which, because \(f\) is an automorphism, holds if and only if \(uv\in E\). Since \(u=f^{-1}(x)\) and \(v=f^{-1}(y)\), this proves that \(f^{-1}\) preserves adjacency in both directions. Therefore \(f^{-1}\in\operatorname{Aut}(G)\). \(\square\)

There is also a useful order-reversal rule for inverses. For automorphisms \(f,g\), the inverse of \(f\circ g\) is \(g^{-1}\circ f^{-1}\), not \(f^{-1}\circ g^{-1}\). The reason is that undoing the action of \(g\) followed by \(f\) requires first undoing \(f\), then undoing \(g\).

Identity: The identity automorphism fixes every vertex. It satisfies \(\operatorname{id}_V\circ f=f\circ\operatorname{id}_V=f\) for every automorphism \(f\).

Proof. For each \(v\in V\), \((\operatorname{id}_V\circ f)(v)=\operatorname{id}_V(f(v))=f(v)\) and \((f\circ\operatorname{id}_V)(v)=f(\operatorname{id}_V(v))=f(v)\). Thus both compositions equal \(f\). \(\square\)

The Automorphisms Form a Group

Theorem: For any finite simple graph \(G\), \(\operatorname{Aut}(G)\), with function composition as its operation, is a group.

Proof. A group is a set with an associative binary operation, an identity element, and an inverse for every element. The operation here is composition. The closure theorem above shows that composing two elements of \(\operatorname{Aut}(G)\) gives another element, so composition is a binary operation on this set. Function composition is associative: for any maps \(f,g,h\) and vertex \(v\), both \(((f\circ g)\circ h)(v)\) and \((f\circ(g\circ h))(v)\) equal \(f(g(h(v)))\). The identity map is an automorphism and is an identity for composition. The inverse theorem shows that each automorphism has an inverse in \(\operatorname{Aut}(G)\). All group axioms therefore hold. If \(V=\varnothing\), there is one map from \(V\) to itself, the empty identity map; it is bijective, and the same axioms hold. \(\square\)

In particular, the group operation is not required to commute: \(f\circ g\) and \(g\circ f\) can be different. The group statement concerns closure, associativity, identity and inverses; it does not assert that composition can be reordered.

Worked Example: Composing Two Symmetries of a Four-Cycle

Let \(G=(V,E)\), where \(V=\{a,b,c,d\}\) and \(E=\{ab,bd,dc,ca\}\). Define \(f\) and \(g\) by the following vertex images:

$$ \begin{array}{c|cccc} v&a&b&c&d\\ \hline f(v)&b&d&a&c\\ g(v)&a&c&b&d \end{array} $$

Each row lists four distinct images, so each map is a permutation of \(V\). Check \(f\) on the edges in the stated order: \(ab\mapsto bd\), \(bd\mapsto dc\), \(dc\mapsto ca\), and \(ca\mapsto ab\). These images are exactly the four edges of \(G\). For \(g\), the images are \(ab\mapsto ac=ca\), \(bd\mapsto cd=dc\), \(dc\mapsto db=bd\), and \(ca\mapsto ba=ab\). These also give exactly \(E\). Thus both maps are automorphisms.

Apply \(g\) first and then \(f\): \(a\mapsto a\mapsto b\), \(b\mapsto c\mapsto a\), \(c\mapsto b\mapsto d\), and \(d\mapsto d\mapsto c\). Therefore \(f\circ g\) maps \(a\mapsto b\), \(b\mapsto a\), \(c\mapsto d\), and \(d\mapsto c\). Its edge images, calculated from these vertex images, are \(ab\mapsto ab\), \(bd\mapsto ac\), \(dc\mapsto cd\), and \(ca\mapsto db\). These four images are distinct and together equal \(E\), since \(ac=ca\), \(cd=dc\), and \(db=bd\). Hence the computed composition is indeed an automorphism.

Check: the four vertex images of \(f\circ g\) are \(b,a,d,c\), with no repetition, so the composition is a permutation. Its edge-image set is \(\{ab,ac,cd,db\}=\{ab,ca,dc,bd\}=E\). This verifies the calculation directly as well as illustrating closure.

Worked Example: Finding and Checking an Inverse

Let \(G=(V,E)\) be the cycle with \(V=\{1,2,3,4\}\) and \(E=\{12,23,34,41\}\). Define \(r\) by \(1\mapsto2\), \(2\mapsto3\), \(3\mapsto4\), and \(4\mapsto1\). Its edge images are \(12\mapsto23\), \(23\mapsto34\), \(34\mapsto41\), and \(41\mapsto12\), so \(r\) is an automorphism.

To find the inverse, reverse each vertex assignment: \(r^{-1}(1)=4\), \(r^{-1}(2)=1\), \(r^{-1}(3)=2\), and \(r^{-1}(4)=3\). Thus \(r^{-1}\) maps \(12\mapsto41\), \(23\mapsto12\), \(34\mapsto23\), and \(41\mapsto34\). Each image is an edge, and the four images give all of \(E\).

Check: applying \(r\) and then \(r^{-1}\) sends \(1\) to \(2\) to \(1\), \(2\) to \(3\) to \(2\), \(3\) to \(4\) to \(3\), and \(4\) to \(1\) to \(4\). Reversing the order also fixes every vertex: \(r^{-1}\) sends \(1,2,3,4\) to \(4,1,2,3\), respectively, and \(r\) sends those images back to \(1,2,3,4\). Both compositions are the identity.

Worked Example: Composition Need Not Commute

Let \(G=K_3\), with \(V=\{1,2,3\}\) and \(E=\{12,13,23\}\). Define \(p\) by \(1\mapsto2\), \(2\mapsto3\), \(3\mapsto1\), and \(q\) by \(1\mapsto2\), \(2\mapsto1\), \(3\mapsto3\). Both are permutations. Every pair of distinct vertices is an edge in \(K_3\), so each permutation sends the three edges to the three edges and is an automorphism.

For \(p\circ q\), apply \(q\) and then \(p\): \(1\mapsto2\mapsto3\), \(2\mapsto1\mapsto2\), and \(3\mapsto3\mapsto1\). Thus \(p\circ q\) maps \(1\mapsto3\), \(2\mapsto2\), \(3\mapsto1\). For \(q\circ p\), apply \(p\) and then \(q\): \(1\mapsto2\mapsto1\), \(2\mapsto3\mapsto3\), and \(3\mapsto1\mapsto2\). Thus \(q\circ p\) maps \(1\mapsto1\), \(2\mapsto3\), \(3\mapsto2\). The maps differ, for example, at vertex \(1\).

Check: the edge images under \(p\circ q\) are \(12\mapsto23\), \(13\mapsto13\), and \(23\mapsto12\); under \(q\circ p\) they are \(12\mapsto13\), \(13\mapsto12\), and \(23\mapsto23\). Each list is exactly \(E\), and the vertex-image calculations confirm that the two compositions are different.

A Useful Inverse Rule and a Common Pitfall

Rule: For automorphisms \(f\) and \(g\), \((f\circ g)^{-1}=g^{-1}\circ f^{-1}\).

Proof. By associativity and the inverse identities, \((g^{-1}\circ f^{-1})\circ(f\circ g)=g^{-1}\circ(f^{-1}\circ f)\circ g=g^{-1}\circ\operatorname{id}_V\circ g=\operatorname{id}_V\). In the other order, \((f\circ g)\circ(g^{-1}\circ f^{-1})=f\circ(g\circ g^{-1})\circ f^{-1}=f\circ\operatorname{id}_V\circ f^{-1}=\operatorname{id}_V\). Thus \(g^{-1}\circ f^{-1}\) is the inverse of \(f\circ g\). \(\square\)

A frequent error is to compose vertex images correctly but then calculate an edge image by applying the two maps in the wrong order, or by changing only one endpoint. In the four-cycle example, the edge \(bd\) under \(f\circ g\) must be computed as \(b\mapsto a\) and \(d\mapsto c\), giving \(ac\). It is not \(cd\): that would be the image of \(bd\) under \(g\), before applying \(f\), and it is also not valid to infer the edge image from just one endpoint. Because edges are unordered pairs, the correct result is the pair formed from both final vertex images.

When checking a proposed automorphism on a finite graph, two checks are useful: verify that the vertex map is a bijection, then verify that the images of the edges form exactly the original edge set. Merely showing that each edge maps to some edge establishes edge preservation, but checking the whole edge-image set also helps catch omissions or accidental repetitions. The definition’s “if and only if” is guaranteed here by bijectivity and the equality of the edge sets.

Check Your Understanding

Use the definition and group laws above to answer the following.

  1. For \(V=\{1,2,3\}\) and \(E=\{12,23\}\), test whether the permutation \(1\mapsto3,\ 2\mapsto2,\ 3\mapsto1\) is an automorphism.
  2. Explain why the composition of two bijections is a bijection, and identify where this fact is used in proving closure.
  3. Suppose \(f\) and \(g\) are automorphisms. State the correct formula for the inverse of \(f\circ g\) and explain the order.
  4. For the graph in the first worked example, compute \((f\circ g)(bd)\) from its vertex images. Is the resulting pair an edge?
  5. Why does the group conclusion still hold when \(V=\varnothing\)?