- Graph coloring also called as Vertex coloring is a process of assigning colors to all the vertices of the graph such that no two adjacent vertices of it are assigned the same color.
- In other words, there must not be any edge in the graph whose end vertices are colored with the same color. Such a graph is called as properly colored graph.
In this graph, no two adjacent vertices have the same color and therefore this graph is a properly colored graph.
Applications of Graph Coloring-
There are number of applications of graph coloring. Some of them are as follows-
- Map Coloring
- Scheduling the tasks
- Preparing Time Table
- Conflict Resolution
- Chromatic Number is the minimum number of colors required to properly color any graph.
- Chromatic Number is the minimum number of colors required to color any graph such that no two adjacent vertices of it are assigned the same color.
Consider the following graph-
In this graph, no two adjacent vertices have the same colors and the minimum number of colors = 3 have been used to color the vertices.
Chromatic number of this graph = 3
We can not properly color this graph with less than 3 colors.
Common Types of Graphs and their Chromatic numbers-
1. Cycle Graphs-
A simple graph having ‘n’ vertices (n>=3) and n edges is called a cycle graph if all its edges form a cycle of length ‘n’.
A cycle graph is a graph where degree of each vertex is 2.
2. Planar Graphs-
A planar graph is a graph that can be drawn in a plane such that none of its edges cross each other.
Chromatic Number of Planar Graphs = Less than or equal to 4
All the above cycle graphs are also planar graphs where chromatic number of each graph is less than or equal to 4.
3. Complete Graphs-
- A complete graph is a graph in which every two distinct vertices are joined by exactly one edge.
- In a complete graph, because each vertex is connected with every other vertex, so we need as many different colors as there are number of vertices in the given graph in order to properly color the graph.
Chromatic Number of Complete Graphs = Number of vertices in the Complete Graph
4. Bipartite Graphs-
A bipartite graph consists of two sets of vertices X and Y. The edges only join vertices in X to vertices in Y, not vertices within a set.
Chromatic Number of Bipartite Graphs = 2
- A tree is a special type of connected graph in which there are no circuits.
- Every tree is a bipartite graph, so chromatic number of tree with n vertices = 2.
Chromatic Number of any tree = 2
Get more notes and other study material of Graph Theory.
Watch video lectures by visiting our YouTube channel LearnVidFun.