Module 7 Graph Coloring Covering Partitioning
Module 7 Graph Coloring Covering Partitioning
Aarthy B
Division of Mathematics,
School of Advanced Sciences,
Vellore Institute of Technology, Chennai.
November 5, 2023
1 Bipartite Graphs
2 Coloring
3 Chromatic Polynomial
4 Matching
5 Covering
Bipartite graph
A graph is bipartite if its vertex set can be partitioned into two subsets V1 and V2
so that every edge has one end in V1 and one end in V2 . Such a partition (V1 , V2 )
is called a bi-partition of the graph. We denote a bipartite graph G with
bi-partition (V1 , V2 ) by G[V1 , V2 ].
Star Graph
A star is a complete bipartite graph with |V1 | = 1 or |V2 | = 1. It is denoted as
K1,n or Kn,1 or Sn+1 .
1 Recommendation Systems
2 Job Matching
3 Social Network Analysis
4 Web Page Ranking
5 Matching Problems
6 Network Flow Problems
7 Biological Networks
8 Fraud Detection
Example: Check whether the given graphs are bipartite or not. Justify the same.
Example: Check whether the given graphs are bipartite or not. Justify the same.
Graph Coloring
Graph coloring is nothing but a simple way of labelling graph components such as
vertices, edges and regions under some constraints.
Proper Coloring
The proper coloring of a graph is assignment of colors to vertices or edges or
regions in such a way that no two adjacent vertices or adjacent edges or adjacent
regions have the same color.
Chromatic number
The chromatic number χ(G) of a graph G is the number of colors used in the
proper vertex coloring of G.
Chromatic Polynomial
f (G, λ) is the chromatic polynomial of a graph G on n vertices equal to the
number of different ways of properly coloring the graph using at most λ colors.
Theorem
For Path or Trees: A graph G is a tree or a Path on n - vertices if and only if its
chromatic polynomial is
f (G, λ) = λ(λ)n−1 , λ ≥ 2.
Theorem
For an empty graph G on n vertices then
f (G, λ) = λn .
Theorem
For a complete graph Kn on n vertices then
Theorem
For a disconnected graph G with n components say G1 , G2 , . . . , Gn then
f (G, λ) = f (G1 , λ)f (G2 , λ), . . . , f (Gn , λ).
Decomposition Theorem
Let e be any edge in G, where u and v are end vertices of G. Let Ge be a graph
′
obtained by deleting an edge e from G. Let Ge be a simple graph obtained from G
by fusing the vertices u and v together and replacing sets of parallel edges with
single edges. ′
f (G, λ) = f (Ge , λ) − f (Ge , λ)
Problem 1
Find the chromatic number and chromatic polynomial of the given graph.
Solution:
′
f (G, λ) = f (Ge , λ) − f (Ge , λ)
h ′
i
= f (Ge , λ) − f (Ge1 , λ) − f (Ge1 , λ)
h i
= (λ(λ − 1)4 ) − (λ(λ − 1)3 ) − (λ(λ − 1)(λ − 2))
= λ5 − 5λ4 + 10λ3 − 10λ2 + 4λ
Problem 2
Find the chromatic number and chromatic polynomial of the given graph.
′
f (G, λ) = f (Ge , λ) − f (Ge , λ)
= f (H1 , λ) − f (H2 , λ)
= f (H3 , λ) − f (H4 , λ) − f (H5 , λ) − f (H6 , λ)
h i
= λ(λ − 1)4 − λ(λ − 1)3
h i
− λ2 (λ − 1)(λ − 2) − λ(λ − 1)(λ − 2)
Matching
A matching graph is a subgraph of a graph where there are no edges adjacent to
each other. It is also termed as there should be any vertex in common between
any pair of edges. A matching in G is a set of independent edges.
Maximal Matching
A maximal matching is a matching to which no edge in the graph can be added.
Maximum Matching
A matching |M| of G is maximum if G has no matching M0 with |M0 | > |M1 |. It
can be also determined as the maximal matching with maximum number of edges.
Perfect Matching
A matching M is said to be perfect matching if every vertex of G is M -saturated.
Remark
The number of edges in the maximum matching of G is called its Matching
number M(G).
Theorem
Let G be a k - regular bipartite graph with k > 0. Then G has a perfect matching.
Result
If a graph G has a perfect matching, then the number of vertices is even.
Converse does not hold
Note: A maximum matching of graph need not be perfect.
List two different maximum matching and perfect matching of the graph given
below:
List two different maximum matching and perfect matching of the graph given
below:
Solution: M1 (G) = {12, 34, 56, 78}, M2 (G) = {15, 26, 37, 48}
The listed matching are both maximum and perfect since every edge inside the
matching is incident with every vertex. The matching number M(G) is 4.
A covering in a graph is a subgraph which contains either all the vertices or all
the edges corresponding to some other graph.
Find the vertex and edge covering numbers for the graph given below:
Edge Cover: EC1 (G) = {12, 34, 56, 78}, EC2 (G) = {12, 56, 34, 67, 78}.
Vertex Cover: VC1 (G) = {1, 3, 6, 8}, VC2 (G) = {1, 2, 4, 5, 7}.
EC1 and VC1 is the minimum edge and vertex cover of the given graph and thus
′
β = 4 and β = 4.
Find the perfect matching, edge cover and vertex cover of the graph given below:
Edge Cover: EC1 (G) = {16, 34, 25}, EC2 (G) = {15, 26, 34}
Vertex Cover: VC (G) = {1, 2, 3, 4}.
Thank You!!