SLM - Maths-Graph Theory PDF
SLM - Maths-Graph Theory PDF
VI SEMESTER
ELECTIVE COURSE
B.Sc. MATHEMATICS
(2019 Admission onwards)
CBCSS
UNIVERSITY OF CALICUT
School of Distance Education,
Calicut University P.O.
Malappuram - 673 635, Kerala.
19573
UNIVERSITY OF CALICUT
School of Distance Education
Study Material
VI Semester
Elective Course (MTS6 B14(E01))
B.Sc. MATHEMATICS
GRAPH THEORY
Prepared by:
Sreehari. T,
Asst. Professor in Mathematics,
School of Distance Education,
University of Calicut.
Srutinized by:
Dr. Bijumon. R,
Associate. Professor & Hod, Dept. of Mathematics,
Mahathmagandhi College, Iritty.
DISCLAIMER
“The author(s) shall be solely responsible for the
content and views expressed in this book”
Contents
1 An Introduction to Graphs 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . 1
1.2 Graph as Models . . . . . . . . . . . . . . . . . . 3
1.3 More definitions . . . . . . . . . . . . . . . . . . . 5
1.4 Vertex degrees . . . . . . . . . . . . . . . . . . . . 8
1.5 Subgraphs . . . . . . . . . . . . . . . . . . . . . . 10
1.6 Paths and Cycles . . . . . . . . . . . . . . . . . . 14
1.7 Matrix representation of a graph . . . . . . . . . . 20
An Introduction to Graphs
1.1 Introduction
Graph theory is a branch of mathematics which deals the problems,
with the help of diagrams. There are may applications of graph
theory to a wide variety of subjects which include operations re-
search, physics, chemistry, computer science and other branches of
science. In this chapter we introduce some basic concepts of graph
theory and provide variety of examples. We also obtain some ele-
mentary results.
1
empty set of elements called edges, such that each edge e in E is
assigned an unordered pair of vertices (u, v) called the end vertices
of e.
2
e1 ↔ (v1 , v2 ), e2 ↔ (v2 , v3 ), e3 ↔ (v2 , v4 ),
e4 ↔ (v2 , v5 ), e5 ↔ (v2 , v5 ), e6 ↔ (v3 , v3 )
3
will disconnect the graph (network), but the graph will become dis-
connected if we remove the two lines represented by the edges t4
and t5 , for example. When it comes to poles, the network is more
vulnerable since there is a single vertex, vertex d, whose removal
disconnects the graph.
We may also want to find a smallest possible set of edges needed
to connect the six vertices. There are several examples of such
minimal sets. One is
{t1 , t3 , t5 , t6 , t7 } .
4
The answer is no. The reason can be found by considering peo-
ple A, B, and D. These three people as a set are collectively qual-
ified for only two jobs, c and d, hence there is no feasible matching
possible for these three people, much less all five people.
For example, the edges e4 and e5 of the graph of Figure 1.2 are
parallel.
5
Figure 1.5: Simple graph
6
Figure 1.6: Isomorphic graphs with 5 vertices
7
1.4 Vertex degrees
Definition 1.4.1. An edge e of a graph G is said to be incident with
the vertex v if v is an end vertex of e. In this case we also say that
v is incident with e. Two edges e and f which are incident with a
common vertex v are said to be adjacent.
Let v be a vertex of the graph G. The degree d(v) (or dG (v) if
we want to emphasize G ) of v is the number of edges of G incident
with v, counting each loop twice, i.e., it is the number of times v is
an end vertex of an edge.
8
d (v3 ) = 3, d (v4 ) = 3, d (v5 ) = 1 and note that in this example
2m = n
P
= v∈V dG (v) (1.1)
P P
= v∈V1 dG (v) + v∈V2 dG (v)
P P
Both 2m and v∈V2 dG (v) are even, which forces v∈V1 dG (v) to
be even.
9
1.5 Subgraphs
Definition 1.5.1. Let H be a graph with vertex set V (H) and edge
set E(H) and, similarly, let G be a graph with vertex set V (G)
and edge set E(G). Then we say that H is a subgraph of G if
V (H) ⊆ V (G) and E(H) ⊆ E(G). In such a case, we also say
that G is a supergraph of H.
From the definition we can get that ant simple graph with n
vertices is a proper subgraph of complete graph Kn .
In Figure 1.7, G1 is a proper subgraph of G2 . G1 is a spanning
subgraph of G3 , since both the graph have same vertex set.
10
denotes the subgraph of G with vertex set V −{v} and whose edges
are all those of G which are not incident with v, i.e., G − v is
obtained from G by removing v and all the edges of G which have
v as an end. G − v is referred to as a vertex deleted subgraph. If
G = (V, E) and e is an edge of G then G − e denotes the subgraph
of G having V as its vertex set and E−{e} as its edge set, i.e., G−e
is obtained from G by removing the edge e, (but not its endpoint(s)).
G − e is referred to as an edge deleted subgraph.
11
G − F are also referred to as vertex deleted subgraph and edge
deleted subgraph(respectively).
v2 v3 v2 v3
v1 v4 v1
G = (V, E) G[U ]
12
Example 1.5.4. Let G = K4 with vertex set V (G) = {v1 , v2 , v3 , v4 }
and G1 and G2 are subgraphs of G with vertex set V1 (G) = {v1 , v2 }
and V2 = {v3 , v4 } respectively whose picture is given below.
v2 v3 v2 v3
v1 v4 v1 v4
G = (V, E) G1 G2
Here the graph G1 and G2 are disjoint graphs. Since they have
no common vertex and also they are edge disjoint also.
13
v2 v3 v2 v3 v2 v3
v1 v4 v1 v4 v1 v4
G = (V, E) G1 G2
Then the union and intersection of graphs G1 ∪ G2 and G1 ∩ G2
is given below.
v2 v3 v2 v3
v1 v4 v1 v4
G1 ∪ G2 G1 ∩ G2
14
closed trail in which the vertices are all distinct. A cycle is odd or
even depending on whether its length is odd or even. The length of
a walk is the number of edges in it. A walk of length 0 consists of
just a single vertex.
Clearly any two paths with the same number of vertices are
isomorphic. A path with n vertices will sometimes be denoted by
Pn . Note that Pn has length n − 1.
W = ue1 v1 . . . vk−1 ek v
u = u0 , u1 , u2 , . . . , uk−1 , uk = v
15
If this is not the case, then we repeat the above deletion pro-
cedure until finally arriving at a u − v walk that is a path, as re-
quired.
16
v1 v4 v5 v6
v2 v3 v8 v7
Example 1.6.2. Let G = (V, E) be graph with the vertex set V (G) =
{v1 , v2 , v3 , v4 } is given in Fig 1.12.
17
v1 v2
v4 v3
18
V = X ∪ Y where
X = X0 ∪ X1 ∪ X2 ∪ . . . ∪ Xn and Y = Y1 ∪ Y2 ∪ . . . ∪ Yn
19
a shortest path from u to w0 and that part of Q from u to w0 is
a shortest path from u to w0 also. In other words, we have two
shortest paths from u to w0 . It follows that, since these two paths
have the same length, there exists an i such that w0 = ui = wi .
However this produces an odd cycle in G :
since if i is odd then the above parts ∗ and ∗∗ are both of even
length while if i is even then they are both of odd length, giving the
total length of C as odd +1+ odd or even +1+ even, in either case
odd. Since G has no odd cycles, the assumption that v and w are
adjacent is wrong.
Hence there are no edges in G joining vertices of X. A similar
argument shows that there are no edges of G joining vertices of Y.
Hence G is bipartite, as required.
20
v1 v2
v4 v3
0 1 0 1
1 0 1 0
0 1 0 1
1 0 1 0
B = A + A2 + · · · + An−1
21
off the main diagonal.
(k)
Proof. Let aij denote the (i, j) th entry of the matrix Ak for each
k = 1, . . . , n − 1 Then
(k)
However, by Theorem 1.5, aij denotes the number of distinct walks
of length k from vi to vj and so i.e., bij is the number of different
vi − vj walks of length less than n. Now suppose that G is con-
nected. Then for every pair of distinct indices i, j there is a path
from vi to vj . Since G has only n vertices this path goes through at
most n vertices and so it has length less than n, i.e., there is at least
1 path from vi to vj of length less than n. Hence bij 6= 0 for each
i, j with i 6= j, as required.
Conversely, suppose that for each distinct pair i, j we have bij 6=
0. Then, from above, there is at least 1 walk (of length less than
n) from vi to vj . In particular, vi is connected to vj . Thus G is a
connected graph, as required, since i and j were an arbitrary pair
of distinct vertices.
22
0 if vi is not an end of ej
mij = 1 if vi is an end of the non-loop ej
2 if vi is an end of the loop ej
v1 v2
v4 v3
1 1 0
1 0 0
0 0 1
0 1 1
23
Module 2
v1 v2
v4 v3
24
The graph G do not contain any cycles. Hence G is a acyclic
graph.
v1 v2
v4 v3
Proof. 1. Suppose that the result is false. Then there are two
different paths from u to v, say P = uu1 u2 . . . um v and P 0 =
uv1 v2 . . . vn v. Let w be the first vertex after u which belongs
to both P and P 0 . (The vertex w might well be v, but at least
there is such a vertex) Then w = ui = vj for some indices i
and j. (See Figure 2.3.)
25
u1 u3 u5
u u2 w v
v1 v2 v4
Theorem 2.1.2. Let T be a tree with at least two vertices and let
P = u0 u1 . . . un be a longest path in T (so that there is no path in
26
T of length greater than n ). Then both u0 and un have degree 1,
i.e., d (u0 ) = 1 = d (un )
Corollary 2.1.2.1. Any tree T with at least two vertices has more
than one vertex of degree 1.
27
Now suppose that the result is true for n = k where k is some
positive integer. We use this to show that the result is true for n =
k + 1. Let T be a tree with k + 1 vertices and let u be a vertex of
degree 1 in T . (Note that such a vertex exists by Corollary 2.3.) Let
e = uv denote the unique edge of T which has u as an end. Then if
x and y are vertices in T both different from u, any path P joining x
to y does not go through the vertex u since if it did it would involve
the edge e twice. Thus the subgraph T − u, obtained from T by
deleting the vertex u (and the edge e ), is connected. Moreover if C
is a cycle in T − u then C would be a cycle in T - impossible, since
T is a tree. Thus the subgraph T − u is also acyclic. Hence T − u
is a tree. However T − u has k vertices (since T has k + 1vertices)
and so, by our induction assumption, T − u has k − 1 edges. Since
T − u has exactly 1 edge less than T (the edge e ), it follows that T
has k edges, as required. In other words, assuming the result is true
for k, we have shown that it is true for k + 1. Thus, by the principle
of mathematical induction, it is true for all positive integers k.
28
2.2 Bridges
Theorem 2.2.1. Let e be an edge of the graph G and, as usual,
let G − e be the subgraph obtained by deleting e. Then ω(G) ≤
ω(G − e) ≤ ω(G) + 1.
v1 v1
v2 v3 v2 v3
v4 v5 v4 v5
29
Proof. Let e have end vertices u and v. If e is not a bridge then,
by the above remarks, it is either a loop or there is a path P =
uu1 . . . un v from u to v, different from the edge e. If it is a loop
then it forms a cycle (by itself). If there is such a path P then
C = uu1 . . . un vu, the concatenation of P with e, is a cycle in G.
This shows that if e is not a bridge then it is part of a cycle. This is
equivalent to saying that if e is not part of any cycle then e must be
a bridge.
Conversely, suppose that e is part of some cycle C = u0 u1 . . . um
in G. Let e = ui ui+1 . In the case where m = 1, C = u0 u1 and so C
is just the edge e and e is a loop. On the other hand, if m > 1 then
P = ui ui−1 . . . u0 um−1 . . . ui+1 is a path from u to v different from
e. (See Figure 2.5.) Thus, by the remarks preceding the proof, e is
not a bridge. This shows that if e is a bridge then it is not part of
any cycle in G, completing the proof.
Figure 2.5:
30
cycles, and so no edge of G belongs to a cycle. In other words, if e
is any edge of G then, by Theorem 2.2.2, it is a bridge, as required.
Conversely suppose that G is connected and that every edge e of
G is a bridge. Then G can have no cycles since any edge belonging
to a cycle is not a bridge, by Theorem 2.2.2. Hence G is acyclic and
so is a tree as required.
31
not a bridge, G − e is still connected. However G − e has n − 2
edges and n vertices, which is impossible by the above corollary.
This contradiction has arisen from our assumption that G is not
acyclic. Hence G is acyclic and so a tree as required.
32
edges. Thus by Theorem 2.2,4, T is a tree and since it has the same
vertex set as G it is a spanning tree of G.
Conversely, if G has a spanning subtree T , then given any two
vertices u and v of G then u and v are also vertices of the connected
subgraph T . Thus u and v are connected by a path in T and so by
a path in G. This shows that G is connected.
v1 v1
v2 v3 v2 v3
v4 v5 v4 v5
Example 2.3.2. Figure 2.7 illustrates a graph K4 and all it’s dif-
ferent spanning subgraphs.
33
Figure 2.7: K4 and it’s 16 different spanning graphs
34
v1 v1
v2 v3 v2 v3
v4 v5 v5
35
is connected and has at least two vertices, u 6= v. Thus, by our
assumption, one of these two vertices must be a cut vertex, say v.
Then G − v is disconnected and so there is a vertex w in G which
does not belong to the same component as u does in G − v. This
implies that every uw path in G contains the vertex v.
It follows from this that the shortest path in G from u to w con-
tains the shortest path from u to v and this contradiction completes
our proof.
v1
v2 v3
v4 v5
36
Example 2.4.3. Let G = (V, E) be a graph with vertex set V (G) =
{v1 , v2 , v3 , v4 , v5 } is given in figure 2.8.
v1
v2 v3
v4 v5
Figure 2.10: G = C5
37
Theorem 2.4.3. (Whitney, 1932) Let G be a simple graph with
at least three vertices. Then G is 2-connected if and only if for
each pair of distinct vertices u and v of G there are two internally
disjoint u − v paths in G.
38
Module 3
39
v1
v2 v3
v4 v5
40
Figure 3.2:
a cycle (since the internal vertices of this walk are distinct and also
different from vk as vk is the first vertex to be repeated).(See Figure
3.3.)vk+2
Figure 3.3:
41
Note: A hamiltonian cycle in G with initial vertex v contains
every other vertex of G precisely once and then ends back at v.
v1 v4 v5 v6
v2 v3 v8 v7
42
v1 v2
v4 v3
d(u) + d(v) ≥ n
43
join u1 and v1 by an edge to form the supergraph G1 . Then, if there
are two nonadjacent vertices u2 and v2 such that d (u2 )+d (v2 ) ≥ n
in G1 , join u2 and v2 by an edge to form the supergraph G2 . Con-
tinue in this way, recursively joining pairs of nonadjacent vertices
whose degree sum is at least n until no such pair remains. The final
supergraph thus obtained is called the closure of G and is denoted
by c(G).
44
Theorem 3.2.3. (Bondy and Chvatal, 1976) A simple graph G is
Hamiltonian if and only if its closure c(G) is Hamiltonian.
45
Figure 3.7: 5 planar graphs
46
by int J. We exclude from int J the points actually lying on J.
Similarly the part of the plane lying outside J is called the exterior
of J and denoted by ext J.
Theorem 3.3.1. The Jordan Curve Theorem states that if J is a
Jordan curve, if x is a point in int J and y is a point in ext J then
any (straight or curved) line joining x to y must meet J at some
point, i.e., must cross J.
Theorem 3.3.2. K5 , the complete graph on five vertices, is nonpla-
nar.
Theorem 3.3.3. The complete bipartite graph K3,3 is not planar
47
Figure 3.9:
Note:Any plane graph has exactly one exterior face. Any other
face is bounded by a closed walk in the graph and is called an inte-
rior face.
n−e+f =2
n−e+f =k+1
48
Proof. Let n (G1 ) , n (G2 ) denote the number of vertices and e (G1 ),
e (G2 ) the number of edges in G1 , G2 respectively. Then, since G1
and G2 are both isomorphic to G we have n (G1 ) = n (G2 ) and
e (G1 ) = e (G2 ) . Using Euler’s Formula we get
as required.
e ≤ 3n − 6
Proof. If G has only one vertex this vertex must have degree 0. If
G has only two vertices then both must have degree at most 1. Thus
we can suppose that n ≥ 3, i.e., that G has at least three vertices.
Now if the degree of every vertex of G is at least six we have
X
d(v) ≥ 6n
v∈V (G)
P
However, by Theorem 1.4.1, v∈V (G) d(v) = 2e. Thus 2e ≥ 6n
and so e ≥ 3n. This is impossible since, by the above theorem,
49
e ≤ 3n − 6. This contradiction shows that G must have at least one
vertex of degree less than 6, as required.
50