VI Sem. B.SC Maths - Elective Course - Graph Theory PDF
VI Sem. B.SC Maths - Elective Course - Graph Theory PDF
STUDY MATERIAL
B.SC. MATHEMATICS
VI SEMESTER
ELECTIVE COURSE
(2011 A DMISSION)
UNIVERSITY OF CALICUT
SCHOOL OF DISTANCE EDUCATION
THENJIPALAM, CALICUT UNIVERSITY P.O., MALAPPURAM, KERALA - 673 635
361
UNIVERSITY OF CALICUT
SCHOOL OF DISTANCE EDUCATION
Study Material
B.Sc.Mathematics
VI SEMESTER
ELECTIVE COURSE
GRAPH THEORY
Dr. Anilkumar V.
Reader,
Department of Mathematics,
University of Calicut
1
1.26 Solved Problems . . . . . . . . . . . . . . . . . . . . . . . . . . 37
1.27 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4 Colourability 68
4.1 Chromatic Number and Chromatic Index . . . . . . . . . . . . . 68
4.2 The Five Colour Theorem . . . . . . . . . . . . . . . . . . . . . 73
4.3 Chromatic Polynomials . . . . . . . . . . . . . . . . . . . . . . . 74
4.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
4.5 Directed graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
4.6 Path and Connectedness . . . . . . . . . . . . . . . . . . . . . . 83
4.7 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
2
Module 1
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 research, 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 elementary results.
3
a
b c d
Example 1.3.1.
1. Let V = {a, b, c, d} and X = {{a, b}, {a, c}{a, d}}, G = (V, X) is a (4, 3)
graph. This graph can be represented by the diagram given in figure
1.1. In this graph the points a and b are adjacent whereas b and c are
nonadjacent.
2. Let V = {1, 2, 3, 4} and X = {{1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4}}.
Then G = (V, X) is a (4, 6) graph. This graph is represented by the
diagram given in figure 1.2 Although the lines {1, 2} and {2, 4} intersect
in the diagram, their intersection is not a point of the graph. Figure 1.3
is another diagram for the graph given in figure 1.2.
3. The (10, 15) graph given in figure 1.4 is called the Petersen graph.
Remark 1.3.1. The definition of a graph does not allow more than one line
joining two points. It also does not allow any line joining a point to itself.
Such a line joining a point to itself is called a loop.
4
4 3
1 2
2 3
a
2 e
b 5
d
c
3 4
5
Figure 1.5: A multiple graph
Definition 1.3.1. If more than one line joining two vertices are allowed, the
resulting object is called a multigraph. Line joining the same points are
called multi lines. If further loops are also allowed, the resulting object is
called Pseudo graph.
Definition 1.3.2. A Graph in which any two distinct points are adjacent is
called a complete graph. The complete graph with p points is denoted by
Kp . K3 is called a triangle. The graph given Fig. 1.3 is K4 and K5 is shown
in Fig.1.7
6
Figure 1.7: K5
Definition 1.3.3. A graph whose edge set is empty is called a null graph or
a totally disconnected graph.
Definition 1.3.4. A graph G is called labeled if its p points are distinguished
from one another by names such as v1 , v2 · · · vp .
The graphs given in Fig. 1.1 and Fig. 1.3 are labelled graphs and the graph
in Fig. 1.7 is an unlabelled graph.
Definition 1.3.5. A graph G is called a bigraph or bipartite graph if V
can be partitioned into two disjoint subsets V1 and V2 such that every line of
G joins a point of V1 to a point of V2 . (V1 , V2 )is called a bipartition of G. If
further G contains every line joining the points of V1 to the points of V2 then
G is called a complete bigraph. If V1 contains m points and V2 contains n
points then the complete bigraph G is denoted by Km,n . The graph given in
Fig. 1.1 is K1,3 . The graph given in Fig. 1.8 is K3,3 . K1,m is called a star for
m ≥ 1.
1.4 Exercise
1. Draw all graphs with 1, 2, 3 and 4 points.
1.5 Degrees
Definition 1.5.1. The degree of a point vi in a graph G is the number of
lines incident with vi .The degree of vi is denoted by dG (vi ) or deg vi or d(vi ).
7
Figure 1.8: bigraph
Theorem 1.5.1. The sum of the degrees of the points of a graph G is twice
P
the number of lines. That is, i degvi = 2q.
Proof. Every line of G is incident with two points. Hence every line contribute
P
2 to the sum of the degrees of the points. Hence i degvi = 2q.
Corollary 1.5.1. In any graph G the number of points of odd degree is even.
It all the points of G have the same degree r, then δ(G) = ∆(G) = r and this
case G is called a regular graph of degree r. A regular graph of degree 3 is
called a cubic graph. For example, the complete graph Kp is regular of degree
p − 1.
8
1.6 Solved Problems
Problem 1. Let G be a (p, q) graph all of whose points have degree k or k + 1.
If G has t > 0 points of degree k, show that t = p(k + 1) − 2q.
Solution
Since G has t points of degree k, the remaining p − t points have degree k + 1.
P
Hence v∈V d(v) = tk + (p − t)(k + 1).
∴ tk + (p − t)(k + 1) = 2q
∴ t = p(k + 1) − 2q.
Problem 2. Show that in any group of two or more people, there are always
two with exactly the same number of friends inside the group.
Solution
Let V (G) = {v1 , v2 , · · · , vp }. We have δ ≤ degvi ≤ ∆. for all i. Hence
p
X
pδ ≤ degvi ≤ p∆.
i=1
∴ pδ ≤ 2q ≤ p∆ (by theorem2.1)
2q
∴δ ≤ ≤∆
p
Solution
Since every line of G has one end in V1 and other end in V2 it follows that
9
P P
d(v) = v∈V2 d(v) = q. Also d(v) = k for all v ∈ V = V1 ∪ V2 . Hence
v∈V1
P P
v∈V1 d(v) = k|V 1 | and v∈V2 d(v) = k|V2 | so that k |V1 | = k|V2 |. Since k > 0,
we have |V1 | = |V2 |.
1.7 Exercise
1. Given an example of a regular graph of degree 0
6. Let G be a graph with at least two points show that G contains two
vertices of the same degree
7. A (p, q) graph has t points of degree m and all other points are of degree
n. Show that (m − n)t + pn = 2q.
1.8 Subgraphs
Definition 1.8.1. A graph H = (V1 , X1 ) is called subgraph of G = (V, X).
V1 ⊆ V and X1 ⊆ X. If H is a subgraph of G we say that G is a supergraph
of H. H is called a spanning subgraph of G if H is the maximal subgraph
of G with point set V1 . Thus, if H is an induced subgraph of G, two points are
adjacent in H they are adjacent in G. If V2 ⊆ V , then the induced subgraph
of G induced by V2 and is denoted by G[X]. If X2 ⊆ X, then the sub graph
of G with line set X2 and is denoted by G[X2 ]
Examples. Consider the petersen graph G given in Fig. 1.4. The graph
given in Fig.1.9 is a subgraph of G. The graph given in Fig.1.10 is an induced
subgraph of G. The graph given in Fig.1.10 is an induced subgraph of G. The
graph given in Fig1.11 is a spanning subgraph of G.
10
1
2 a 5
b e
c
b e
c d
2 a 5
b d
c e
3 4
11
u u
v1 v1
v v u v
v1
x1 X1
u0 v
G G-v1 G-x1 G+uv
Figure 1.12:
Clearly G+vi vj is the smallest super graph of G containing the line vi vj .We
listed these concepts in Fig1.12. The proof given in the following theorem is
typical of several proofs in theory.
Theorem 1.8.1.
h 2 i The maximum number of lines among all p point graph no
triangles is p4 . ([x] denotes the greatest integer not exceeding the the real
number x).
Proof. The result can be easily verified for p ≤ 4. For p > 4, we will prove by
induction separately for odd p and for every p.
Part 1. For odd p.
Suppose the result is true for all odd p ≤ 2n + 1. Now hlet iG be a (p, q) graph
2
with p = 2n + 3 and no triangles. Ifq = 0, then q ≤ p4 . Hence let q > 0.
Let u and v be a pair of adjacent points. The subgraph G′ = G − {u, v} has
12
2n + 1 points and no triangles. Hence induction hypothesis,
(2n + 1)2
2
′ 4n + 4n + 1
q(G ) ≤ =
4 4
1
= n2 + n + = n2 + n
4
3. Line uv
Hence
q ≤ (n2 + n) + (2n + 1) + 1 = n2 + 3n + 2
1
= (4n2 + 12n + 8)
4
4n2 + 12n + 9 1
= −
4 4
2
2
(2n + 3) p
= =
4 4
(2n)2
′
q(G ) ≤ = n2
4
13
(i) Lines of G′
1.9 Exercise
1. Show that Kp − v = Kp−1 for any point v of Kp .
6. Show that in a graph G every induced graph is complete iff every induced
graph with two points is complete.
1.10 Isomorphism
Definition 1.10.1. Two graphs G1 = (V1 , X1 ) and G2 = (V2 , X2 ) are said
to be isomorphic if there exists a bijection f : V1 → V2 such that u, v are
adjacent in G1 if and only if f (u), f (v) are adjacent in G2 . If G1 is isomorphic
to G2 , we write G1 ∼
= G2 . The map f is called an isomorphism from G1 to G2 .
Example 1.10.1. 1. The graph given in Fig. 2.2 and Fig. 2.3 are isomor-
phic.
14
v2
u1 u2 v1
u5
u4 u3 v4 v3
v5
Figure 1.13:
Figure 1.14:
3. The three graphs given in Fig.1.14 are isomorphic with each other.
Remark 1.10.1. Two isomorphic graphs have the same number of points
and the same number of lines. Also it follows from Theorem 1.10.1that two
isomorphic graphs have equal number of points with a given degree. However
these conditions are not sufficient to ensure that two graphs are isomorphic.
For example consider the two graphs given in figure 1.15. By theorem 1.10.1,
under any isomorphism w4 must correspond to v3 ; w1 , w5 , w6 must correspond
to v1 , v5 , v6 in some order. The remaining two points w2 , w3 are adjacent
whereas v2 , v4 are not adjacent. Hence there does not exist an isomorphism
15
w6 v6
w1 w2 w3 w4 v1 v2 v3 v v
4 5
w5
Figure 1.15:
Figure 1.16:
between these two graphs. However both graphs have exactly one vertex of
degree 3, three vertices of degree 1 and two vertices of degree 2.
Remark 1.10.2. Let Γ(G) denote the set of all automorphism of G. Clearly
the identity map i : V → V defined by i(v) = v is an automorphism of G
so that i ∈ Γ(G). Further if α and β are automorphisms of G then α.β and
α−1 are also automorphism of G. Hence Γ(G) is a group and is called the
automorphism group of G.
For example the graphs given in Fig.1.16 are self complementary graphs.
It has been conjectured by Ulam that the collection of vertex deleted sub-
graphs G − v determines G upto isomorphism.
Solved Problems
Problem 5. Prove that any self complementary graphs has 4n or 4n+1 points
16
Solution. Let G = (V (G), X(G)) be a self complementary graph with p
points.
Since G is self complementary, G is isomorphic to G.
∴ |X(G)| = |X(G)|. Also
!
p p(p−1)
|X(G)| + |X(G)| = = 2
2
p(p − 1)
∴ 2|X(G)| =
2
p(p − 1)
∴ |X(G)| = is an integer.
4
Hence f is an automorphism of G.
1.11 Exercise
1. Prove that any graph with p points is isomorphic to a subgraph of Kp .
3. Show that the two graphs given in Fig. 2.17 are not isomorphic.
17
4. Show that upto isomorphism there are exactly four graphs on three ver-
tices.
It is easy to see that the above theorem is not true for graphs with less
than 6 points and we have this as an exercise to the reader. Thus 6 is the
smallest positive integer such that any graph G on 6 points contains K3 or K3 .
This suggests the following general question. What is the least positive integer
r(m, n) such that for any graph G with r(m, n) points, G contains Km or Kn .
For example r(3, 3) = 6 . The numbers r(m, n) are called Ramsey numbers
after F. Ramsey who proved the existence of r(m, n). The determination of
the Ramsey numbers is difficult unsolved problem. Solved Problems
18
Problem 7. Prove that r(m, n) = r(n, m).
Solution Let r(m, n) = s. LetG be any graph on s points. Then G also has
s points. Since r(m, n) = s,G has either Km or Kn as an induced subgraph.
Hence G has Kn or Km as an induced subgraph. Thus an arbitrary graph
on s points contains Kn or Km as an induced subgraph. ∴ r(n, m) ≤ s. i.e,
r(n, m) ≤ r(m, n). Interchanging m and n we get r(m, n) ≤ r(n, m). Hence
r(m, n) = r(n, m).
Solution Let G be a graph on 2 points. Let V (G) = {u, v}. Then u and v
are either adjacent in G or adjacent in G. Hence G or G contains K2 . Thus
if G is any graph on two points, then G or G contains K2 and clearly 2 is the
least positive integer with this property. Hence r(2, 2) = 2.
1.13 Exercise
1. Prove, by suitable examples, that theorem 1.12.1 is not true graphs with
less than 6 points.
19
no independent set S ′ with |S ′ | > |S|. The number of vertices in a maximum
independent set is called independence number of G and is denoted α.
Example
Consider the graph given in Fig. 1.18 {v6 } is an independent set. {v1 , v3 } is a
maximum independent set. {v1 , v2 , v3 , v4 , v5 } is a covering and {v2 , v3 , v4 , v5 }
is a minimum covering.
Corollary 1.14.1. α + β = p
∴β+α≤p (1.1)
α+β ≥p (1.2)
20
by β ′ . A set of lines is called independent if no two of them are adjacent.
The number of lines in a maximum independent set of lines is called the edge
independence number and is denoted by α′ . Gallai has proved that for any
non-trivial graph, α′ + β ′ = p, though it is not true that the complement of an
independent set of lines is a line covering.
Result α′ + β ′ = p.
∴ |S ∪ M| ≥ β ′
∴ α′ + P − 2α′ ≥ β ′
∴ p ≥ α′ + β ′ (1.3)
By choosing one line from each star of G[T ], we get set of independent lines of
G. Hence
α′ ≥ (number of stars in G[T ])
Hence (1.5) gives p ≤ β ′ + α′ .
Therefore by ((1.3)), α′ + β ′ = p. This complete the proof.
21
1.15 Exercise
1. Find α, β, α′ and β ′ for the complete graph Kp .
22
called the line graph of G and is denoted by L(G). Thus the points of L(G)
are lines of G and two points in L(G) are adjacent iff the corresponding lines
are adjacent in G.
p
X di (di − 1)
Hence qL =
i=1
2
p p
1 X 2 1 X
= ( di ) − ( di )
2 i=1 2 i=1
p
1 X 2 1
= ( di ) − (2q)
2 i=1 2
p
1 X 2
= ( di ) − q
2 i=1
1.17 Exercise
Show that the line graphs of the two graphs given in Fig.1.20 are isomorphic.
The two graphs given in figure 2.20 constitute the only pair of non-isomorphic
connected graphs having isomorphic line graphs. In all other cases, L(G) ∼ =
L(G′ ) implies G ∼
= G′ as claimed in the following theorem.
23
Example K4 − x is a line graph as seen in Fig.1.19. The following theorem is
called Beineke’s forbidden subgraph characteristics of line graphs.
Theorem 1.17.2. (Beineke.) G is a line graph iff none of the nine graphs
of Fig. 2.20 is an induced subgraph of G.
V = V1 ∪ V2 and X = X1 ∪ X2
• The sum G1 + G2 as G1∪G2 together with all the lines joining points of
V1 to points of V2 .
1. G1 ∪ G2 is a (p1 + p2 , q1 + q2 ) graph.
2. G1 + G2 is a (p1 + p2 , q1 + q2 + p1 p2 ) graph.
3. G1 × G2 is a (p1 p2 , q1 p2 + q2 p1 ) graph.
Proof.
24
1. is obvious.
2.
1X
= [ deg(ui ) + deg(vj )]
2 i,j
p1 p2
1 XX
= (degui + degvj ) where ui ∈ V1 , vj ∈ V2
2 i=1 j=1
p1 p2
1X X
= (p2 degui + degvj )
2 i=1 j=1
p1
1X
= (p2 degui + 2q2 )
2 i=1
1
= (2p2 q1 + 2p1 q2 )
2
= p2 q1 + p1 q2
1.19 Exercise
1. Prove (4) of Theorem1.17.1.
25
3. What is Km + Kn ?
26
16. Any two isomorphic graphs have the same number of points and same
number of lines.
17. Any two graphs having the same number of points and same number of
lines are isomorphic.
Answers
1, 2, 4, 5, 6, 7, 9, 11, 12, 15, 16, 18 and 20 are true.
We say that the walks join v0 and vn and it is called a v0 -vn walk. v0 is
called the initial point and v1 is called the terminal point of the walk. The
above walk is also denoted by v0 , v1 , · · · , vn the lines of the walks being self
evident. n, the number of lines in the walk, is called the length of this walk.
A single point is considered as a walk of length 0. A walk is called a trail if
all its lines are distinct and is called a path if all its points are distinct.
27
Proof. We prove the result by induction on the length of the walk. Any walk
of length 0 or 1 is obviously a path. Now, assume the result for all walks of
length less than n. If u = u0 , u1, · · · , un = v be a u − v walk of length n. If all
the points of the walk are distinct it is already a path. If not, there exists i and
j such that 0 ≤ i < j ≤ n and ui = uj . Now u = u0 , · · · , ui , uj+1, · · · , un = v
is a u − v walk of length less than n which by induction hypothesis contains a
u − v path.
Solved Problem
28
(
1, if vi and vj are adjacent;
=
0, otherwise.
= aij .
p
(n−1)
X
n
A = aik akj (1.6)
k=1
29
set Vi . Clearly the subgraphs G1 , G2 , · · · , Gn are connected and are called the
Components of G.
Clearly a graph G is connected iff it has exactly one component. 1.24 gives
a disconnected graph with 5 components.
p−1
Theorem 1.21.1. A graph G with p points and δ ≥ 2
is connected.
Proof. Suppose G is not connected. Then G has more than one component.
Consider any component G1 = (V1 , X1 ) of G. Let v1 ∈ V1 . Since δ ≥ p−1
2
there
p−1
exist at least 2 points in G1 adjacent to v1 and hence V1 contains at least
p−1
2
+ 1 = p+12
points. Thus each component of G contains at least p+1
2
points
and G has at least two components. Hence number of points in G ≥ p + 1
which is a contradiction. Hence G is connected.
Definition 1.21.3. For any ( two points u, v of a graph we define the distance
the length of the shortest u − v path , if such a path exists;
between u and v by d(u, v) =
∞, otherwise.
If G is a connected Graph, d(u, v) is always a non-negative integer. In this
case d is actually a metric on the set of points V (See problem 2).
30
Theorem 1.21.4. A graph G with at least two points is bipartite iff all its
cycles are of even length.
Proof. Suppose G is a bipartite. Then V can be partitioned into two subsets
V1 and V2 such that every line joins a point of V1 to a point of V2 . Now con-
sider any cycle v0 , v1 , v2 , · · · , vn = v0 of length n. Suppose v0 ∈ V1 . Then
v2 , v4 , v6 · · · ∈ V1 and v1 , v3 , v5 · · · ∈ V2 .Further vn = v0 ∈ V1 and hence n
is even. Conversely,suppose all cycles in G are of even length. We may as-
sume without loss of generality that G is connected.(If not we consider the
components of G separately). Let v1 ∈ V . Define
31
Theorem 1.21.5. Let v be a point of a connected graph G. The following
statements are equivalent.
1. v is a cut-point of G.
2. There exists a partition of V − {v} into subsets U and W such that for
each u ∈ U and w ∈ W , the point v is on every u − w path.
3. There exists two points u and w distinct from v such that v is on every
u − w path.
1. x is bridge of G.
2. There exists a partition of V into two subsets U and W such that for
every point u ∈ U and w ∈ W , the line x is on every u − w path.
3. There exists two points u, w such that the line x is on every u − w path.
Proof. The proof is analogous to that of theorem 1.21.5 and is left as an exer-
cise.
32
Proof. Let x be a bridge of G. Suppose x lies on a cycle C of G. Let w1 and
w2 be any two points in G. Since G is connected, there exists a w1 − w2 path
P in G. If x is not on P , then P is a path in G − x. If x is on P , replacing x
by C − x, we obtain a w1 − w2 walk in G − x. Walk contains a w1 − w2 path in
G − x.Hence G − x is connected which is contradiction to (1). Hence x is not
on any cycle on G. Conversely, let x = uv be not on any cycle of G. Suppose
x is not a bridge. Hence G − x is connected.
∴ There is a u − v path in G − x. This path together with the line x = uv
forms a cycle containing x and contradicts (2).Hence x is a bridge.
Theorem 1.21.8. Every non-trivial connected graphs has at least two points
which are not cut points.
Proof. Choose two points u and v such that d(u, v) is maximum. We claim
that u and v are not cut points. Suppose v is a cut point.Hence G − v has
more than one component. Choose a point w in a component that does not
contain u.Then v lies on every u − w path and hence d(u, w) > d(u, v) which
is impossible.Hence v is not a cut point. Similarly u is not a cut point. Hence
the theorem.
1.22 Exercise
1. Prove that connectedness of points is an equivalence relation on the
points of G.
2. Prove that for a connected graph G the distance function d(u, v) is ac-
tually a metric on G. i.e, d(u, v) ≥ 0 and d(u, v) = 0 iff u = v, d(u, v) =
d(v, u) and d(u, w) ≤ d(u, v) + d(v, w) for all u, v, w ∈ V.
33
6. The girth of a graph is defined to be the length of its shortest cycle. Find
the girths of (i) Km (ii)Km,n (iii)Cn (iv) The Peterson graph.
10. Prove that if there exists two distinct cycles each containing a line x,
then there exists a cycle not containing x.
11. Prove that if a graph G has exactly two points of odd degree there must
be a path joining these two points.
13. Prove that any graph with p points satisfying the conditions of problem
12 must have exactly p − 1 lines.
14. Give an example of a graph which has a cut point but does not have a
bridge.
1.23 Blocks
Definition 1.23.1. A connected non-trivial graph having no cut point is a
block. A block of a graph is a subgraph that is a block and is maximal with
respect to this property.
A graph and its blocks are given in 1.26. In the following theorem we give
several equivalent conditions for a given block.
1. G is a block.
34
2. Any two points of G lie on a common cycle.
35
(3) ⇒ (4). The proof is analogous to the proof of (2) ⇒ (3) and is left as an
exercise. (4) ⇒ (3) is trivial.
1.24 Exercise
1. Prove that each line of a graph lies in exactly one of its blocks.
2. Prove that the lines of any cycle of G lie entirely in a single block of G
4. Prove that a graph G is a block iff for any three distinct points of G,
there is a path joining any two of them which does not contain the third.
5. Prove that a graph G is a block iff for any three distinct points of G,
there is a path joining any two of them which contains the third.
1.25 Connectivity
We define two parameters of a graph, its connectivity and edge connectivity
which measures the extend to which it is connected.
Example 1.25.1.
36
Theorem 1.25.1. For any graph G ,κ ≤ λ ≤ δ.
Proof. We first prove λ ≤ δ. If G has no lines, λ = δ = 0. Other wise
removal of all the lines incident with a point of minimum degree results in a
disconnected graph . Hence λ ≤ δ. Now to prove κ ≤ λ, we consider the
following cases.
Case(i)G is disconnected or trivial.Then κ = λ = 0
Case(ii)G is a connected graph with a bridge x. Then λ = 1.Further in case
G = K2 or one of the points incident withx is a cut point. Hence κ = 1 so
that κ = λ = 1.
Case(iii)λ ≥ 2.Then there exist λ lines the removal of which disconnects
graph. hence the removal of λ − 1 of lines results in a graph G with bridge
x = uv. For each of these λ − 1 line select an incident point different from u or
v .The removal of these λ − 1 points removes all the λ − 1 lines. If the resulting
graph is disconnected, then κ ≤ λ − 1.If not x is a bridge of this subgraph and
hence the removal of u or v results in a disconnected or trivial graph. Hence
κ ≤ λ and this completes the proof.
Remark 1.25.1. The inequalities in theorem 1.25.1 are often strict. For the
graph given in fig 1.28 κ = 2, λ = 3 and δ = 4.
1
∴q =
2
1
≥ pδ ( since d(v) ≥ δ for all v
2
pk
≥ .
2
37
Problem 11. Prove that there is no 3− connected graph with 7 edges.
Solution Suppose G is a 3− connected graph with 7 edges.G has 7 edges
⇒ p ≥ 5. Now q ≥ 3p2
. Therefore q ≥ 15
2
. Hence q ≥ 8 which is a contradiction.
Hence there is no 3− connected graph with 7 edges.
1.27 Exercise
1. Find the connectivity of Km,n .
3. give an example to show that the analogue of the above result is not true
for a n− connected graph.
4. Give an example of a closed walk of even length which does not contain
a cycle.
5. Give an example to show that the union of two distinct u − v walks need
not contain a cycle.
8. Determine which of the following statements are true and which are false.
38
(j) If v is a cut point of a G then ω(G − v) = ω(G) + 1
(k) If x is a bridge of G,then ω(G − x) = ω(G) + 1
(l) In a connected graph every line can be a bridge.
(m) In a connected graph every point can be a cut point.
(n) A point common to two distinct blocks of a graph G is a cut point
of G.
(o) Every line of a graph G lies in exactly one block of G.
(p) If a graph is n− connected then it is n− line connected.
(q) Every block is 2− connected.
Answers
1,3,4,11,12,14,15 and 16 are true.
39
Figure 1.17:
v1
v2 v5
v6
v3 v4
Figure 1.18:
x1 x1
x2 x3
x2 x3
x4 x4
G L(G)
Figure 1.19:
Figure 1.20:
40
Figure 1.21:
41
v2
v1
v2
v1
G1 v2
G2 G1 U G2
G1+ G2
G1*G2 G1[G2]
Figure 1.22:
v1
v
5 v
2
v v3
4
Figure 1.23:
Figure 1.24:
42
1 2
5
3
Figure 1.25:
Figure 1.26:
V' P
U V
W
P
Figure 1.27:
Figure 1.28:
43
Module 2
Remark 2.1.1. In an eulerian graph, for every pair of points u and v there
exists at least two edge disjoint u − v trails and consequently there are at least
two edge disjoint u − v paths. The graph shown in figure 2.1 is eulerian.
44
to v1 other than v. At any stage, if the vertex vi , i ≥ 2 is already chosen, then
choose vi+1 to be any vertex adjacent to vi other than vi−1 . Since degree of
each vertex is at least 2, the existence of vi+1 is always guaranteed. G has only
finite number of vertices, at some stage we have to choose a vertex which has
been chosen before. Let vk be the first such vertex and let vk = vi where i < k.
Then vi vi+1 . . . vk is a cycle.
(1) G is eulerian.
Proof.
(2) ⇒ (3) Since G is connected and nontrivial every vertex of G has degree
at least 2. Hence G contains a cycle Z. The removal of the lines of Z
results in a spanning subgraph G1 in which again vertex has even degree.
If G1 has no edges, then all the lines of G form one cycle and hence (3)
holds. Otherwise, G1 has a cycle Z1 . Removal of the lines of Z1 from G1
results in spanning subgraph G2 in which every vertex has even degree.
Continuing the above process, when a graph Gn with no edge is obtained,
we obtain a partition of the edges of G into n cycles.
(3) ⇒ (1) If the partition has only one cycle, then G is obviously eulerian,
since it is connected. Otherwise let z1 , z2 , . . . , zn be the cycles forming
a partition of the lines of G. Since G is connected there exists a cycle
zi 6= z1 having a common point v1 with z1 . Without loss of generality,
45
let it be z2 . The walk beginning at v1 and consisting of the cycles z1 and
z2 in succession is a closed trail containing the edges of these two cycles.
Continuing this process, we can construct a closed trail containing all
the edges of G. Hence G is eulerian.
Corollary 2.1.1. Let G be a connected graph with exactly 2n(n ≥ 1), odd
vertices. Then the edge set of G can be partitioned into n open trails.
Corollary 2.1.2. Let G be a connected graph with exactly two odd vertices.
Then G has an open trail containing all the vertices and edges of G.
Corollary 2.1.2 answers the question: Which diagrams can be drawn with-
out lifting one’s pen from the paper not covering any line segment more than
once?
46
Figure 2.2: A theta graph
2.1.1 Exercise
1. For what values of n, is Kn eulerian?
3. Show that if G has no vertices of odd degree, then there are edge disjoint
cycles C1 , C2 , . . . , Cn such that
Definition 2.2.2. A block with two adjacent vertices of degree 3 and all other
vertices of degree 2 is called a theta graph.
Example 2.2.1. The graph shown in figure 2.2is a theta graph. A theta graph
is obviously nonhamiltonian and every nonhamiltonian 2-connected graph has
a theta subgraph.
47
Theorem 2.2.2. If G is hamiltonian, then for every nonempty proper subset
S of V (G), ω(G − S) ≤ |S| where ω(H) denote the number of components in
any graph H.
Proof. Let (V1 , V2 ) be a bipartition of the graph with |V1 | = m and |V2 | = n.
The graph Km,n − V1 is the totally disconnected graph with n points. Hence
ω(Km,n − V1 ) = n > m = |V1 |. Therefore Km,n is non hamiltonian.
Remark 2.2.1. The converse of theorem 2.2.2 is not true. For example,
Petersen graph satisfies the condition of the theorem but is nonhamiltonian.
|S ∩ T | = 0. (2.2)
48
Figure 2.3: A tree(left) and a forest(right)
2.3 Trees
2.3.1 Characterization of Trees
Definition 2.3.1. A graph that contains no cycles is called a an acyclic graph.
A connected acyclic graph is called a tree.A graph without cycles is also called
a forest so that the components of a forest are trees.
Theorem 2.3.1. Let G be a (p, q) graph. The following statements are equiv-
alent.
(1) G is a tree.
49
(4) G is acyclic and p = q + 1
Proof.
(1) ⇒ (2) Assume that G is a tree. Let u and v be any two points of G. Since
G is connected there exists a u − v path in G. Now suppose that there
exists two distinct u − v paths, say:
P1 : u = v0 , v1 , v2 , . . . , vn = v and P2 : u = w0 , w1 , . . . , wm = v
(2) ⇒ (3) Assume that every two points of G are joined by a unique path. This
implies that G is connected. We will show that p = q + 1 by induction on
p. The result is trivial for connected graphs with 1 or 2 points. Assume
that the result is true for all graphs with fewer than p points. Let G be
a graph with p points. Let x = uv be any line in G. Since there exists a
unique u − v path in G, G − x is a disconnected graph with exactly two
components G1 and G2 . Let G1 be a (p1 , q1 ) graph and G2 be a (p2 , q2 )
graph. Then p1 + p2 = p and q1 + q2 = q − 1. Further by induction
hypothesis p1 = q1 + 1 and p2 = q2 + 1. Hence
p = p1 + p2 = q1 + q2 + 2 = q − 1 + 2 = q + 1
50
(4) ⇒ (1) Assume thatG is acyclic and p = q + 1. We will prove that G is a
tree. Since G is acyclic to prove that G is a tree we need only prove that
G is connected. Suppose G is not connected. Let G1 , G2 , . . . , Gk (k ≥ 2)
be the components of G. Since G is acyclic each of these components
is a tree. Thus qi + 1 = pi where Gi is a (pi , qi ) graph. This implies
that ki=1 qi + 1) = ki=1 pi . That is, q + k = p and k ≥ 2, which is a
P P
Corollary 2.3.1. Every non trivial tree G has at least two vertices of degree
one.
P
Proof. Since G is non trivial, d(v) ≥ 1 for all points v. Also d(v) = 2q =
2(p − 1) = 2p − 2. Hence d(v) = 1 for at least two vertices.
51
2.3.2 Centre of a Tree
Definition 2.3.2. Let v be a point in a connected graph G. The eccentricity
e(v) of v is defined by e(v) = max{d(u, v) : u ∈ V (G)}. The radius r(G) is
defined by r(G) = min{e(v) : v ∈ V (G)}. The point v is called the central
point if e(v) = r(G) and the set of central points is called the centre of G.
Theorem 2.3.4. Every tree has a centre consisting of either one point or two
adjacent points.
2.3.3 Exercise
1. Show that there does not exists a nonhamiltonian graph with arbitrarily
high eccentricity.
4. Prove that the origin and terminus of a longest path in a tree have degree
one.
5. Show that every tree with exactly 2 vertices of degree one is a path.
6. Show that every tree is a bipartite graph. Which trees are complete
bipartite graphs.
52
7. Prove that every block of a tree is K2 .
9. Prove that any edge of a connected graph G one of whose end point is
of degree one is contained in every spanning tree of G.
53
Module 3
3.1 Matchings
Definition 3.1.1. Any set M of independent lines of a graph G is called a
matching of G. If uv ∈ M, we say that u and v are matched under M. We
also say that the points u and v are M-saturated. A matching M is called a
perfect matching if every point of G is M-saturated. M is called a maximum
matching if there is no matching M ′ in G such that |M ′ | > |M|.
Example 3.1.1. Consider the graph G1 shown in figure 3.1. Let M1 =
{v1 v2 , v6 v3 , v5 v4 } is a perfect matching in G1 . Also M2 = {v1 v3 , v6 v5 } is a
matching in G1 . However M2 is not a perfect matching. The points v2 and
v4 are not M2 saturated. For the graph G2 , M2 = {v8 v4 , v1 v2 } is a maximum
matching but not a perfect matching.
54
v v2
2
v v v v
1 3 1 3
v v v
7
4 4
v v
v v 6 5
6 5
Example 3.1.3. Consider the graph G1 shown in figure 3.1. Note that
M1 △M2 = {v1 v2 , v6 v3 , v5 v4 , v1 v3 , v6 v5 }
55
v2
v1
v3 v4
v6 v5
path the lines v0 v1 , v2 v3 , . . . , v2k v2k+1 are not in M and the lines v1 v2 , v3 v4 , . . . , v2k−1 v2k
are in M. Hence
Clearly any graph with p odd has no perfect matching. Also the complete
graph Kn has a perfect matching if n is even. For example, if V (Kn ) =
{1, 2, . . . , n} then {12, 34, . . . , (n − 1)n} is a perfect matching of Kn . Thus Kn
56
has a perfect matching if and only if n is even.
Problem 13. Show that a tree has at most one perfect matching.
Problem 14. Find the number of perfect matching in the complete bipartite
graph Kn,n .
Problem 15. Find the number of perfect matchings in the complete graph
K2n .
3.3 Exercise
1. Find maximum matching in the tree shown in figure 3.3.
57
Figure 3.3: A Tree
58
G be the bipartite graph with the bi-partition {A, B} such that xi is joined to
yj if and only if yi is a girl friend of xi . The marriage is equivalent to finding
the conditions under which G has a matching that saturates every vertex of
A.
Definition 3.4.1. For a subset S of V the neighbor set N(S) is the set of all
points each of which is adjacent to at least one vertex in S.
Proof. Suppose G has a matching M that saturates all the vertices in A.Let
S ⊆ A. Then every vertices in S is matched under M to a vertex in N(S) and
two distinct vertices of N(S). Hence it follows that |N(S)| ≥ |S|.
Conversely, suppose |N(S)| ≥ |S| for all S ⊆ A. We wish to show that
G contains a matching which saturates every vertex in A. Suppose G has no
such matching. Let M ∗ be a maximum matching in G. By assumption there
exists a vertex x0 ∈ A which is M ∗ unsaturated. Let
|T | = |S| − 1. (3.1)
T ⊆ N(S). (3.2)
59
the edge uv is not in M ∗ . Hence the path P1 consisting of P followed by the
edge uv is an M ∗ -alternating path. Hence v ∈ Z ∩ B = T . Thus
N(S) ⊆ T. (3.3)
N(S) = T (3.4)
which is a contradiction.
Remark 3.4.1. Hall’s theorem answers the marriage problem. The marriage
problem with n boys has a solution if and only if for every k with 1 ≤ k ≤ n,
every set of k boys has collectively at least k girl friends.
The following is an important consequence of Hall’s marriage theorem.
Theorem 3.4.2. Let G be a k regular bipartite graph with k > 0. Then G
has a perfect matching.
Proof. Let (V1 , V2 ) be a bi-partition of G. Since each edge of G has one end
in V1 and there are k edges incident with each vertex of V1 , we have q = k|V1 |.
By a similar argument q = k|V2 |, so that k|V1 | = k|V2 |. Since k > 0, we get
|V1 | = |V2 |. Now let S ≤ V1 . Let E1 denote the set of all edges incident with
vertices in N(S). Since G is k- regular, |E1 | = k|E2 | and |E2 | = k|N(S)|.
Also by definition of N(S), we have E1 ⊆ E2 , and hence it follows that k|S| ≤
k|N(S)|. Thus |N(S)| ≥ |S|. Hence by Hall’s theorem, G, has a matching M
that saturates every vertex in V1 . Since |V1 | = |V2 |, M also saturates all the
vertices of V2 . Thus M is a perfect matching.
3.5 Exercise
1. For any graph G, let O(G) denote the number of odd components of G.
Let G = (V, X) be any graph. Prove that if G has a perfect matching
60
s
s
w t
w t
v u v u
2. Using the above problem show that the following graph has no perfect
matching.
3.6 Planarity
Definition 3.6.1. A graph is said to be embedded in a surface S when it is
drawn on S such that no two edges intersect(meetins of edges at a vertex is
not considered an intersection). A graph is called planar if it can be drawn
on a plane without intersecting edges. A graph is called non planar if it is
not planar. A graph that is drawn on the plane without intersecting edges is
called a plane graph.
61
edge uw crosses one of the edges already drawn, giving a contradiction. Hence
K5 is not planar.
Proof. Let G be a graph embedded on a sphere. Place the sphere on the plane
L and call the point of contact S(south pole). At point S, draw a normal to
the plane and let N (North pole) be the point where this normal intersects the
surface of the sphere.
Assume that the sphere is placed in such a way that N is disjoint from
G. For each point P on the sphere, let P ′ be the unique point on the plane
where the line NP intersects the surface of the plane. There is a one to one
correspondence between the points of the sphere other than N and the points
on the plane. In this way, the vertices and the edges of G can be projected on
the plane L, which gives an embedding of G in L.
The reverse process obviously gives an embedding in the sphere for any
graph that is embedded in the plane L. This completes the proof.
Theorem 3.6.3. Every planar graph can be embedded in a plane such that
all edges are straight line segments
Theorem 3.6.5. Every polyhedron that has at last two faces with the same
number of edges on the boundary.
62
Proof. The corresponding graph G is 3 connected. Hence δ(G) ≥ 3 and the
number of faces adjacent to any chosen face f is equal to the number of edges
in the boundary of the face f ( if two faces have the edges u and vw with r 6= w
in common, then G − {r, w} is disconnected contradicting 3 connectedness).
Let f1 , f2 , . . . , fm be the faces of the polyhedron and ei be the number of edges
on the boundary of the ith face. Let the faces be labelled so that ei ≤ ei+1 for
every i. If no two faces have the same number of edges in their boundaries,
then ei+1 − ei ≥ 1 for every i. Hence em − e1 = m−1
P
i=1 (ei+1 − ei ) ≥ m − 1 so
that em ≥ e1 + m − 1. Since e1 ≥ 3, this implies that em ≥ m + 2 so that the
mth face is adjacent to at least m + 2 faces. This gives a contradiction as there
are only m faces. This proves the theorem.
Proof. Consider a plane embedding of G such that the exterior face of each
component contains all other components. Now let the ith component be a
(pi , qi ) graph with ri faces for each i. By the theorem pi − qi + ri = 2. Hence
X X X
pi − qi + ri = 2k (3.5)
P P P
But pi = p, qi = q and ri = r + (k − 1). Since the infinite face is
63
P
counted k times in ri , hence equation (3.5) gives p − q + r + k − 1 = 2k so
that p − q + r = k + 1.
Proof. Every face is an n-cycle. Hence each edge lies on the boundary of
exactly two faces. Let f1 , f2 , . . . , fr be the faces of G. Therefore
r
X
2q = (number of edges in the boundary of the face fi ) = nr
i=1
p − q + 2q/n = 2
q(2/n − 1) = 2 − pq = n(p − 2)/(n − 2)
Proof.
That is,
2q ≥ 3r
That is
q ≤ 3r/2 (3.6)
64
Definition 3.6.4. A graph is called maximal planar if no line can be added to
it without losing planarity. In a maximal planar graph, each face is a triangle
and such a graph is sometimes called a triangulated graph.
2q ≥ 4r. (3.7)
Proof. Note that K5 is a (5, 10) graph. For any planar (p, q) graph, q ≤ 3p − 6.
But q = 10 and p = 5 do not satisfy this inequality. Hence K5 is not planar.
Also note that K3,3 is a (6, 9) bipartite graph and hence has no triangles. If
such a graph is planar, then by Corollary refq12, q ≤ 2p − 4. But p = 6 and
q = 9 do not satisfy this inequality. Hence K3,3 is not planar.
Corollary 3.6.6. Every planar graph G with p ≥ 3 points has at least three
points of degree less than 6.
P
By Corolary 3.6.2, q ≤ 3p−6. That is, 2q ≤ 6p−12. That is, di ≤ 6p−12
where di are the degrees of the vertices of G. Since G is connected, di ≤ 1 for
P
every i. If at most two di are less than 6, then di ≥ 1 + 1 + 6 + . . . + (p −2) =
6p − 10 which is a contradiction. Hence di < 6 for at least three values of i.
65
Proof. Let G have p vertices. If p ≤ 4, then G must be a subgraph of Kp
which is a triangulated graph. Hence let p ≥ 5.
We construct a triangulated graph G′ which contains G as a subgraph as
follows:
Consider a plane embedding of G. If R is a face of G and v1 and v2 are two
vertices on the boundary of R without a connecting edge we connect v1 and v2
with an edge lying entirely in R. This yields a new plane graph. This yields a
new plane graph. This operation is continued until every pair of vertices on the
boundary of the same face are connected by an edge. The number of vertices
remains the same under these operation. Hence the process terminates after
some time yielding a plane triangulated graph G′ . G is obviously a subgraph
of G′ .
Remark 3.6.1. The graphs K5 and K3,3 are called Kuratowski’s graphs.
66
1
2 5
b e
c d
3 4
67
Module 4
Colourability
Example 4.1.1. The chromatic numbers of some well known graphs are given
below:
68
2
1 3
4
5
8 7 6
Example 4.1.4. Consider the graph shown in figure 4.1. Note that chi(G) =
3. {1, 4, 8}, {3, 6, 7}, {2, 5} is a chromatic partitioning of this graph.
Theorem 4.1.1. Let G be any graph. Then the following statements are
equivalent.
1. G is 2-colourable.
2. G is bipartite.
Proof.
(1) ⇒ (2) Assume that G is 2-colourable. Then V (G) can be partitioned into
two colour classes. These colour classes are independent sets and hence
a partition of G. Hence G is bipartite.
(2) ⇒ (1) Assume that G is bipartite. Then V (G) can be partitioned into two
sets V1 and V2 such that V1 and V2 are independent sets. A 2-colouring
of G can be obtained by colouring all the points of V1 white and all the
points of V2 blue. Hence G is 2-colourable.
Remark 4.1.1. G is bipartite does not imply that χ(G) = 2. Consider the
graph K2 . Note that K2 is bipartite and χ(K2 ) = 1.
69
Definition 4.1.3. A graph G is called critical if χ(H) < χ(G) for every proper
subgraph H of G. A k-chromatic graph that is critical is called k- critical. It
is obvious that every k-chromatic graph has a k- critical subgraph.
Theorem 4.1.3. For any graph G, χ(G) ≤ 1+maxδ(G′ ) where the summation
is taken over all induced subgraphs G′ of G.
Proof. The theorem is obvious for totally disconnected graphs. Now let G
be an arbitrary n- chromatic graph, n ≥ 2. Let H be any smallest induced
subgraph of G such that χ(H) = n. Hence χ(H − v) = n − 1 for every point
v of H. If degH v < n − 1, then a (n − 1) colouring of H − v can be extended
to a n − 1 colouring of H by assigning to v, a colour which is assigned to none
of its neighbours in H. Hence degH v ≥ n − 1. Since v is an arbitrary vertex
of H, this implies that δ(H) ≥ n − 1 = χ(G) − 1.
Hence χ(G) ≤ 1 + δ(H) ≤ 1 + maxδ(H ′ ) where the maximum is taken over
the set B of induced subgraphs G′ of G.
70
Definition 4.1.4. Ifχ(G) = n and every n-colouring of G induces the same
partition on V (G) then G is called uniquely n-colourable or uniquely colourable.
71
component of G − S, a different n-colouring of G is obtained. In any case,
G is not uniquely n-colourable, giving a contradiction. Hence G is (n − 1)
connected.
Theorem 4.1.7. For any graph G, the edge chromatic number is either ∆ or
∆ + 1.
Proof. If n = 2, the result is obvious. Hence let n > 2. Let n be odd. Now
the edges of Kn can be n-coloured as follows.
Place the vertices of Kn in the form of a regular n-gon. Colour the edges
around the boundary using a different colour for each edge.
Let x be any one of the remaining edges. x divides the boundary into two
segments, one say B1 containing an odd number of edges and other containing
an even number of edges. Colour x with the same colours as the edge that
occurs in the middle of B1 . Note that these two edges are parallel. The result
is a n-edge colouring of Kn since any two edges having the same colour are
parallel and hence are not adjacent. Hence
χ′ (Kn ) ≤ n. (4.1)
72
Since Kn has n points and n is odd, it can have at most (n − 1)/2 mutually
independent edges. Hence each colour class can have at most (n − 1)/2 edges,
so that the number of colour classes is at least n2 21 (n − 1) = n so that
χ′ (Kn ) ≥ n (4.2)
Exercises
1. Give an example of a graph with ∆ = χ′ and a graph with ∆ < χ′ .
73
Proof. We will prove the theorem by induction on the number p of points. For
any planar graph having p ≤ 5 points, the result is obvious since the graph is
p-colourable.
Now assume that all planar graphs with p points is 5- colourable for some
p ≥ 5. Let G be a planar graph with p + 1 points. Then G has a vertex
v of degree 5 or less. By induction hypothesis the plane graph G − v is 5-
colourable. Consider a 5-colouring of G − v where ci , 1 ≤ i ≤ 5, are the
colours used. If some colour, say cj is not used in colouring vertices adjacent
to v, then by assigning the colour cj to v the 5 colouring of G − v can be
extended to 5-colouring of G.
Hence we have to consider only the case in which degv = 5 and all the five
colours are used for colouring the vertices adjacent to v. Let v1 , v2 , v3 , v4 , v5 be
the vertices adjacent to v coloured c1 , c2 , c3 , c4 and c5 respectively.
Let G13 denote the subgraph of G − v induced by those vertices coloured c1
or c3 . If v1 and v3 belong to different components of G13 , then a 5 colouring
of G − v can be obtained by interchanging the coloures of vertices in the
component of G13 containing v1 (Since no point of this component is adjacent
to a point with colour c1 or c3 outside this component, this interchange of
colours results in a colouring of G − v. In this 5 colouring no vertex adjacent
to v is coloured c1 , and hence by colouring v with c1 , a 5-coloring of G obtained.
If v1 and v3 are in the component of G13 , then in G there exits a v1 − v3
path of all of whose points are coloured c1 or c3 . Hence there is no v2 − v4 path
all whose points are colouredc2 , c4 .
Hence if G24 denotes the subgraph of G − v induced by the points coloured
c2 or c4 , then v2 and v4 belong to different components of G24 . Hence if we
interchange the colours of the points in the component of G24 containing v2 ,
a new colouring G − v results and in this, no point adjacent to v is coloured
c2 . Hence by assigning colour c2 to v, we can get a 5-colouring of G. This
completes the induction and the proof.
74
v1 c3
v5 c1
v
v2 c3
v4
c1
v3 c1 c
Proof. Number of ways of colouring Gi with λ colours is f (Gi , λ). Since any
choice of λ colouring for G1 , G2 , . . . , Gk can be combined to give a λ colouring
for G, f (G, λ) = ni=1 f (Gi , λ).
Q
75
Theorem 4.3.3. If u and v are nonadjacent points in a graph G and hG
denotes the elementary homomorphism of G which identifies u and v, then
f (G, λ) = f (G + uv, λ) + f (hG, λ) where G + uv denotes the graph obtained
from G by adding the line uv.
Proof.
1. f (G, λ) is a polynomial in λ.
Proof. Theorem 4.3.3, states that f (G, λ) can be written as the sum of f (G1 , λ)
and f (G2 , λ) where G1 has the same number of points as G with one more edge
and G2 has one point less than G. Doing this process repeatedly, f (G, λ) can
P
be written as f (Gi , λ) where each Gi is a complete graph and max|V (Gi )| =
|V (G)|.
Since f (Kn , λ) is a polynomial of degree n, it follows that f (G, λ) is a
polynomial of degree |V (G)|. Since f (Kn , λ) has constant term 0, the constant
P
term in f (Gi , λ) is 0 so that (3) holds.
Note 1. Because of the above corollary f (G, λ) is called the chromatic poly-
nomial of G.
76
= + = + + K3 + K4
Example 4.3.1. Find the chromatic polynomial of the graph G given in figure
A diagram of the graph is used to denote the chromatic polynomial. The
nonadjacent points considered at each step are indicated by u and v. Then
77
Theorem 4.3.5. A graph G with n points and f (G, λ) = λ(λ − 1)n−1 is a
tree.
Worked Examples
Problem 16. Prove that the coefficients of f (G, λ) are alternate in sign.
We prove the result by induction on the number of lines q. When q = 0,
f (G, λ) = λp where p is the number of points of G. In this case the polynomial
has just one non-zero coefficient and hence the result is trivially true.
Now assume that the result is true for all graphs with less than q lines. Let
G be a (p, q) graph with q > 0. Let e = uv be an edge of G. Let G1 = G − uv.
Clearly, u and v are nonadjacent in G1 . Hence
Hence
f (G1 , λ) = f (G, λ) + f (hG1 , λ) (4.3)
and
f (hG1 , λ) = λp−1 − β1 λp−2 + αλp−2 − · · · + (−1)p−1 βp−2 λ
where αi and βi are non negative integers. Hence by equation (4.3), we have
78
with less than q edges. As in the previous problem,
Problem 18. Prove that λ4 − 3λ3 + 3λ2 cannot be the chromatic polynomial
of any graph.
which is a contradiction.
4.4 Exercises
1. Find the chromatic polynomial of K4 − x where x is a line.
79
2
1 3
4. Prove that if k is the least positive integer such that λk has non zero
coefficients in f (G, λ) than G is a graph with k components.
Example 4.5.1. Let V = {1, 2, 3} and A = {(1, 2), (2, 3), (1, 3), (3, 1)}. Then
(V, A) is a digraph. The diagrammatic representation of this digraph is shown
in figure 4.8.
Consider the digraph shown in figure 4.8. The degree pairs of the points
1, 2, 3 and 4 are (2, 1), (1, 1), (1, 2) and (0, 0) respectively.
80
2 b
1 4
a
c
3
Theorem 4.5.1. In a digraph D, sum of all the indegrees of all the vertices
is equal to the sum of their out degrees, each sum being equal to the number
of arcs in D.
Proof. Let q denote the number of arcs in D = (V, A). Let B = v∈V d+ (v)
P
P
and C = v∈V d− (v). An arc (u, w) contributes one to the out-degree of u
and one to the in degree of w. Hence each arc contributes 1 to the sum B and
1 to the sum C. Hence B = C = q.
Example 4.5.2. Consider the digraphs shown in figure. These graphs are
isomorphic. The isomorphism being f (1) = a, f (2) = b, f (3) = c, f (4) = d.
81
Theorem 4.5.2. If two digraphs are isomorphic then the corresponding points
have the same degree pair.
Now
w ∈ N(v) ⇔ (v, w) ∈ A1
⇔ (f (v), f (w)) ∈ A2
f (w) ∈ N(f (v)).
Hence |N(v)| = |N(f (v))|. This implies that v and f (v) have the same out
degree pair. Similarly, we can prove that v and f (v) have the same in- degree
pair.
From theorems 4.5.1 and 4.5.2, it is obvious that two isomorphic digraphs
have the same number of vertices and same number of arcs.
Obviously D and D ′ have the same number of points and arcs. Moreover,
the in-degrees of a point v in D is equal to its out-degree in D ′ and vice versa.
82
4.6 Path and Connectedness
Definition 4.6.1. A walk ( directed walk) in a digraph is a finite alternating
sequence W = v0 x1 v1 . . . xn vn of vertices and arcs in which xi = (vi−1 , vi ) for
every arc xi . W is called a walk from v0 to vn or a v0 −vn walk. The vertices v0
and vn are called origin and terminus of W respectively and v1 , v2 , . . . vn−1 are
called its internal vertices. The length of a walk is the number of occurrence of
arcs in it. A walk in which the origin and terminus coincide is called a closed
walk. A path (directed path) is a walk in which all the vertices are distinct.
A cycle (directed cycle or circuit) is a nontrivial closed walk whose origin and
internal vertices are distinct.
The trivial digraph consisting just one point is strong since it does not
contain two distinct points. Obviously
Proof. Suppose the edges of G can be oriented so that the resulting digraph
becomes strongly connected.
If possible, let e = vw be an edge of G not lying on any cycle. Now as
soon as e is oriented, one of the vertices u and w becomes non reachable from
the other. Hence an orientation of the required type is not possible, giving
contradiction. Hence every edge of G lies on a cycle.
Conversely, let every edge of G lie on a cycle.
83
2 b
1 4
a
c
3
(a) Let W1 be a maximal subset of V such that for every pair of points
u, v ∈ W1 , u is reachable from v and v is reachable from u. Then the
subdigraph of D induced by W1 is called a strong component of D
(b) Let W2 be a maximal subset of V such that for every pair of points
u, v ∈ W2 , either u reachable from v or v is reachable from u. Then the
subdigraph of D induced by W2 is called a unilateral component of D.
84
vi w
s
c
vj
(c) Let W3 be a maximal subset of V such that for every pair of points
u, v ∈ W3 , u and v are joined by a pat in the underlying graph of D.
Then the subdigraph of D induced by W3 is called a weak component of
D.
Example 4.6.1. Consider the digraph D shown in figure. The strong com-
ponents are those subdigraphs induced by the sets of points A = {1, 2},B =
{3}, C = {4}, D = {5}, E = {6, 7}, F = {8} and G = {9, 10, 11, 12}. The
unilateral components are those induced by the sets points
{1, 2}, {3, 4, 6, 7, 8}, {4, 5}, {5, 6, 7}, {4, 6, 7, 9, 10, 11, 12}, {6, 7, 8, 9, 10, 11, 12}
85
1 4 5
6 7 8
2
9 12
10 11
Remark 4.6.1. If the condensation of a digraph has a cycle C then the strong
components corresponding to points of C together form a strong component.
This contradicts the maximality of strong components and hence the strong
condensation has no cycles.
86
subdigraph D1 in which again d− (v) = d+ (v) for every point v. If D1 has
no arcs, then Z is an eulerian trail in D. Otherwise, D1 has a cycle Z1 .
Continuing the above process when a digraph Dn with no arcs is obtained, we
have a partition of the arcs of D into n cycles, n ≥ 2. Among these n cycles,
take two cycles Zi and Zj having a point in common. The walk beginning at v
and consisting of the cycles Zi and Zj in succession is a closed trail containing
the lines of these two cycles. Continuing this process, we construct a closed
trail containing all the arcs of D. Hence D is eulerian.
4.7 Exercise
1. Show that every eulerian digraph is strongly connected. Give an example
to show that the converse is not true.
2. Show that a weak digraph D is eulerian iff the set of arcs of D can be
partitioned into cycles.
3. Show that no strictly weak digraph contains a point whose removal re-
sults in a strong digraph.
87