Graph Theory: Connectivity, Coloring, Matching
Graph Theory: Connectivity, Coloring, Matching
Arjun Suresh1
1 GATE Overflow
1 Graph
2 Graph Connectivity
3 Graph Coloring
4 Matching
1 Graph
2 Graph Connectivity
3 Graph Coloring
4 Matching
Graph
G = (V , E ) is a graph and consists of a set of objects called vertices and
edges such that each edge ek is associated with an unordered pair of
vertices (vi , vj )
Figure: Graph
Directed Graph
A graph G = (V , E ) is a directed graph if each edge ek is associated with
an ORDERED pair of vertices (vi , vj )
Simple Graph
A graph that has neither self loops nor parallel edges
Null graph
A graph without any edges
Degree
The number of edges incident on a vertex vi with self loops counted twice
is called the degree of vertex vi
Isolated vertex
A vertex having no incident edges (zero degree)
Pendant vertex
A vertex of degree one
Figure: Subgraph
Walk
An alternating sequence of vertices and edges beginning and ending with
vertices such that each edge is incident on the preceding and succeeding
vertices is called a walk. A vertex can repeat in a walk but not any edge.
Path
An open walk with no repeating vertices
Circuit
A closed walk in which no vertex appears more than once
Theorem
A given connected graph G is Euler if and only if all vertices of G are of
even degree. i.e.,
A given connected graph G is Euler if all its vertices are of even degree
If all vertices of a graph G are of even degree then G is an Euler graph
Figure: Euler Line : V1 →V2 →V3 →V6 →V5 →V2 →V4 →V5 →V3 →V1
Euler Graph
Hamiltonian Circuit
A closed walk that traverses every vertex exactly once except the starting
and ending vertex. Or a circuit including every vertex of a graph. A
Hamiltonian circuit in a graph of n vertices is of length n.
Hamiltonian Path
A path obtained by removing any edge from a Hamiltonian circuit. The
length of a Hamiltonian path in a graph of n vertices is n − 1
Theorem
In a complete graph of n vertices (n is odd and n ≥ 3) there are (n − 1)/2
edge-disjoint Hamiltonian circuits
Theorem
A sufficient (not necessary) condition for a simple graph G with n vertices
to have a Hamiltonian circuit is that the degree of every vertex of G be at
least n/2
1 Graph
2 Graph Connectivity
3 Graph Coloring
4 Matching
S = h5, 5, 5, 3, 2, 2, 1i
S = h5, 5, 4, 3, 2, 2, 1i
Subtract 1 from the next 5
Subtract 1 from the next 5
numbers after removing the leading
numbers after removing the leading
5
5
S 0 = h4, 4, 2, 1, 1, 1i
S 0 = h4, 3, 2, 1, 1, 1i
(already in non decreasing order)
(already in non decreasing order)
Remove 4
Remove 4
S 0 = h3, 1, 0, 0, 1i
S 0 = h2, 1, 0, 0, 1i
Rearrange in non decreasing order
Rearrange in non decreasing order
S 0 = h3, 1, 1, 0, 0i
S 0 = h2, 1, 1, 0, 0i
Remove 3
Remove 2
S 0 = h0, 0, −1, 0i
S 0 = h0, 0, 0, 0i
Negative number came, hence, not
Hence, graphic.
graphic.
Arjun, Suresh (GO) Graph Theory GATE 2019 26 / 55
Connected Component
Cut-Set
Every connected subgraph of a disconnected graph G is a component of G
Figure: Tree
Spanning Tree
A tree T is said to be a spanning tree of a connected graph G if T is a
subgraph of G and contains all vertices of G
Spanning Tree
With respect to any spanning tree, a connected graph of n vertices and e
edges has n − 1 tree branches and e − n + 1 chords
Central Tree
A spanning tree with the minimal distance with any other spanning tree is
called a central tree
i.e., for a central tree Tc ,
Cut-Set
A cut-set is a set of edges in a connected graph G whose removal from G
leaves the graph disconnected, provided removal of no proper subset of
these edges disconnects G
Figure: Cut set :(By removal of e3 , e4 , e5 edges this graph will be disconnected)
Theorem 1
Every cut-set in a connected graph G must contain at least one branch
from EVERY spanning tree of G
Theorem 3
Every cut-set has an even number of edges in common with every circuit
Edge Connectivity
The number of edges in the smallest cut-set
Vertex Connectivity
The minimum number of vertices whose removal leaves the remaining
graph disconnected
Separable Graph
A connected graph is said to be separable if its vertex connectivity is one
1 Graph
2 Graph Connectivity
3 Graph Coloring
4 Matching
Bipartite Graph
A graph G is called a bipartite graph if the vertex set of G can be
decomposed into two disjoint subsets V1 and V2 such that every edge in G
joins a vertex in V1 with a vertex in V2 .
Independent Set
A set of vertices in a graph is said to be independent set if no two vertices
in the set are adjacent
1 Graph
2 Graph Connectivity
3 Graph Coloring
4 Matching
Matching
A matching in a graph is a subset of its edges such that no two edges are
adjacent
Complete Matching
A matching in a bipartite graph with vertex partition V1 and V2 is a
complete matching of vertices in V1 into those in V2 if there is an edge
incident on each vertex of V1
Theorem
A complete matching of V1 into V2 in a bipartite graph exists if and only if
every subset of r vertices in V1 is collectively adjacent to r or more
vertices in V2 for all possible values of r .
Complete Matching
A matching in a bipartite graph with vertex partition V1 and V2 is a
complete matching of vertices in V1 into those in V2 if there is an edge
incident on each vertex of V1
Theorem
A complete matching of V1 into V2 in a bipartite graph exists if and only if
every subset of r vertices in V1 is collectively adjacent to r or more
vertices in V2 for all possible values of r
Theorem
In a bipartite graph a complete matching of V1 into V2 exists if there is a
positive integer m such that