MCA Mathematical Foundation For Computer Application 10
MCA Mathematical Foundation For Computer Application 10
10 Graph Theory – 2
Names of Sub-Units
Introduction to Graph Theory, Planar Graphs, Euler’s Formula, Regular and Bipartite Graph, Graph
Colouring, Covering and Chromatic Numbers, Binary Trees and Decision Trees - Lemma.
Overview
This unit begins by discussing the concept of graph theory and planar graphs. Next, the unit discusses
the Euler’s formula, regular and bipartite graph and graph colouring. Further, the unit explains the
covering and chromatic numbers. Towards the end, the unit discusses the binary trees and decision
trees.
Learning Objectives
Learning Outcomes
https://web.math.princeton.edu/math_alive/5/Notes2.pdf
10.1 INTRODUCTION
Graph theory is a branch of discrete mathematics that deals with study of graphs. Graph is a set of
vertices (also called as nodes or points) which are connected by edges. Various sub units of graph
theory like binary trees and decision tree are used in real life to solve decision problems in the field of
operational research and operational management.
Graph 1 Graph 2
2
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Graph 3 Graph 4
The number of faces in graph 3 is 5 but it is not in planar form. When we draw it in a planar form, we get
graph 4 which has 4 faces. Therefore, the number of faces is 4.
A Planar graph can have more than one planar representation. For example, the complete graph K4 has
two possible planar representations as shown in Figure 2:
3
JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
Connected Graph
Disconnected Graph
K2 K3 K4
K5 K6 K7
4
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
According to Euler’s Formula, for ant planar graph which is connected also,
v–e+f=2
Corollary 1: If G is a planar graph with v vertices, e edges, k components and f faces then v – e + f = k + 1.
Proof: Let the k components of graph g be G1, G2… Gk. As G is a planar graph each of the components is
planar.
For Gi (vi, ei), fi denotes the number of faces where i = 1, 2, 3… k.
On Summing up, we get:
k k
fi ei vi 2
i1 i1
f + (k –1) = e – v + 2k
(Since an unbounded region is counted k – 1 in the sum)
v–e+f=k+1
Corollary 2: If G be a planar graph with v vertices and e edges and every face is an k-cycle, then
k v 2
e= ,k>2
k 2
Proof: Let f be the number of faces of G. Since every face is bounded by k edges (including the unbounded
region) and each edge lies on the boundary of exactly two faces we have
2e
f e v 2
k
2e k(e –v 2)
(k – 2)e k(v 2)
k (v 2)
e
k2
Corollary 3: If G be a simple planar graph with v vertices and e edges with f faces then e 3 f and
e 3v –6 where v 3 2
5
JGI JAIN DEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
e
3
2
e v 2
e 3v 6
Which says that when the graph is drawn without any edges crossing, then we have f = 7 faces.
Now, consider how many edges surround each face. Each face must be surrounded by at least 3 edges.
Let B be the total number of boundaries around all the faces in the graph. Thus, we have that 3f ≤ B. But
also B = 2(no. of edges) since each edge is used as a boundary exactly twice. Putting this together, we get
3f ≤ 2e.
But this is impossible, since we have already determined that f = 7 and e = 10, e = 10 and 21 ≤ 20. This is a
contradiction so in fact, K5 is not planar.
Corollary 5: K3,3 is not Planar.
Proof: Again, we proceed by contradiction. Suppose K3,3were planar. Then by Euler’s formula there will
be 5 faces, since v = 6, e = 9 and 6 − 9 + f = 2.
6
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Let B be the number of boundaries. Since each edge is used as a boundary twice, we have B = 2e. Also,
B≥4f since each face is surrounded by 4 or more boundaries. We know this is true because K3,3 is bipartite,
so does not contain any 3-edge cycles. Thus, 4f ≤ 2e. But this would say that 20 ≤ 18, which is clearly false.
Thus K3,3 is not planar.
degv nr
i1
i
7
JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
degv nr .
1 n
and the number of edges =
2 i1
2
i
A B A B
D C C D
8
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Set V1 = { A , C}
Set V2 = { B , D }
K2,3K3,3
9
JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
Graph colouring of a simple graph is the assigning colour to each vertex of the graph so that no two
adjacent vertices have the same colour.
A graph can be coloured by assigning different colours to each of its vertices. However, number of coleus
used to colour the vertices is less than the number of vertices in a graph. A graph with colours such that
no two adjacent vertices have the same colour is called properly coloured graph as shown in Figure 7:
A Red
Green B C Blue
Red D E Green
F
Blue
10
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
A Red
Green B C Blue
Red D E Green
F
Blue
11
JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
12
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
3 10
1 6 14
4 7 13
13
JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
A tree in which every node has 2 branches except external nod is called a full binary tree. Full binary
trees are also called as proper or plane binary trees.
A tree in which all interior nodes have two branches and all nodes with 0 branches are at the same level
is called a perfect binary tree as shown in Figure 10:
14
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
Decision trees are commonly used in field of operations research and operations management.
It can be paralleled by probability model to take decisions for which we have incomplete knowledge.
Decision tree are also used to calculate Conditional probability.
Decision utility tools such as decision trees are taught in schools of business, health economics and
public health. The components of a decision tree are shown in Figure 11:
For example, Weather information of 10 days is given. Using decision tree we have to decide whether we
can play badminton or not? Figure 12 depicts weather information of 10 days:
15
JGI JAINDEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
In the below diagram the tree will first ask what is the weather? Is it sunny, cloudy or rainy? If yes then
it will go to the next feature which is humidity and wind. It will again check if there is a strong wind or
weak, if it’s a weak wind and its rainy then the person may go and play as shown in Figure 13:
Weather
No Yes No Yes
Graph theory is a branch of discrete mathematics that deals with study of graphs.
A connected graph that can be drawn without intersection of any edges except at end point is called
as planar graph.
A graph is connected if it is in one piece, i.e., if there is a path between each pair of vertices and
otherwise it is a disconnected graph.
A complete graph is a graph in which each vertex is connected by the other by exactly one edge.
The relationship of a number of vertices, v, the number of edges, e and the number of faces f is
known as Euler’s Formula.
A graph is a regular if all of its vertices have same degree.
Bipartite graph is a graph whose set of vertices can be split in to two subsets.
A closed walk in which all the edges are different is called as closed trail.
A closed walk in which all the edges are different and all the intermediate vertices are different is
called as cycle.
Graph colouring of a simple graph is the assigning colour to each vertex of the graph so that no two
adjacent vertices have the same colour.
The least number of colours required for proper colouring of a graph G is called as chromatic
number of graph G.
A graph covering of graph G is a sub-graph of G that comprises all of the vertices or all of the edges
that correspond to another graph.
Binary tree is a tree in which each vertex can have maximum two branches.
A decision tree is a tree or graph without cycle very specific that enables us to make a decision about
some kind of problems.
16
UNIT 10: Graph Theory – 2 JGI JAIN
DEEMED-TO-BE UNI VE RSI TY
10.9 GLOSSARY
Graph theory: It is a branch of discrete mathematics that deals with study of graphs
Connected graph: It can be drawn without intersection of any edges except at end point is called as
planar graph
Connected graph: It is graph connected if it is in one piece, i.e., if there is a path between each pair
of vertices
Complete graph: It is a graph in which each vertex is connected by the other by exactly one edge
Euler’s formula: It is the relationship of a number of vertices, v, the number of edges, e and the
number of faces f
Regular graph: It is a graph of all of its vertices has same degree
Bi-partite graph: It is a graph whose set of vertices can be split in to two subsets
Closed trail: It is a close walk in which all the edges are different is called as closed trail
Cycle: It is a closed walk in which all the edges are different and all the intermediate vertices are
different is called as cycle
Graph colouring: It is used to assigning colour to each vertex of the graph so that no two adjacent
vertices have the same colour
Chromatic number: It is the least number of colours required for proper colouring of a graph G is
called as Chromatic number of graph G
Graph covering: A graph of G is a sub-graph of G that comprises all of the vertices or all of the edges
that correspond to another graph
Binary tree: It is a tree in which each vertex can have maximum 2 branches
Decision tree: It is a tree or graph without cycle very specific that enables us to make a decision
about some kind of problems
17
JGI JAINDEEMED-TO-BE UNI VE RSI TY
Mathematical Foundation for Computer Application
2. A Connected graph that can be drawn without intersection of any edges except at end point is called
as Planar Graph. Refer to Section Planare Graph
3. A graph is a regular if all of its vertices have same degree.
Bipartite graph is a graph whose set of vertices can be split in to two subsets. Refer to Section Regular
and Bipartite Graph
4. Graph colouring of a simple graph is the assigning colour to each vertex of the graph so that no two
adjacent vertices have the same colour. Refer to Section Graph Colouring
5. A decision tree is a tree or graph without cycle very specific that enables us to make a decision about
some kind of problems. Refer to Section Binary Tree and Decision Tree
https://en.wikipedia.org/wiki/Planar_graph#:~:text = In%20graph%20theory%2C%20a%20
planar%20graph%20is%20a,plane%20graph%20or%20planar%20embedding%20of%20the%20
graph.
https://mathworld.wolfram.com/ChromaticNumber.html
Discuss with your friends and classmates the concept of graph theory, planar graph and graph
colouring. Also, discuss the binary and decision tree.
18