Tutorials › Graph Theory (Undergraduate) › Parity Arguments in Graph Proofs

Proof Strategies in Graph Theory · Tutorial 782 of 799

Parity Arguments in Graph Proofs

Use counts modulo two to find parity constraints on degrees, cuts, and selected vertex sets, and apply those constraints to rule out impossible graph configurations.

Intermediate 9 min read

What You'll Learn

  • Derive the even number of odd-degree vertices from the handshake count.
  • Relate the degree sum over a vertex set to the number of edges crossing its cut.
  • Use parity to rule out proposed degree lists and edge configurations.
  • Explain why every cycle crosses any cut an even number of times.
  • Recognize what parity constraints can establish—and what they cannot.

Parity as a Counting Tool

In a graph proof, exact counts can sometimes be harder to determine than whether a count is even or odd. Reducing a count modulo two often reveals a contradiction with little additional information. The key is to count incidences carefully: an edge with both endpoints in a selected vertex set contributes twice to the degree sum of that set, while an edge crossing from the set to its complement contributes once.

All graphs in this tutorial are finite and simple. For a vertex \(v\), its degree \(\deg(v)\) is the number of edges incident with \(v\). For a vertex set \(S\subseteq V(G)\), let \(E(G[S])\) be the edges with both endpoints in \(S\), and let \(\partial(S)\) be the set of edges with exactly one endpoint in \(S\). The edges of \(\partial(S)\) are the edges crossing the cut determined by \(S\) and \(V(G)\setminus S\). We use “even” and “odd” in their usual integer sense; an equality modulo two records only whether two integers have the same parity.

Key identity: For every graph \(G\) and every vertex set \(S\subseteq V(G)\), including \(S=\varnothing\) and \(S=V(G)\), $$ \sum_{v\in S}\deg(v)=2|E(G[S])|+|\partial(S)|. $$ Consequently, the degree sum over \(S\) is odd exactly when \(|\partial(S)|\) is odd.

This identity is an incidence count. An edge internal to \(S\) contributes one to the degree of each of its two endpoints, so it contributes two to the sum. An edge crossing the cut has just one endpoint in \(S\), so it contributes one. An edge with both endpoints outside \(S\) contributes zero. These cases exhaust the edges. In particular, the formula remains valid for the empty set and the whole vertex set: both sides are zero when \(S=\varnothing\), and \(\partial(V(G))=\varnothing\) when \(S=V(G)\).

The Even-Odd-Degree Rule

Theorem: Every finite graph has an even number of vertices of odd degree.

Proof. Take \(S=V(G)\) in the identity. There are no edges crossing from \(V(G)\) to its complement, so \(\sum_{v\in V(G)}\deg(v)=2|E(G)|\), which is even. The sum of a finite list of integers is odd precisely when the list contains an odd number of odd entries: even entries do not affect parity, and adding an odd number of odd entries gives an odd sum. Since the degree sum is even, the number of odd-degree vertices must be even. If \(V(G)=\varnothing\), there are no odd-degree vertices, and their number, zero, is even as required. \(\square\)

This is a parity form of the handshake count. It constrains the number of odd degrees, not the particular values of the degrees. The same argument applies separately to each connected component: apply the theorem to the graph formed by that component’s vertices and edges. Thus each component has an even number of odd-degree vertices, even when the whole graph has several components or isolated vertices.

Worked Example: Ruling Out a Degree List

Could a simple graph on four vertices have degree list \(3,3,1,0\)? Each entry is between \(0\) and \(3\), so the individual values satisfy the basic degree bounds for a graph on four vertices. Test the list using parity.

The proposed list has three odd entries, namely \(3,3,1\). Since three is odd, the even-odd-degree rule rules out the list. The degree-sum check gives the same contradiction: \(3+3+1+0=7\), while the sum of degrees of any graph must equal twice its number of edges and hence be even.

Check: If a graph with this list had \(m\) edges, the degree sum would give \(2m=7\), or \(m=7/2\). An edge count must be an integer, so no such graph exists. The parity rule is a necessary condition for a degree list to be realizable, not a guarantee that every list passing the test is realizable.

Degree Sums on a Selected Set

The identity for a set \(S\) is useful even when the degrees outside \(S\) are irrelevant. Modulo two, the term \(2|E(G[S])|\) disappears, leaving \(\sum_{v\in S}\deg(v)\equiv|\partial(S)|\pmod 2\). So an odd degree sum on \(S\) forces an odd number of crossing edges, and an even degree sum forces an even number. This can test a proposed cut without requiring the exact number of edges internal to \(S\).

Corollary: For any \(S\subseteq V(G)\), if every vertex of \(S\) has even degree, then \(|\partial(S)|\) is even. More generally, \(|\partial(S)|\) and the number of odd-degree vertices in \(S\) have the same parity.

Proof. In the sum \(\sum_{v\in S}\deg(v)\), each even degree contributes zero modulo two and each odd degree contributes one. Therefore the sum has the same parity as the number of odd-degree vertices in \(S\). By the key identity, the sum also has the same parity as \(|\partial(S)|\), because \(2|E(G[S])|\) is even. The two quantities therefore have the same parity. If all degrees in \(S\) are even, the number of odd-degree vertices in \(S\) is zero, so \(|\partial(S)|\) is even. The argument includes \(S=\varnothing\), for which both counts are zero. \(\square\)

Worked Example: Testing the Edges Across a Cut

Let \(G\) have vertex set \(V=\{1,2,3,4,5\}\) and edge set \(E=\{12,13,23,24,34,45\}\). Take \(S=\{1,2\}\). Determine whether the number of edges crossing this cut is even or odd, and check it by direct enumeration.

The degrees are \(\deg(1)=2\), from \(12,13\); \(\deg(2)=3\), from \(12,23,24\); \(\deg(3)=3\), from \(13,23,34\); \(\deg(4)=3\), from \(24,34,45\); and \(\deg(5)=1\), from \(45\). Thus the degree sum over \(S\) is \(2+3=5\), which is odd. The identity forces \(|\partial(S)|\) to be odd.

For the direct count, the only edge internal to \(S\) is \(12\), so \(|E(G[S])|=1\). The crossing edges are \(13,23,24\), so \(|\partial(S)|=3\). Substitution gives \(2|E(G[S])|+|\partial(S)|=2\cdot1+3=5\), agreeing with the degree sum.

Check: The full degree sum is \(2+3+3+3+1=12\). There are six edges, so twice the edge count is \(2\cdot6=12\), as the handshake count requires. The cut calculation also gives the correct odd parity: \(3\) crossing edges.

Why a Cycle Crosses a Cut Evenly

A second useful parity argument follows an object edge by edge rather than adding degrees. As a cycle is traversed, every crossing edge switches whether the current vertex lies in \(S\) or outside \(S\). To return to the starting vertex, the number of switches must be even. This argument does not depend on how many other edges the graph has.

Proposition: For any cycle \(C\) in a graph and any vertex set \(S\), the number of edges of \(C\) in \(\partial(S)\) is even.

Proof. Write the cycle in order as \(v_0v_1\cdots v_{\ell-1}v_0\), where \(\ell\ge3\) and the listed vertices are distinct. For each index \(i\), with indices taken cyclically, the edge \(v_iv_{i+1}\) crosses the cut exactly when one endpoint is in \(S\) and the other is outside \(S\). Record membership as \(1\) for a vertex in \(S\) and \(0\) for a vertex outside \(S\). A crossing edge changes this value, while a noncrossing edge leaves it unchanged. After traversing all \(\ell\) edges, the membership value returns to its starting value at \(v_0\). A sequence of changes by \(0\) or \(1\) that returns to its initial value must contain an even number of changes, since each change toggles between \(0\) and \(1\). Hence the cycle uses an even number of edges of \(\partial(S)\). \(\square\)

Worked Example: Checking Crossings on a Cycle

Let \(G\) have vertex set \(V=\{1,2,3,4,5\}\) and edge set \(E=\{12,23,34,45,51\}\), so \(G\) is a 5-cycle. Set \(S=\{1,3\}\). Count the cycle edges crossing the cut.

Edge \(12\) crosses because \(1\in S\) and \(2\notin S\). Edge \(23\) crosses because \(2\notin S\) and \(3\in S\). Edge \(34\) crosses because \(3\in S\) and \(4\notin S\). Edge \(45\) does not cross because both endpoints are outside \(S\). Edge \(51\) crosses because \(5\notin S\) and \(1\in S\). Therefore the cycle crosses the cut on exactly four edges: \(12,23,34,51\).

Check: Traversing the cycle, membership in \(S\) changes from in to out on \(12\), out to in on \(23\), in to out on \(34\), stays out on \(45\), and changes out to in on \(51\). There are four changes, an even number, and the traversal returns to vertex \(1\in S\).

Using Parity Carefully

Parity arguments are most effective when the count is stated precisely. A claim that “the edges contribute an even amount” is not enough: specify which edges are being counted and whether an internal edge contributes twice or a crossing edge contributes once. The set identity makes those contributions explicit, and the cycle argument tracks membership changes in their order.

A common error is to equate the degree sum over \(S\) with the number of crossing edges, omitting the internal edges’ contributions. In the cut example, that incorrect calculation would say the degree sum \(5\) equals the crossing count \(3\). The numbers are not equal: the one internal edge contributes twice, so the correct calculation is \(5=2\cdot1+3\). The two quantities have the same parity, which is the conclusion the modulo-two argument permits.

Parity usually provides a necessary condition, not a complete description. For instance, an even number of odd entries in a proposed degree list passes the even-odd-degree test, but that alone does not construct a graph with those degrees. Likewise, knowing a cut has even size does not determine its exact size. Use parity to rule out a configuration when it violates a necessary condition; use a separate argument when the goal is to prove existence or determine an exact count.

Check Your Understanding

For each question, identify the count whose parity is being used, and state any assumptions needed.

  1. A graph is claimed to have degree list \(4,3,2,1,0\). What parity obstruction, if any, applies?
  2. For a set \(S\), suppose exactly five vertices in \(S\) have odd degree. What can be concluded about \(|\partial(S)|\)?
  3. Explain why the degree-sum identity holds when \(S=\varnothing\) and when \(S=V(G)\).
  4. A cycle is claimed to use exactly three edges crossing a particular cut. Which proposition rules this out, and what is the contradiction?
  5. Give a reason that an even number of odd entries in a proposed degree list does not by itself prove that the list is realizable by a graph.