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 with colors is a function such that whenever distinct edges and share an endpoint. Each color class is therefore a matching. The smallest such is the chromatic index (or edge chromatic number) .
Key Formula
Where:
- = Maximum degree: the largest number of edges meeting at any single vertex of
- = Chromatic index: the minimum number of colors in a proper edge coloring of
- = 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 . 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.
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.
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.
Answer: , so the tournament needs 3 rounds. The lower bound 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 () or Class 2 ().
Common Mistakes
Mistake: Assuming the chromatic index always equals the maximum degree .
Correction: is only a lower bound. A triangle has , but its 3 edges are pairwise adjacent, so it needs 3 colors. Any odd cycle behaves the same way. Bipartite graphs do always achieve , which is König's theorem.
