Graph coloring is a fundamental concept in computer science and mathematics, with wide-ranging applications in scheduling, map coloring, and circuit design. It involves assigning colors to vertices in a graph such that no two adjacent vertices share the same color. Here, we'll explore some example problems along with their solutions, focusing on the most common types: vertex coloring and edge coloring. We'll also provide PDF resources for further learning.

Before diving into the examples, let's quickly recap the basics. A graph G = (V, E) consists of a set of vertices V and a set of edges E, where each edge connects two vertices. A coloring of a graph is an assignment of colors to its vertices or edges, subject to certain constraints.

Vertex Coloring
In vertex coloring, the goal is to assign colors to vertices such that no two adjacent vertices share the same color. The chromatic number χ(G) of a graph G is the smallest number of colors required to color the vertices of G.

Let's consider a few examples:
Example 1: Complete Graph K_n

The complete graph K_n has n vertices, and every pair of vertices is connected by an edge. The chromatic number of K_n is n, as each vertex must have a unique color.
For instance, K_3 (the complete graph with 3 vertices) requires 3 colors. A valid coloring is: {1, 2, 3} → {1, 1, 2}, {2, 2, 3}, {3, 1, 3}.
Example 2: Cycle Graph C_n

The cycle graph C_n has n vertices arranged in a circle, with each vertex connected to its two neighbors. The chromatic number of C_n is 2 for even n and 3 for odd n.
For C_4, a valid coloring is: {1, 2} → {1, 2, 1, 2}. For C_5, a valid coloring is: {1, 2, 3} → {1, 2, 3, 1, 2}.
Edge Coloring

In edge coloring, the goal is to assign colors to edges such that no two incident edges (edges sharing a common vertex) have the same color. The chromatic index χ'(G) of a graph G is the smallest number of colors required to color the edges of G.
Let's look at an example:




















Example 3: Complete Bipartite Graph K_m,n
The complete bipartite graph K_m,n has two sets of vertices, A and B, with m and n vertices respectively, and every vertex in A is connected to every vertex in B. The chromatic index of K_m,n is m + n.
For K_2,3, a valid coloring is: {1, 2, 3} → {1, 2, 1}, {2, 3, 2}, {3, 1, 3}. Here, each color appears exactly once on each vertex, ensuring no two incident edges share the same color.
Further Learning
For more examples and in-depth discussions, check out these PDF resources:
- Graph Coloring: A Visualization by Mark J. demi
- Graph Coloring Algorithms and Applications by M. R. Garey and D. S. Johnson
Graph coloring is a fascinating topic with numerous open problems and applications. By understanding and practicing these examples, you'll gain a solid foundation to tackle more complex graph coloring problems. Happy learning!