Unit 3 Graph Theory Updated
Unit 3 Graph Theory Updated
Unit 3 Graph Theory Updated
AY: 2024-25
1
INTRODUCTION TO GRAPH THEORY
In a hockey tournament there are 8 teams which are denoted by S,T,U,V,W,X,Y,Z. Let
the following games has been played.
S → X, Z T → W, X, Z
U → Y, Z V → W,Y
W →T, V, Y X → S, T
Y → U, V, W Z → S, T, U
2
Or one can draw in the following way:
3
The team are represented by dots. Two such dots are join by line
segment wherever the corresponding teams have played each other.
In the figure-1, dots have been joined by straight line while in the
figure-2, some of the line segment are straight but some are not since
we are simply interested in which games have been played.
The manner in which the pair of dots is joined is of no importance so
it does not matter whether the line segments are straight or not.
Many real world situations can be described by means of such type of
diagram which are called graph.
4
Graph:
A graph 𝐺 = 𝑉 𝐺 , 𝐸 𝐺 consist of two finite set 𝑉(𝐺) and 𝐸(𝐺),
where
• 𝑉 𝐺 is the vertex set of graph, often denoted by just 𝑉 which is non-empty set,
and elements are called vertices or nodes
• 𝐸(𝐺) is the edge set of the graph often denoted by 𝐸 which is possibly empty
set, and elements are called edges or arc such that 𝑒 in 𝐸 assigned with an
unordered or ordered pair of vertices (𝑢, 𝑣).
Order of a Graph:
The order of a graph is number of vertices.
It is denoted by |𝑉(𝐺)|.
Size of a Graph:
The size of a graph is number of edges.
It is denoted by |𝐸(𝐺)|.
5
For the above example,
V={S, T, U, V, W, X, Y, Z} Order=8
E={e1, e2, e3, e4, e5, e6, e7, e8, e9, e10} Size=10
e1 ↔ (S,Z)
e2 ↔ (S,X) ( UNORDERED PAIR )
e3 ↔ (T,Z)
e4 ↔ (T,X)
e5 ↔ (T,W)
e6 ↔ (U,Y)
e7 ↔ (Y,V)
e8 ↔ (V,W)
e9 ↔ (W,Y)
e10 ↔ ( U,Z) 6
Loop (Self loop):
An edge of graph which join a vertex to itself is said to be a loop.
In figure given below 𝑒 is the loop:
7
Example-1: Let G=(V, E), where V={a, b, c, d, e} and
E={e1, e2, e3,e4,e5, e6,e7,e8} and the ends of the edges are given by
e1 ↔ (a, b), e2 ↔ (b, c), e3 ↔ (c, c), e4 ↔ (c, d),
e5 ↔ (b, d), e6 ↔ (d, e), e7 ↔ (b, e), e8 ↔ (b, e).
Draw a diagram (or Graph).
Solution:
8
Example-2: Draw a diagram for each of the following graph
G(V, E), where V={a, b, c, d, e ,f} and
E={(a, d), (a, f) ,(b, c), (b ,f), (c, e)}.
Solution:
9
Isolated Vertex:
A vertex of a graph which is not end of any edge is said to be an isolated vertex.
Adjacent Vertices:
Two vertices of a graph which are joined by an edge are said to be adjacent
vertices or neighbours to each other.
Vertex Adjacent
Vertex
a b, c, e
b a
c a, e, d
d c ,e
e a, d, c
f (Isolated ----------
vertex)
10
Neighbour of vertex:
Let 𝑣 be a vertex of a graph 𝐺. If vertex 𝑣 is joined by an edge to a vertex 𝑢 of 𝐺,
then 𝑢 is said to be neighbour of vertex 𝑣.
In above graph 𝐺, neighbour of a vertex 𝑎 are 𝑏, 𝑐, 𝑒.
Adjacent Edges:
Two edges 𝑒1 and 𝑒2 of the graph 𝐺 which are incident with a common vertex is said
to be adjacent edges.
11
TYPES OF GRAPH
Simple Graph:
A Graph which neither contains loop nor parallel edges is known
as Simple Graph.
Multi Graph:
A Graph which contains multi edges(parallel) is known Multi
Graph.
12
Pseudo Graph:
A graph with loops and multi edges is called a Pseudo graph.
Null Graph:
There is no edges in graph is called Null Graph.
Trivial Graph:
A graph having one vertex and no edge is known as trivial graph.
Remark: Every Trivial graph is a null graph but every null graph need not to be trivial
graph.
13
Finite Graph and Infinite Graph:
A graph with finite numbers of vertices is called finite graph.
A graph which is not finite is known as infinite graph.
Note: A graph with finite number of vertices must contain finite
number of edges.
Directed Graph(Digraph):
A directed graph is a graph in which every edge have a direction
associated with them.
The notation 𝒆 → 𝒖, 𝒗 says 𝑒 is an directed edge with initial
vertex 𝑢 and end vertex 𝑣.
14
Mixed Graph:
A Graph is known as Mixed Graph if some edges are directed and
some edges are undirected.
15
Graph Terminology
Type Edges Multiple Edges Loop
Simple Graph Undirected No No
Simple directed Graph Directed No No
Multigraph Undirected Yes No
Directed multigraph Directed Yes Yes
Pseudo Graph Undirected Yes Yes
Mixed Graph Directed and Undirected Yes Yes
Weighted Graph:
A weighted graph is a graph 𝐺 in which each edge 𝑒 has been assign a real number 𝑤(𝑒).
Here 𝑤(𝑒) is said to be weight(or length) of edge 𝑒.
The weighted can represent various attributes, such as time, cost or distance.
Complete Graph:
A simple graph in which each pair of distinct vertices is joined by an edge is said to be
complete graph.
A complete graph with 𝑛 vertices is denoted by 𝑲𝒏 .
16
Complete graph with one, two, three, four, five, six vertices.
𝑛(𝑛−1)
Remark: The number of edges of a complete graph 𝐾𝑛 is .
2
Example: Find the number of edges in the graphs 𝑲𝟏𝟐 and 𝑲𝟏𝟓 .
𝑛(𝑛−1)
Solution: The number of edges of in 𝐾𝑛 is .
2
(12)(12−1)
For 𝐾12 , the number of edges in 𝐾12 is = 66.
2
(15)(15−1)
For 𝐾15 , the number of edges in 𝐾15 is = 105.
2
17
Bipartite Graph:
If vertex set 𝑉 of a graph 𝐺 can be divided into two non-empty disjoint
subset 𝑋 and 𝑌 (i.e. V = X ∪ 𝑌, 𝑋 ≠ 𝜙, 𝑌 ≠ 𝜙, 𝑋 ∩ 𝑌 = 𝜙) such that each
edge of 𝐺 has one end point in 𝑋 and one end point in 𝑌, then
𝐺 is said to be bipartite graph.
Note: From the definition, it is clear that bipartite graph does not have any
loop.
19
Degree of a vertex in undirected graph
Degree of Vertex:
Let 𝐺 be an undirected graph and 𝑣 be any vertex of 𝐺. The number of edges of 𝐺
connected with the vertex 𝑣 is called degree of a vertex 𝑣.
Loop is counted twice.
It is denoted by 𝑑(𝑣) or deg(𝑣) or 𝑑𝐺 (𝑣).
Solution:
Vertex(𝒗𝒊 ) Degree of vertex 𝒅(𝒗𝒊 ) Odd/Even degree
𝑣1 3 Odd
𝑣2 3 Odd
𝑣3 2 Even
𝑣4 6 Even
𝑣5 4 Even
21
Degree of a vertex in directed graph
Indegree of Vertex:
The in degree of a vertex 𝑣 in directed graph is the number edges
ending at it.
It is denoted by indeg(𝑣) or 𝑑+ (𝑣).
23
Solution:
24
Example: Find the in degree and out degree of the vertices
in the given graph.
Solution:
Vertex(𝒗𝒊 ) In degree Out degre Total degree Odd/Even
𝒅+ (𝒗𝒊 ) 𝒅− (𝒗) 𝒅(𝒗𝒊 ) vertex
𝑟 0 1 1 Odd
𝑢 1 1 2 Even
𝑣 2 1 3 Odd
𝑤 1 1 2 Even
25
Handshaking Theorem (First Theorem of Graph Theory):
If 𝐺 = (𝑉, 𝐸) be an undirected graph with 𝑒 edges, then
d(𝑣) = 2𝑒.
𝑣∈𝑉
(i.e. In any undirected graph, the sum of degrees of all the vertices is twice the
number of edges.)
(i.e. In any undirected graph, the sum of the in degree of the vertices equals the
sum of out degree of vertices which equals the number of edges in 𝐺.)
26
Example: Is there a simple undirected graph corresponding to the following degree
sequences (1, 1, 2, 3)?
Solution:
We know that any undirected graph has even number of vertices of odd degree. But here
in given graph total number of vertices having odd degree is 3. Hence there exists no
such graph corresponding to this given degree sequence.
Example: How many edges does an undirected graph have if it degree sequence is 4,
3, 3, 2, 2?
Solution: Using the Handshaking theorem, we know that
𝑑 𝑣 = 2𝑒 ,
𝑣∈𝑉
where 𝑑 𝑣 is degree of a vertex 𝑣 and 𝑒 is the total number of edges.
⇒ 4 + 4 + 3 + 3 + 2 + 2 = 2𝑒
⇒ 14 = 2𝑒
⇒𝑒=7
27
Example: Determine the number of edges in an undirected graph with 6
nodes(vertices), two of degree 4 and four of degree 2.
Solution:
Using the Handshaking theorem, we know that
𝑑 𝑣 = 2𝑒 ,
𝑣∈𝑉
where 𝑑 𝑣 is degree of a vertex 𝑣 and 𝑒 is the total number of edges.
⇒ 4 + 4 + (2 + 2 + 2 + 2) = 2𝑒
⇒ 16 = 2𝑒
⇒𝑒=8
Thus, the number of edges in a graph with 6 nodes(vertices), two of degree 4 and
four of degree 2 is 8.
28
Example: A non-directed graph 𝑮 has 8 edges. Find the number of vertices if
the degree of each vertex is 2.
Solution:
Suppose that 𝐺 has 𝑛 vertices say 𝑣1 , 𝑣2 , 𝑣3 , 𝑣4 , … , 𝑣𝑛 . Then 𝑑 𝑣𝑖 = 2 for each 𝑖.
⇒ 2 = 2(8)
𝑖=1
⇒ 2𝑛 = 16
⇒𝑛=8
Therefore the number of required vertices is 8.
29
Example: Suppose 𝑮 is non-directed graph with 𝟏𝟐 edges. If it has 𝟔 vertices each of degree 𝟑 and
rest have Equal degree less than 𝟑. Find the minimum and maximum number of vertices 𝑮 can
have.
Solution: Let 𝑣1 , 𝑣2 , ⋯ , 𝑣𝑛 be vertices having degree less than 3.
Using the Handshaking theorem, we know that
𝑑 𝑣 = 2𝑒
𝑣∈𝑉
where 𝑑 𝑣 is degree of vertex 𝑣 and 𝑒 is the total number of edges.
⇒ 𝑑(𝑣𝑖 ) = 6
𝑖=1
• If 𝑑 𝑣𝑖 = 2 for all 𝑖, then 2𝑛 = 6 ⇒ 𝑛 = 3. So total number of vertices = 6 + 3 = 9.
• If 𝑑 𝑣𝑖 = 1 for all 𝑖, then 𝑛 = 6. So total number of vertices 6 + 6 = 12.
Therefore 𝐺 can have 9 and 12 minimum and maximum number of vertices respectively.
30
Regular Graph: If all vertices are of same degree in a graph, then the graph is
said to be regular graph.
𝒓-Regular Graph: If every vertex has degree 𝑟, then graph is called regular
graph of degree 𝑟.
Remarks:
1. Every null graph is a regular graph of degree zero.
𝑛𝑟
2. If a graph has 𝑛 vertex and is regular of degree 𝑟, then it has edge.
2
3. All regular graphs need not to be complete but all complete graph are
regular.
31
Isomorphic Graph: Let 𝐺1 (𝑉1 , 𝐸1 ) and 𝐺2 (𝑉2 , 𝐸2 ) be two graph. These two
graphs are said to be isomorphic if there exist one-to-one correspondence
between their vertices as well as edges.
Remarks:
1) From definition, two isomorphic graphs must have equal number of vertices
with same degree.
Procedure:
1) Check no. of vertices and edges in both the graph are same or not.
2) Check the degree sequence of vertices.
3) Find one to one correspondence between vertex set and edge set of both
graph.
32
Example: Check whether the given graphs are isomorphic or not.
Solution:
The graphs 𝐺 and 𝐻 both have eight vertices and 10 edges.
They also both have 4 vertices of degree 2 and remaining 4 vertices of degree 3.
However, 𝐺 and 𝐻 are not isomorphic.
To see this,
• Note that 𝑑 𝑎 = 2. So 𝑎 must correspond to either 𝑡, 𝑢, 𝑥 or 𝑦 in 𝐻, as these are
the vertices of degree two in 𝐻.
• However, each of these four vertices in 𝐻 is adjacent to another vertex of degree
2 in 𝐻, which is not true for 𝑎 in 𝐺.
• So one to one correspondence between vertexes does not exist. Therefore the
graphs 𝐺 and 𝐻 are not isomorphic.
34
Example: Check whether the given graphs are isomorphic or not.
(H.W.)
35
Complement of a graph: If the edges that exist in simple graph-I are absent in another
simple graph-II, and if both graph-I and graph-II with same vertices are combined
together to form a complete graph, then graph-I and graph-II are called complements of
each other.
The Complement of graph of 𝐺 is denoted by 𝐺.
36
Remarks:
Let 𝐺 be a simple graph with 𝑛 vertices and 𝐺 be its complement.
• For each vertex 𝑣 in 𝐺, we have
𝑑𝐺 𝑣 + 𝑑𝐺 𝑣 = 𝑛 − 1.
• If 𝐺 has exactly one even vertex, then 𝐺 have 𝑛 − 1 odd vertices.
37
Example: Find the complement of the graph and also find
whether it is self complementary or not.
38
39
Matrix Representation of Graph
40
Adjacency Matrix for Undirected Graph:
Let 𝐺 be a graph with 𝑛 vertices listed as 𝑣1 , 𝑣2 ⋯ , 𝑣𝑛 . The adjacency matrix 𝐴(𝐺)
(or 𝐴𝐺 ) of 𝐺 with respect to this particular listing of vertices of 𝐺 is the 𝑛 × 𝑛
matrix
𝐴 𝐺 = 𝑎𝑖𝑗
𝑛×𝑛
where 𝑎𝑖𝑗 is the number of edges joining the vertex 𝑣𝑖 to 𝑣𝑗 .
REMARKS:
1. In 𝐴(𝐺), we have 𝑎𝑖𝑗 = 𝑎𝑗𝑖 for each 𝑖 and 𝑗 i.e., adjacency matrix for a graph is
symmetric.
2. If 𝐺 has no loops then all the entry of the main diagonal of 𝐴(𝐺) are zero.
3. For a simple graph, the entries of adjacency matrix are either zero or one.
41
Ex: Write the adjacency matrix for following graph:
R
Solution:
The required adjacency matrix is
42
Ex: Write the adjacency matrix for following graph:
R
Solution:
The required adjacency matrix is
43
Example: Determine the number of loops and multiple edges in a multi graph
G from its adjacency matrix:
1 1 3 0
1 2 1 3
A G
3 1 0 1
0 3 1 0
Solution:
Since adjacency matrix 𝐴 is a square matrix of order 4, graph 𝐺 has four vertices
𝑣1 , 𝑣2 , 𝑣3 , 𝑣4 .
The diagonal of 𝐴 is indicating the vertices having loops because these entries
indicate the number of edges originating and terminating at the same vertex.
Thus, there are three loop: one at 𝑣1 and two at 𝑣2 .
Multi edges are 6.
44
Incidence Matrix for Undirected Graph:
Let 𝑣1 , 𝑣2 , ⋯ , 𝑣𝑛 be the 𝑛 vertices of a graph 𝐺 and 𝑒1 , 𝑒2 ⋯ , 𝑒𝑚 be
the 𝑚 edges of 𝐺. Then the incidence matrix of 𝐺 w.r.t to this
particular listing of vertices and edges is 𝑛 × 𝑚 matrix (vertices ×
edges). The entries of a matrix can be derived by using
𝐼 𝐺 = 𝑚𝑖𝑗
0 if 𝑣𝑖 is not end point of 𝑒𝑗
where 𝑚𝑖𝑗 = .
1 if 𝑣𝑖 is end point of 𝑒𝑗
REMARKS:
1. The sum of the elements in the 𝑖𝑡ℎ - row of 𝐼(𝐺) gives the degree
of vertex 𝑣𝑖 . (𝑣𝑖 does not contain loop).
2. The sum of the elements in each column is 2.
45
Ex: Write the incidence matrix for following graph:
R
Solution:
The required incidence matrix is
46
Ex: Write the incidence matrix for following graph: R
Solution:
The required incidence matrix is
47
MATRIX REPRESENTATION OF DIRECTED GRAPH
48
Ex: Write the adjacency and incidence matrix for following graph:
R
Solution:
The required adjacency and incidence matrix are
49
Ex: Write the incidence matrix for following graph:
R
Solution:
The required incidence matrix is
50
Ex: Write the adjacency and incidence matrix for following graph: R
Solution:
The required adjacency and incidence matrix are
51
Remarks:
(1) The Adjacency matrix of an Undirected graph is always Symmetric
matrix.
(2) The Adjacency matrix of a directed graph may or may not be
Symmetric matrix.
52
Subgraph: Let 𝐺 = 𝑉 𝐺 , 𝐸 𝐺 and 𝐻 = 𝑉 𝐻 , 𝐸 𝐻 be graphs. Then
𝐻 is said to be subgraph of 𝐺 if 𝑉 𝐻 ⊂ 𝑉(𝐺) and 𝐸 𝐻 ⊂ 𝐸(𝐺).
𝐺 is said to be super graph of 𝐻.
If 𝐻 is subgraph of 𝐺 then it is denoted by 𝐻 ⊂ 𝐺.
53
REMARKS:
(1) Every graph is its own sub graph.
(2) Any simple graph with 𝑛 vertices is a sub graph of the complete
graph 𝐾𝑛 .
Spanning Subgraph:
A subgraph 𝐻 of graph 𝐺 is said to be a spanning subgraph of 𝐺 if
𝑉 𝐻 = 𝑉(𝐺) (i.e. 𝐻 contains all vertices of 𝐺).
54
Vertex Deleted Subgraph:
Definition 1:
Let 𝐺 = (𝑉, 𝐸) be a graph and 𝑉 has at least two elements. For any vertex 𝑣 of 𝐺,
𝐺 − 𝑣 denotes the sub graph of 𝐺 with vertex set 𝑉 ∖ {𝑣} and whose edges are all
those edges of 𝐺 which are not incident with vertex 𝑣. i.e., graph 𝐺 − 𝑣 is obtained
from graph 𝐺 by removing vertex 𝑣 and all the edges of 𝐺 connected to 𝑣. Graph
𝐺 − 𝑣 is said to be vertex deleted subgraph.
55
Definition 2:
Let 𝐺 = (𝑉, 𝐸) be the given graph and 𝑈 be a proper subset of 𝑉, then 𝐺 − 𝑈
denotes the sub graph of 𝐺 with vertex set 𝑉 ∖ 𝑈 and whose edges are all those of 𝐺
which are not incident with any vertex of 𝑈.
For example,
56
Edge deleted subgraph:
Definition 1:
Let 𝐺 = (𝑉, 𝐸) be the given graph and 𝑒 be the edge of 𝐺 then 𝐺 − 𝑒 denotes the
subgraph of 𝐺 having 𝑉 as its vertex set and 𝐸 − {𝑒} as it edge set.
i.e. 𝐺 − 𝑒 is obtained from 𝐺 by removing edge 𝑒 (but not the end point of 𝒆).
𝐺 − 𝑒 is said to be edge deleted sub graph of 𝐺.
57
58
Definition 2:
Let 𝐺 = (𝑉, 𝐸) be the given graph. 𝐹 be a subset of edge set 𝐸. 𝐺 − 𝐹 denoted the
sub graph of 𝐺 with vertex set 𝑉 and edge set 𝐸 ∖ 𝐹 i.e. 𝐺 − 𝐹 is obtained by
deleting all the edges in 𝐹 but not their end point. 𝐺 − 𝐹 is also said to be edge
deleted sub graph of 𝐺.
59
WALK:
A walk in a graph is a finite alternating sequence of vertices and edges beginning
and ending with vertices such that each edge is incident with vertices preceding and
following it.
60
Open walk:
A walk is said to be an open walk if the starting and ending vertices
are different.
Closed walk:
A walk is said to be a closed walk if the starting and ending vertices
are same.
TRAIL:
A trail is a walk in which no edges are repeated.
In this graph, the walk W=1a2d3e4g5 is a trail.
REMARK:
• Every trail is a walk but every walk is not a trail.
In this graph, 1a2d3c1a2 is a walk but not trail.
62
PATH:
A path is a walk in which no vertex is repeated.
REMARKS:
• A path with 𝑛 vertices is denoted by 𝑃𝑛 and has length is 𝑛 − 1.
• Every path is a walk but each walk is not a path.
• A loop can be included in walk but not in a path.
63
Cycle or Circuit:
A cycle in a graph is a non-empty trail in which the only repeated
vertices are first and last vertices.
K-CYCLE:
A cycle with 𝑘 edges are said to be 𝑘-cycle.
It is denoted by 𝐶𝑛 .
e.g. W=3c1a2d3 is a 3-cycle and its length is 3.
Remarks:
• If 𝑘 is odd then 𝑘-cycle is said to be an odd and
if 𝑘 is even then 𝑘-cycle is said to be even.
• A loop is just a 1-cycle.
64
Connectedness in Undirected Graph
Connected Vertex:
A vertex 𝑢 is said to be connected to vertex 𝑣 in a graph 𝐺 if there is a
path in 𝐺 from 𝑢 to 𝑣.
Note:
• An vertex 𝑢 is connected to itself by trivial path 𝑃 = 𝑢.
• If 𝑢 is connected to 𝑣 and 𝑣 is connected to 𝑤, then 𝑢 is connected
to 𝑤.
66
Connectedness in Directed Graph
We cannot use the same criteria to determine the connectivity of
a directed graph as that for an undirected graph.
67
Strongly Connected:
A directed graph is called strongly connected if for any pair of
vertices 𝑢 and 𝑣, there exist a path from 𝑢 to 𝑣 as well as 𝑣 to
𝑢.
68
Unilaterally connected: A directed graph is called unilaterally connected
if given any two vertices of the graph there exist a path from one vertex to
another although a reverse path does not necessarily exist.
REMARKS:
1. Every strongly connected graph is unilaterally connected but converse is
not true.
2. Every strongly connected graph is weakly connected but converse is not
true.
69
.
Remarks: Not all graph have cut vertices. For example, the complete
graph 𝐾𝑛 , 𝑛 ≥ 3 has no cut vertices.
70
.
Vertex Connectivity:
Let 𝐺 be a connected graph. The minimum number of vertices that must
be removed from 𝐺 leaves either a disconnected graph or complete
graph with one vertex is said to be vertex connectivity of 𝐺.
It is denoted by 𝜅 𝐺 .
71
REMARKS:
1. For 𝑛 ≥ 2, the deletion of any vertex from 𝐾𝑛 result in
𝐾𝑛−1 . So 𝜅 𝐺 = 𝑛 − 1.
3. 𝜅 𝐺 = 0 iff 𝐺 = 𝐾1 or 𝐺 is disconnected.
72
Cut Edge or Bridge or Isthmus:
A cut edge is an edge whose removal increases number of connected
components of given graph. (i.e., removal of an edge in a graph results
in two or more subgraphs.)
Remark: It is not necessary that all the graph have cut edge.
Edge connectivity:
Let 𝐺 be a connected graph. The minimum number of edges must be
removed from 𝐺 leaves either a disconnected graph or complete graph
with one vertex is said to be edge connectivity of 𝐺.
It is denoted by 𝜆(𝐺).
Remarks:
(1) If 𝐺 is disconnected graph then 𝜅 𝐺 = 0 and 𝜆 𝐺 = 0.
(2) If 𝐺 is any graph, then 𝜅 𝐺 ≤ 𝜆(𝐺).
73
Example : Find the cut vertices , cut edges, vertex
connectivity and edge connectivity in the following
graph:
75
Region of a planar graph: A region of a planar graph is
defined to be an area of the plane that is bounded by edges and is
not further divided into subareas.
Note: we also include the outside area of a graph as region.
Euler’s Formula:
If a connected planar graph 𝐺 has 𝑛 vertices, 𝑒 edges and 𝑟
number of regions, then 𝑛 − 𝑒 + 𝑟 = 2.
76
Examples:
77
Result-𝟏: If a planar graph has 𝑘 number of connected
components, then 𝑛 − 𝑒 + 𝑟 = 𝑘 + 1.
78
Example: A connected planar graph has 10 vertices each of
degree 3. Into how many regions does a representation of this
planar graph split the plane?
Solution:
Here 𝑛 = 10 and degree of each vertex is 3.
So using Handshaking theorem, the sum of degrees of all the
vertices will be 30 and hence number of edges in a graph is 15.
79
EULERIAN AND HAMILTONIAN GRAPH
80
Examples:
81
Exercise: Check that Euler circuits and paths exit or not if
yes then find. Also, state whether it is Euler graph or not.
82
Theorem-1: An undirected graph is an Eulerian graph if and only if all the
vertices are even.
Path : - A F B C G D E ;
Circuit :- A F B C G D E A
84
Exercise: Check that Hamiltonian circuits and paths exit or
not if yes then find.
85
Exercise: Check that Euler path, Euler circuit,
Hamiltonian path and Hamiltonian circuit exist or not.
86
MATCHING IN A GRAPH
Matching Graph: Let 𝐺 be a graph. A matching graph 𝑀 is a subgraph of a
graph 𝐺 where there are no edges adjacent to each other.
i.e. there should not be any common vertex between any two edges.
Remarks:
• As each vertex of 𝐺 is incident with at most one edge in matching graph 𝑀,
So the vertices of 𝑀 should have a degree of 1 or 0.
• Null graph as a sub graph of 𝐺 is always matching graph of 𝐺.
87
Solution:
88
Maximal Matching: A matching 𝑀 of graph 𝐺 is said to
maximal if no other edges of 𝐺 can be added to 𝑀.
90
Example: Find the matching number of following graph.
Solution:
91
Graph coloring
92
E
93
Remarks:
1) The chromatic number of 𝐾𝑛 is 𝑛 because each vertex is adjacent to
remaining 𝑛 − 1 vertices.
2) The chromatic number of Null graph with 𝑛 vertices is 1.
3) The chromatic number of trivial graph is 1.
94
The chromatic index is 4.
96
Here the applications of graph theory in various branches of science are mention
below.
Graph Node or Vertices Edges or Arcs
Communication Telephone, Computer Fibber Optic Cable
Internet Class C Network Connection
Circuit Gate, Register, Processor Wire
Transportation Street Intersection, Highway, Airway Route
Airport
Social Relation Person Friendship
100