Tutorials › Graph Theory (Undergraduate) › Proving Isomorphism With Explicit Bijections

Subgraphs, Isomorphism and Special Families · Tutorial 28 of 799

Proving Isomorphism With Explicit Bijections

Construct explicit vertex bijections, verify their edge sets, and prove that graph isomorphism is reflexive, symmetric, and transitive.

Beginner 9 min read

What You'll Learn

  • Define an isomorphism as a bijection that preserves adjacency in both directions.
  • Compute the image of an edge set under a proposed vertex map.
  • Verify a graph isomorphism by comparing the full image edge set with the target edge set.
  • Repair an incorrect target edge list by tracking undirected edges accurately.
  • Prove that graph isomorphism is reflexive, symmetric, and transitive.

From a Candidate Map to a Proof

Graph invariants can rule out an isomorphism or help identify plausible vertex correspondences, but matching invariants alone does not prove that two graphs are isomorphic. A proof needs an explicit correspondence between their vertices and a verification that it preserves adjacency. The most reliable method is to write down the vertex map, check that it is a bijection, and compute the image of the entire edge set.

Throughout, graphs are finite and simple: they have no loops or multiple edges, and their edges are unordered pairs of distinct vertices. Thus \(uv\) and \(vu\) denote the same edge. For a graph \(G=(V,E)\), its vertex set and edge set are also written \(V(G)\) and \(E(G)\).

Definition: Graphs \(G=(V,E)\) and \(H=(W,F)\) are isomorphic if there is a bijection \(\varphi:V\to W\) such that, for every pair of distinct vertices \(u,v\in V\), $$ uv\in E \quad\Longleftrightarrow\quad \varphi(u)\varphi(v)\in F. $$ Such a map \(\varphi\) is an isomorphism from \(G\) to \(H\). It preserves both adjacency and non-adjacency.

For an edge set \(E\), the image under \(\varphi\) is the set $$ \varphi(E)=\{\varphi(u)\varphi(v):uv\in E\}. $$ A useful verification method is to show that \(\varphi\) is a bijection and \(\varphi(E)=F\). Indeed, the equality says that every edge of \(G\) maps to an edge of \(H\), and that every edge of \(H\) comes from an edge of \(G\). Because \(\varphi\) is a bijection, each pair of target vertices has a unique pair of preimages; the edge-set equality therefore also rules out a target edge whose preimage pair is not an edge.

Checking Explicit Bijections

In a small example, keep the two checks separate. First verify that every vertex of the source has exactly one image and that these images are all the target vertices. Then compute the image of each source edge, remembering that the order of the endpoints does not matter. Finally compare the resulting set with the target edge set. If the sets agree, the map is an isomorphism.

Worked Example: A Relabeling That Preserves Every Edge

Let \(G=(V,E)\) have \(V=\{a,b,c,d\}\) and \(E=\{ab,ac,bd\}\). Let \(H=(W,F)\) have \(W=\{1,2,3,4\}\) and \(F=\{13,14,23\}\). Consider $$ \varphi(a)=1,\qquad \varphi(b)=3,\qquad \varphi(c)=4,\qquad \varphi(d)=2. $$

The images of the four vertices are \(1,3,4,2\). They are distinct and make up all of \(W\), so \(\varphi\) is a bijection. Compute the edge images individually: $$ \varphi(ab)=13,\qquad \varphi(ac)=14,\qquad \varphi(bd)=32=23. $$ Thus \(\varphi(E)=\{13,14,23\}=F\), so the map is an isomorphism.

Check: The degrees in \(G\), in the order \(a,b,c,d\), are \(2,2,1,1\): \(a\) meets \(ab,ac\), \(b\) meets \(ab,bd\), and \(c,d\) each meet one edge. In \(H\), the degrees of \(1,3,4,2\), the respective images, are \(2,2,1,1\): \(1\) meets \(13,14\), \(3\) meets \(13,23\), \(4\) meets \(14\), and \(2\) meets \(23\). This independent check agrees with the proposed correspondence.

In an undirected graph, writing an edge in the reverse order does not create a new edge: \(uv=vu\). This convention matters when comparing computed image sets with a proposed target. Treating reversed notation as a different edge can hide a missing edge or suggest that a list has the wrong number of distinct edges.

Worked Example: Finding and Correcting an Edge-Set Error

Let \(G=(V,E)\) have \(V=\{a,b,c,d,e\}\) and \(E=\{ab,ac,bc,cd,de\}\). Define a vertex map to \(W=\{1,2,3,4,5\}\) by $$ \varphi(a)=1,\qquad \varphi(b)=5,\qquad \varphi(c)=3,\qquad \varphi(d)=2,\qquad \varphi(e)=4. $$ These images are distinct and include all five target vertices, so the map is a bijection.

Compute every edge image: $$ \varphi(ab)=15,\quad \varphi(ac)=13,\quad \varphi(bc)=53=35,\quad \varphi(cd)=32=23,\quad \varphi(de)=24. $$ Therefore the required target edge set is \(\{15,13,35,23,24\}\).

Suppose a proposed target graph instead has edge set \(\{13,15,24,23,51\}\). The computed image set contains \(24\) (also written \(42\)) and \(35\). The proposed target edge set already contains \(24\), but it must include \(35\) instead of \(51\). In fact, \(51=15\) in an undirected graph, so the proposed list repeats the edge \(15\) and omits \(35\). Replacing \(51\) by \(35\) gives the corrected edge set \(\{13,15,24,23,35\}\), which is exactly \(\varphi(E)\). With that correction, the map is an isomorphism.

Check: The source has five distinct edges. The corrected target set also has five distinct edges: \(13,15,24,23,35\). The image calculation gives these same five edges, one for each source edge. The uncorrected list has only four distinct edges because \(51=15\), confirming why it cannot be the image set.

Worked Example: A Less Direct Correspondence

Let \(G=(V,E)\) have \(V=\{p,q,r,s\}\) and \(E=\{pq,pr,qr,rs\}\). Let \(H=(W,F)\) have \(W=\{1,2,3,4\}\) and \(F=\{12,13,14,34\}\). Consider the map $$ \varphi(p)=3,\qquad \varphi(q)=4,\qquad \varphi(r)=1,\qquad \varphi(s)=2. $$

The images \(3,4,1,2\) are distinct and exhaust \(W\), so \(\varphi\) is bijective. The edges map as follows: $$ \varphi(pq)=34,\quad \varphi(pr)=31=13,\quad \varphi(qr)=41=14,\quad \varphi(rs)=12. $$ Consequently \(\varphi(E)=\{34,13,14,12\}=F\), and \(\varphi\) is an isomorphism.

Check: In \(G\), \(r\) is incident with \(pr,qr,rs\), so its degree is \(3\); \(p\) and \(q\) each have degree \(2\); and \(s\) has degree \(1\). In \(H\), vertex \(1\) is incident with \(12,13,14\), vertices \(3\) and \(4\) each have degree \(2\), and vertex \(2\) has degree \(1\). These degrees correspond under the map: \(r\) maps to \(1\), \(p,q\) map to \(3,4\), and \(s\) maps to \(2\).

Isomorphism Is an Equivalence Relation

The explicit-map definition also gives three basic structural properties. A relation is an equivalence relation if it is reflexive, symmetric, and transitive. The proof here uses the identity map, inverse maps, and compositions of bijections; each construction must also preserve the required edge relation.

Theorem: Graph isomorphism is reflexive, symmetric, and transitive. More precisely, every graph is isomorphic to itself; if \(G\) is isomorphic to \(H\), then \(H\) is isomorphic to \(G\); and if \(G\) is isomorphic to \(H\) and \(H\) is isomorphic to \(K\), then \(G\) is isomorphic to \(K\).

Proof. Let \(G=(V,E)\). For reflexivity, use the identity map \(\operatorname{id}_V:V\to V\), defined by \(\operatorname{id}_V(v)=v\) for every \(v\in V\). It is a bijection, and for every pair of distinct vertices \(u,v\), \(uv\in E\) if and only if \(\operatorname{id}_V(u)\operatorname{id}_V(v)=uv\in E\). Thus \(G\) is isomorphic to itself. This also holds when \(V\) is empty: the empty map from the empty set to itself is a bijection, and there are no vertex pairs to check.

For symmetry, suppose \(\varphi:V(G)\to V(H)\) is an isomorphism. Its inverse \(\varphi^{-1}:V(H)\to V(G)\) is a bijection. For any distinct \(x,y\in V(H)\), set \(u=\varphi^{-1}(x)\) and \(v=\varphi^{-1}(y)\). Since \(\varphi\) is an isomorphism, \(uv\in E(G)\) if and only if \(\varphi(u)\varphi(v)=xy\in E(H)\). Reversing the sides gives \(xy\in E(H)\) if and only if \(\varphi^{-1}(x)\varphi^{-1}(y)\in E(G)\), so \(\varphi^{-1}\) is an isomorphism from \(H\) to \(G\).

For transitivity, suppose \(\varphi:V(G)\to V(H)\) and \(\psi:V(H)\to V(K)\) are isomorphisms. Their composition \(\psi\circ\varphi:V(G)\to V(K)\) is a bijection, because each map is a bijection. For any distinct \(u,v\in V(G)\), the two isomorphism conditions give $$ uv\in E(G) \quad\Longleftrightarrow\quad \varphi(u)\varphi(v)\in E(H) \quad\Longleftrightarrow\quad \psi(\varphi(u))\psi(\varphi(v))\in E(K). $$ The last condition says exactly that the images of \(u,v\) under \(\psi\circ\varphi\) are adjacent in \(K\). Hence \(\psi\circ\varphi\) is an isomorphism from \(G\) to \(K\). If any vertex set is empty, the existence of the stated bijections forces the other sets in that comparison to be empty as well; the empty composition is a bijection and the adjacency condition has no pairs to check. Thus the three properties hold in all cases. \(\square\)

These properties let us treat graphs as equivalent up to relabeling. Reflexivity gives a graph in its own equivalence class, symmetry means that the direction of an isomorphism does not matter, and transitivity means that a chain of verified correspondences can be composed. In practice, if a complicated graph is easier to compare with an intermediate graph, two explicit isomorphisms can be composed to obtain one direct isomorphism.

Common Pitfalls

Showing only that edges map to edges. If the definition is stated as “adjacency is preserved,” check that the intended meaning includes both directions. A bijection that sends every source edge to a target edge might still fail to account for all target edges. Comparing the full image set \(\varphi(E)\) with \(F\) checks both directions.

Checking the vertex map but not its bijectivity. A list of assignments is not automatically a bijection. Check that no two source vertices receive the same image and that every target vertex occurs. Without this, the map cannot establish graph isomorphism.

Reversing an undirected edge in a comparison. The notation \(51\) denotes the same edge as \(15\), not a new edge. In the second example, counting \(51\) separately would conceal a repeated edge and make a false edge-set comparison. Always compare sets of unordered pairs.

Using invariants as a substitute for a map. Matching degree lists or other invariants can help screen candidate pairs, but equality of an invariant does not itself provide an adjacency-preserving bijection. A complete proof still requires a specific map and a check of its edge images.

Check Your Understanding

For each question, make the relevant map or edge-set comparison explicit.

  1. Let \(G\) have vertices \(\{a,b,c\}\) and edges \(\{ab,bc\}\). Let \(H\) have vertices \(\{1,2,3\}\) and edges \(\{12,13\}\). Does the map \(a\mapsto1,\ b\mapsto3,\ c\mapsto2\) give an isomorphism? Verify the vertex and edge conditions.
  2. Suppose a bijection \(\varphi:V(G)\to V(H)\) satisfies \(\varphi(E(G))=E(H)\). Explain why it preserves adjacency in both directions.
  3. Write the inverse of the bijection \(a\mapsto2,\ b\mapsto4,\ c\mapsto1\) from \(\{a,b,c\}\) to \(\{1,2,4\}\), and explain why the inverse is an isomorphism whenever the original map is one.
  4. If \(\varphi:G\to H\) and \(\psi:H\to K\) are isomorphisms, state the map from \(G\) to \(K\) and identify the facts that establish it is an isomorphism.
  5. Why does a target edge list containing both \(12\) and \(21\) not describe two distinct edges in a simple undirected graph?