Abstract AlgebraGraph TheoryInteractive

Cayley Graphs

A Cayley graph makes a group visible. Given a group and a set of generators, it draws the group as a directed graph where each edge records the effect of applying one generator. The shape of the graph encodes the structure of the group.

Every abstract group has a shape. Cayley graphs make that shape visible.


Why this matters

Cayley graphs connect algebra to combinatorics and geometry. They appear in the study of word problems in group theory, in the design of efficient communication networks, in the analysis of Rubik’s cube state spaces, and as fundamental objects in geometric group theory — a field that treats groups themselves as geometric spaces.

The construction

Let GG be a group and SGS \subseteq G a set of generators (a set whose elements, combined in various ways, can produce every element of GG). The Cayley graph Cay(G,S)\text{Cay}(G, S) is a directed graph where:

  • Each node represents one element of GG.
  • For each element gGg \in G and each generator sSs \in S, there is a directed edge from gg to gsg \cdot s (right-multiplication by ss).

The edges are colored or labeled by generator — one color per generator. The resulting picture is a graph where you can “read off” the group’s multiplication structure visually.

Explore: the dihedral group D₄

The dihedral group D4D_4 is the group of symmetries of a square. It has 8 elements:

ElementMeaning
eeidentity (no change)
rrrotation 90° clockwise
r2r^2rotation 180°
r3r^3rotation 270° clockwise
ssreflection (horizontal axis)
srsrreflection, then rotate 90°
sr2sr^2reflection, then rotate 180°
sr3sr^3reflection, then rotate 270°

The group has the presentation r,sr4=s2=e,  rs=sr1\langle r, s \mid r^4 = s^2 = e, \; rs = sr^{-1} \rangle.

The Cayley graph below uses generators {r,s}\{r, s\}. Click “Apply r” or “Apply s” to move through the graph from the identity. Watch how the path you trace records the word you have written in the generators.

eidentityr90°180°270°sflipsrflip·rsr²flip·r²sr³flip·r³
Current: e (identity)
rotation r
reflection s
your path
current position

Things to try:

  • Apply rr four times. You return to ee — because r4=er^4 = e.
  • Apply ss twice. You return to ee — because s2=es^2 = e.
  • Apply rr then ss then r1r^{-1} (= r3r^3) then ss. Where do you end up? This traces the relation rs=sr1rs = sr^{-1} in the graph.

What the structure tells you

Several features of D4D_4 are immediately visible in the Cayley graph:

  • The blue rr-edges form two directed 4-cycles — one through the rotations {e,r,r2,r3}\{e, r, r^2, r^3\} and one through the reflections {s,sr,sr2,sr3}\{s, sr, sr^2, sr^3\}. This tells you that the subgroup generated by rr alone has order 4.
  • The red ss-edges are bidirectional (since s2=es^2 = e) and connect each rotation to a distinct reflection. Applying ss twice always returns to the start.
  • Every node has the same in-degree and out-degree — this is always true for Cayley graphs, because the group acts regularly on itself.
Worked example — ℤ/4ℤ Cayley graph

The simplest non-trivial Cayley graph: Z/4Z\mathbb{Z}/4\mathbb{Z} with generator S={1}S = \{1\}.

  • Nodes: 0,1,2,30, 1, 2, 3.
  • Edges: 012300 \to 1 \to 2 \to 3 \to 0 (each node maps to the next via +1(mod4)+1 \pmod{4}).

The result is a directed 4-cycle. Every element of Z/4Z\mathbb{Z}/4\mathbb{Z} is reached by applying the generator 11 repeatedly, which confirms that 11 generates the whole group.

A key theorem

Cayley’s theorem (1854): Every group GG is isomorphic to a subgroup of the symmetric group Sym(G)\text{Sym}(G). In other words, every abstract group can be represented as a group of permutations.

The Cayley graph makes this concrete: the group acts on itself by right-multiplication, and each generator induces a permutation of the nodes.

Common misconception

The Cayley graph of a group depends on the choice of generators. The same group Z/6Z\mathbb{Z}/6\mathbb{Z} with generator {1}\{1\} produces a directed 6-cycle; with generators {2,3}\{2, 3\} it produces a denser graph. The generators are not a property of the group — they are a choice. Different choices reveal different aspects of the same structure.


Self-check
In a Cayley graph Cay(G, S), what do the nodes represent?
In the D4 Cayley graph with generators {r, s}, applying r four times from any node returns you to the starting node. Why?
If you change the generating set S for the same group G, what changes?

Stay in the loop

New concept pages ship regularly. Get a quiet note when something worth reading goes live.

No spam. Unsubscribe any time.