Professional Documents
Culture Documents
Unit 3 - Session 2
Unit 3 - Session 2
Discrete Mathematics
C. P. S. Pathirana.
Senior Lecturer
Department of Mathematics & Philosophy of
Engineering.
The Open University of Sri Lanka.
The Open Univrsity of Sri Lanka 1
Unit 3 - Session 2
Degree and Parity of a vertex and Connectedness
• Introduction
Definition 9.1
𝑣4
𝑣1 𝑣2 𝑣3
deg(𝑣𝐼 ) = 2𝑚
𝑖=0
𝑣2 𝑣4
𝑣1 𝑣5
𝑣3
Number of edges 𝑚 = 6.
𝑛
NO !
𝑛
deg(𝑣𝐼 ) = 1 + 2 + 3 + 4 + 5
𝑖=0
= 15
15
So the graph should have edges, which is impossible.
2
Proof
Let 𝐺 be a graph (or multi-graph) with 𝑛 vertices.
𝑉 𝐺 = {𝑣1 , ⋯ , 𝑣𝑛 }
Then take,
• 𝐴 – set of all even vertices.
• 𝐵 – set of all odd vertices.
The Open Univrsity of Sri Lanka 9
Then obviously,
Observe that,
Definition 2.2
𝐾1 𝐾2
𝐾3
𝐾4 𝐾5
The Open Univrsity of Sri Lanka 12
Theorem 2.3
𝑛 𝑛−1
For each 𝑛 ∈ ℕ, 𝐾𝑛 contains edges.
2
Proof
σ𝑛𝑖=0 deg(𝑣𝐼 ) = 2𝑚
𝑛 𝑛 − 1 = 2𝑚
𝑛 𝑛−1
𝑚=
2
𝑛 𝑛−1
So, 𝐾𝑛 contains number of edges.
2
5 5−1
Number of edges =
2
5×4
=
2
= 10.
Definition 2.3
𝑣3
𝑣1
𝑣4
𝑣2
𝑣5
Take two distinct sets 𝑉1 and 𝑉2 as, 𝑉1 = {𝑣1 , 𝑣2 } and
𝑉2 = {𝑉3 , 𝑉4 , 𝑉5 }.
Every edge in the graph connects the two set and no edge
connects with vertices in the same set.
This is a bipartite graph. The Open Univrsity of Sri Lanka 17
Definition 2.4
𝐾𝑚,𝑛
𝐾2,2 𝐾2,3
𝐾1,2
Theorem 2.4
For each 𝑚, 𝑛 ∈ ℕ, 𝐾𝑚,𝑛 contains 𝑚𝑛 edges
Example
𝑢3
𝑢1
𝑢2
Definition 2.6
𝑢3 𝑢4 𝑢3 𝑢4
𝐺 𝐺𝑐
𝑢3 𝑢2
𝑢2
𝑢1
𝑢1 ⟹ 𝑢3
𝑢5 𝑢4
𝑢5 𝑢4
𝐺 The Open Univrsity of Sri Lanka
𝐺𝑐
22
9.2.5 Sub Graphs
Definition 2.7
𝑣1 𝑣5
𝑣3
𝐺
𝑣4 𝑣2 𝑣4
𝑣2
𝑣1 𝑣1 𝑣5
𝑣3 𝑣3
𝐺1 𝐺2
Definition 2.8
𝑒5 𝑒7 𝑒3
𝑒6
𝑣4 𝑒4 𝑣3
𝑒1 𝑒2 𝑒7
• 𝑣1 → 𝑣2 → 𝑣1 → 𝑣3 is a trial of length 3.
𝑒1 𝑒3 𝑒7 𝑒1
• 𝑣1 → 𝑣2 → 𝑣3 → 𝑣1 → 𝑣2 is not a trial since 𝑒1 is repeated.
𝑒5 𝑒7 𝑒3
𝑒6
𝑣4 𝑒4 𝑣3
𝑒1 𝑒2 𝑒7
A walk of length 3 ∶ 𝑣1 → 𝑣2 → 𝑣1 → 𝑣3
𝑒1 𝑒7 𝑒7 𝑒1
A walk of length 4 ∶ 𝑣1 → 𝑣2 → 𝑣3 → 𝑣1 → 𝑣2
𝑒1 𝑒2 𝑒7 𝑒4 𝑒6
A walk of length 5 ∶ 𝑣1 → 𝑣2 → 𝑣1 → 𝑣3 → 𝑣4 → 𝑣4
The Open Univrsity of Sri Lanka 28
Definition 2.10
𝑒5 𝑒7 𝑒3
𝑒6
𝑣4 𝑒4 𝑣3
𝑒1 𝑒2
𝑣1 → 𝑣2 → 𝑣1 is a circuit of length 2.
𝑒5 𝑒7 𝑒3
𝑒6
𝑣4 𝑒4 𝑣3
𝑒1 𝑒3 𝑒4
• 𝑣1 → 𝑣2 → 𝑣3 → 𝑣4 is a path of length 3.
𝑒1 𝑒2 𝑒7
• 𝑣1 → 𝑣2 → 𝑣1 → 𝑣3 is a trial but not a path.
The Open Univrsity of Sri Lanka 32
Definition 2.12
𝑒5 𝑒7 𝑒3
𝑒6
𝑣4 𝑒4 𝑣3
𝑒1 𝑒3 𝑒4 𝑒5
𝑣1 → 𝑣2 → 𝑣3 → 𝑣4 → 𝑣1 is a circuit of length 4.
Definition 2.13
𝑣3 𝑣4
𝑣2 𝑣6
Connected graph
𝑢2 𝑢4
𝑢1 𝑢3
Disconnected graph
The Open Univrsity of Sri Lanka 36
Theorem 2.4
𝑢1 𝑢3
Proof
Proof is obvious.
Since the graph has 𝑛 vertices, the maximum number of
edges between two vertices is 𝑛 − 1.
0 1 1 0 1 1 2 1 1
Then, 𝐴2 = 1 0 1 ⋅ 1 0 1 = 1 2 1
1 1 0 1 1 0 1 1 2
2 1 1 0 1 1 2 3 3
𝐴3 = 1 2 1 ⋅ 1 0 1 = 3 2 3
1 1 2 1 1 0 3 3 2
The Open Univrsity of Sri Lanka 41
Suppose 𝐴3 = (𝑐𝑖𝑗 ).
By the matrix, we have 𝑐12 = 3.
This says 𝐺 has 3 walks between 𝑣1 and 𝑣2 with the length 3.
𝑐12 = 3 𝐴3
𝑣2
𝑣1 𝑣3
3 walks are, • 𝑣1 , 𝑣3 , 𝑣1 , 𝑣2
• 𝑣1 , 𝑣2 , 𝑣1 , 𝑣2
• The𝑣1Open
, 𝑣2Univrsity
, 𝑣3 , 𝑣of2Sri Lanka 42
Theorem 2.7
0 1 1
𝐴= 1 0 1
1 1 0
2 1 1
𝐴2 = 1 2 1
1 1 2
2 2 2
Then 𝐴 + 𝐴2 = 2 2 2 ≠ 0
2 2 2