Skip to content

Chapter 67. Edge Coloring

Vertex coloring assigns colors to vertices so that adjacent vertices receive different colors. Edge coloring assigns colors to edges so that edges sharing a common endpoint receive different colors.

This changes the nature of the problem. In vertex coloring, conflicts occur between adjacent vertices. In edge coloring, conflicts occur between incident edges.

Edge coloring models allocation problems in which edges represent tasks, connections, or interactions. Two edges that meet at a vertex cannot occur simultaneously if the shared vertex represents a limited resource.

67.1 Edge Colorings

Let G=(V,E)G = (V,E) be a graph. An edge coloring of GG is a function

c:ES, c : E \to S,

where SS is a set of colors.

A coloring is proper if any two incident edges receive different colors. Thus, if edges ee and ff share a common endpoint, then

c(e)c(f). c(e) \ne c(f).

If S={1,2,,k}S = \{1,2,\ldots,k\}, then the coloring is called a kk-edge-coloring.

A graph is kk-edge-colorable if it admits a proper edge coloring using at most kk colors.

67.2 Edge Chromatic Number

The edge chromatic number of a graph GG, denoted by

χ(G), \chi'(G),

is the least number of colors needed for a proper edge coloring.

χ(G)=min{k:G is k-edge-colorable}. \chi'(G) = \min\{k : G \text{ is } k\text{-edge-colorable}\}.

The notation χ(G)\chi'(G) distinguishes edge coloring from vertex coloring, whose chromatic number is denoted χ(G)\chi(G).

The edge chromatic number is also called the chromatic index.

67.3 First Examples

Consider the path graph

P4:v1v2v3v4. P_4: \qquad v_1 - v_2 - v_3 - v_4.

This graph has three edges. The middle edge touches both remaining edges, so it must receive a different color from each. However, the two outer edges are not incident, so they may share a color.

Thus two colors suffice:

EdgeColor
v1v2v_1v_21
v2v3v_2v_32
v3v4v_3v_41

Therefore,

χ(P4)=2. \chi'(P_4)=2.

Now consider the triangle K3K_3. Every edge touches the other two edges. Therefore all three edges require distinct colors:

χ(K3)=3. \chi'(K_3)=3.

Now consider the square C4C_4. Opposite edges do not meet, so two alternating colors suffice:

χ(C4)=2. \chi'(C_4)=2.

These examples already suggest that parity plays an important role in edge coloring.

67.4 Matchings and Color Classes

In a proper edge coloring, all edges of the same color are pairwise nonincident. Such a set of edges is called a matching.

Therefore every color class in an edge coloring is a matching.

Conversely, if the edge set of a graph can be partitioned into matchings, then assigning one color to each matching produces a proper edge coloring.

Thus edge coloring is equivalent to partitioning the edge set into matchings.

ViewDescription
Coloring viewAssign colors to edges
Matching viewPartition edges into matchings

This connection is fundamental. Much of edge coloring theory is closely related to matching theory.

67.5 Lower Bounds

Let Δ(G)\Delta(G) denote the maximum degree of GG.

At any vertex vv, all incident edges must receive distinct colors. Since vv has degree d(v)d(v), at least d(v)d(v) colors are required locally.

Therefore

χ(G)Δ(G). \chi'(G) \ge \Delta(G).

This lower bound is immediate and extremely important.

For example, in the complete graph K5K_5,

Δ(K5)=4. \Delta(K_5)=4.

Thus at least four colors are required.

The surprising fact is that only one additional color is ever needed beyond this lower bound.

67.6 Vizing’s Theorem

One of the central results of edge coloring is Vizing’s Theorem.

If GG is a simple graph, then

Δ(G)χ(G)Δ(G)+1. \Delta(G) \le \chi'(G) \le \Delta(G)+1.

This theorem shows that every simple graph belongs to one of two classes.

ClassCondition
Class 1χ(G)=Δ(G)\chi'(G)=\Delta(G)
Class 2χ(G)=Δ(G)+1\chi'(G)=\Delta(G)+1

Thus the edge chromatic number is determined almost completely by the maximum degree.

This is very different from vertex coloring, where the chromatic number may be arbitrarily larger than the maximum degree.

For example:

GraphΔ(G)\Delta(G)χ(G)\chi'(G)
Even cycle C2mC_{2m}22
Odd cycle C2m+1C_{2m+1}23
K4K_433
K5K_545

Odd cycles provide the simplest Class 2 graphs.

67.7 Edge Coloring of Cycles

Cycles provide a clean illustration of parity effects.

If nn is even, then the cycle

Cn C_n

may be colored by alternating two colors around the cycle.

Thus

χ(C2m)=2. \chi'(C_{2m})=2.

If nn is odd, alternating colors fails when the cycle closes. The last edge conflicts with the first edge. Therefore a third color is required:

χ(C2m+1)=3. \chi'(C_{2m+1})=3.

Hence:

χ(Cn)={2,n even,3,n odd. \chi'(C_n) = \begin{cases} 2, & n \text{ even}, \\ 3, & n \text{ odd}. \end{cases}

Odd parity creates the obstruction.

67.8 Edge Coloring of Complete Graphs

The complete graph KnK_n has

Δ(Kn)=n1. \Delta(K_n)=n-1.

Its edge chromatic number depends on whether nn is even or odd.

χ(Kn)={n1,n even,n,n odd. \chi'(K_n) = \begin{cases} n-1, & n \text{ even}, \\ n, & n \text{ odd}. \end{cases}

Thus:

GraphEdge chromatic number
K4K_43
K5K_55
K6K_65
K7K_77

When nn is even, the edges may be partitioned into perfect matchings. When nn is odd, parity prevents this.

The odd case is closely related to tournament scheduling. If nn teams play pairwise matches, each round corresponds to a matching. An odd number of teams forces one team to remain idle each round.

67.9 König’s Line Coloring Theorem

A major theorem for bipartite graphs is König’s Line Coloring Theorem.

If GG is bipartite, then

χ(G)=Δ(G). \chi'(G)=\Delta(G).

Thus every bipartite graph is Class 1.

This theorem is important both theoretically and algorithmically. Bipartite structure eliminates the parity obstructions that occur in general graphs.

For example, consider the complete bipartite graph Km,nK_{m,n}. Its maximum degree is

Δ(Km,n)=max(m,n). \Delta(K_{m,n})=\max(m,n).

Therefore

χ(Km,n)=max(m,n). \chi'(K_{m,n})=\max(m,n).

67.10 Line Graphs

Edge coloring can be converted into a vertex coloring problem.

The line graph of a graph GG, denoted L(G)L(G), is constructed as follows:

  • each edge of GG becomes a vertex of L(G)L(G),
  • two vertices of L(G)L(G) are adjacent if the corresponding edges of GG are incident.

Thus adjacency in the line graph represents edge incidence in the original graph.

Therefore:

χ(G)=χ(L(G)). \chi'(G)=\chi(L(G)).

Edge coloring becomes vertex coloring of the line graph.

This correspondence allows many edge-coloring problems to be studied through ordinary vertex coloring.

67.11 Edge Coloring and Scheduling

Edge coloring naturally models scheduling problems involving shared resources.

Suppose vertices represent processors and edges represent communication tasks. Two tasks sharing a processor cannot occur simultaneously. A proper edge coloring assigns time slots so that conflicting tasks occur at different times.

Graph conceptScheduling meaning
VertexResource
EdgeTask
Incident edgesConflicting tasks
ColorTime slot

The edge chromatic number gives the minimum number of required time slots.

This model appears in communication networks, switch scheduling, and tournament design.

67.12 Regular Graphs

A graph is rr-regular if every vertex has degree rr.

For regular graphs, edge coloring interacts strongly with parity.

Suppose GG is rr-regular on nn vertices. Then

E(G)=rn2. |E(G)|=\frac{rn}{2}.

If GG is properly edge colored using rr colors, then each color class must form a perfect matching. Thus each color class contains exactly n/2n/2 edges.

This immediately implies that nn must be even.

Therefore an rr-regular graph on an odd number of vertices cannot be edge colored with only rr colors.

This explains why

χ(K2m+1)=2m+1. \chi'(K_{2m+1})=2m+1.

67.13 Edge Coloring Algorithms

A simple greedy algorithm colors edges one at a time.

At each step, assign to the current edge the smallest available color not used on adjacent edges.

Suppose an edge uvuv is being colored. At most

(d(u)1)+(d(v)1) (d(u)-1)+(d(v)-1)

colors are forbidden by adjacent edges.

Since

d(u),d(v)Δ(G), d(u),d(v)\le \Delta(G),

at most

2Δ(G)2 2\Delta(G)-2

colors are excluded.

Thus greedy coloring gives the bound

χ(G)2Δ(G)1. \chi'(G)\le 2\Delta(G)-1.

Vizing’s Theorem greatly improves this bound, but its proof is more subtle.

67.14 Multigraphs

In a multigraph, multiple edges may join the same pair of vertices.

Edge coloring becomes more complicated because parallel edges are mutually incident. If mm parallel edges connect two vertices, then all mm edges require different colors.

Vizing’s Theorem applies only to simple graphs. For multigraphs, stronger bounds are needed.

One classical result is Shannon’s Theorem:

χ(G)32Δ(G) \chi'(G)\le \frac{3}{2}\Delta(G)

for multigraphs.

Edge coloring of multigraphs is substantially more difficult than edge coloring of simple graphs.

67.15 Comparison with Vertex Coloring

Vertex coloring and edge coloring share similar language but behave differently.

PropertyVertex coloringEdge coloring
Object coloredVerticesEdges
Conflict relationAdjacencyIncidence
Minimum numberχ(G)\chi(G)χ(G)\chi'(G)
Basic lower boundClique numberMaximum degree
General upper boundΔ+1\Delta+1Δ+1\Delta+1
Difficulty sourceGlobal structureLocal incidence and parity

The chromatic number of a graph may be arbitrarily large even when the maximum degree is small. Edge chromatic number behaves more rigidly because local degree structure dominates the problem.

67.16 Exercises

  1. Find χ(P6)\chi'(P_6).

  2. Find χ(C5)\chi'(C_5).

  3. Prove that every matching gives a proper edge coloring with one color.

  4. Prove that every color class in a proper edge coloring is a matching.

  5. Find the edge chromatic number of K4K_4.

  6. Find the edge chromatic number of K6K_6.

  7. Construct the line graph of C4C_4.

  8. Prove that

χ(G)Δ(G). \chi'(G)\ge \Delta(G).
  1. Show that every bipartite graph with maximum degree 2 is edge colorable with two colors.

  2. Give an example of a Class 2 graph.

  3. Prove that every even cycle is 2-edge-colorable.

  4. Prove that every odd cycle is 3-edge-colorable.

  5. Determine the edge chromatic number of the star graph K1,nK_{1,n}.

  6. Explain why an odd regular graph cannot be decomposed into perfect matchings.

  7. Describe a scheduling problem modeled naturally by edge coloring.