Mathwords logoMathwords

Edge Coloring — Definition, Formula & Example

Edge coloring is a way of giving each edge of a graph a color so that any two edges meeting at the same vertex get different colors. The goal is usually to use as few colors as possible.

A proper edge coloring of a graph G=(V,E)G = (V, E) with kk colors is a function c:E→{1,2,…,k}c: E \to \{1, 2, \dots, k\} such that c(e)≠c(f)c(e) \neq c(f) whenever distinct edges ee and ff share an endpoint. Each color class is therefore a matching. The smallest such kk is the chromatic index (or edge chromatic number) χ′(G)\chi'(G).

Key Formula

Δ(G)≤χ′(G)≤Δ(G)+1\Delta(G) \le \chi'(G) \le \Delta(G) + 1
Where:
  • Δ(G)\Delta(G) = Maximum degree: the largest number of edges meeting at any single vertex of GG
  • χ′(G)\chi'(G) = Chromatic index: the minimum number of colors in a proper edge coloring of GG
  • GG = A simple graph (no loops, no repeated edges). This is Vizing's theorem.

Worked Example

Problem: Four teams, A, B, C, and D, play a round-robin: every team plays every other team once. A team can play at most one game per round. What is the fewest number of rounds needed? Model teams as vertices and games as edges of the complete graph K4K_4. Each round is one color.
Step 1: Count the games and find the maximum degree. Each pair of teams plays once, and each team plays the other 3 teams.
∣E∣=(42)=6,Δ(K4)=3|E| = \binom{4}{2} = 6, \qquad \Delta(K_4) = 3
Step 2: Get a lower bound. Team A's 3 games all meet at vertex A, so they need 3 different colors. Vizing's theorem then says the answer is 3 or 4.
3≤χ′(K4)≤43 \le \chi'(K_4) \le 4
Step 3: Try 3 colors. Each color can hold at most 2 games here, since 2 disjoint games use all 4 teams. That gives exactly enough room for all 6 games. Group the games into 3 rounds with no team repeated in a round.
Round 1: {AB,CD},Round 2: {AC,BD},Round 3: {AD,BC}\text{Round 1: } \{AB, CD\}, \quad \text{Round 2: } \{AC, BD\}, \quad \text{Round 3: } \{AD, BC\}
Answer: χ′(K4)=3\chi'(K_4) = 3, so the tournament needs 3 rounds. The lower bound Δ=3\Delta = 3 is reached.

Why It Matters

Edge coloring is the math behind scheduling problems where each event uses two resources at once. Examples include sports league rounds, exam timetables pairing classes with rooms, and assigning frequencies to links in a communication network. In a discrete math or graph theory course, Vizing's theorem is a standard example of a bound that is almost exact. Every simple graph falls into Class 1 (χ′=Δ\chi' = \Delta) or Class 2 (χ′=Δ+1\chi' = \Delta + 1).

Common Mistakes

Mistake: Assuming the chromatic index always equals the maximum degree Δ\Delta.
Correction: Δ\Delta is only a lower bound. A triangle has Δ=2\Delta = 2, but its 3 edges are pairwise adjacent, so it needs 3 colors. Any odd cycle behaves the same way. Bipartite graphs do always achieve χ′=Δ\chi' = \Delta, which is König's theorem.

Related Terms

  • Graph Coloring — Colors vertices instead of edges under a similar rule
  • Bipartite Graph — König's theorem says these always need exactly Δ colors
  • Clique — Complete graphs on n vertices need n−1 or n colors
  • Acyclic Graph — Forests are bipartite, so Δ edge colors always suffice
  • Pseudograph — Repeated edges can break Vizing's Δ+1 upper bound
  • Graph Edge — The objects that receive colors in an edge coloring