Graph Theory
Graph Theory
WALK
beginning and ending with points such that each line xi is incident with
vi – 1 and vi.
Note:
Definition: A walk which begins and ends at the same point is called a closed
walk
62
CYCLE
Definition: A closed walk in which no point except the terminal point appear
more than once is called a cycle.
A closed walk v0, v1, v2, …,v n = v0 in which n ≥ 3 and v0, v1, v2, … ,v n-1
are distinct is called a cycle of length n.
C 3 is called a triangle.
TRIAL
PATH
Note:
x5 v1 x1
v5 x6 v2
x4 x7 x2
v4 x3 v3 Fig. 3.1
63
Initial point of the walk is v1. Terminal point of the walk is v5.
2). v1, v2, v3, v4, v2,, v1, v2, v5, is a walk.
3). v1, v2, v4, v5, v2 and v1, v2, v3, v4, v5, v1 are closed walk.
If all the points u0, u1, u2, …, un a are distinct then this walk itself is a
path.
64
Proof:
Proof:
Clearly n ≥ 3.
If all the points in this walk are distinct then this walk itself is a cycle.
If not there exist two positive integers i and j such that i < j ,
65
Now vi, vi + 1, …, vj and v0, v1, v2 , … , vi, vj + 1 , … v n = v0 are closed
walks contained in the given walk and the sum of their lengths is n.
SOLVED PROBLEMS
vi – v j walks of length n.
Solution:
We know that ,
a i j = 1 , if vi is adjacent to v j
0 , otherwise
When n = 1,
= 1 , if vi is adjacent to v j
0 , otherwise
66
= (a i j) = (i , j )th element of A.
Let An - 1 = (𝑎(𝑛−1)
𝑖𝑗
)
(𝑛−1)
𝑖𝑗 = the number of vi – v j walks of length (n – 1).
Now An = An – 1. A
(𝑛−1)
= (𝑖𝑗 ) p x p (a i j)p x p
0 , if v k is not adjacent to v j
– 1
By induction hypothesis the (i , j)th entry of An is the number of
walks of length n - 1 between v i and v k if v k is adjacent to v j then the
above walk can be made into walks of length n between v i and v j.
CONNECTEDNESS
67
Definition: A graph G is said to be connected if there is at least one
path between every pair of vertices in G.
COMPONENTS
Example:
Connected Graphs
G1 G2 G3
Disconnected Graphs
G4 Fig. 3.2 G5
68
𝑝−1
Theorem 3.4: A graph G with p points and δ ≥ is connected.
2
Proof:
𝑝−1
Let G be a graph and δ ≥ is connected.
2
To prove: G is connected.
Let v1∊V1.
𝑝−1
We have δ ≥ .
2
∃ at least 𝑝−1
points in G1 which are adjacent to V1.
2
𝑝+1
i.e. V1 contains .
2
i.e. p ≥ p + 1
Hence G is connected.
Theorem 3.5: A graph G is connected iff for any partition of V into subsets V1
andV2 there is a line of G joining a points of V1 to a point of V2.
69
Proof:
Let u ∊ V1 and v ∊ V2 .
Then v i - 1∊ V1.
To prove: G is connected.
Let V1 be the set of all points of G1 and V2 be the set of all points of V2.
Clearly V = V1 U V2 is a partition of V.
G is connected.
70
Theorem 3.6: If G is not connected then 𝐺̅ is connected.
Proof:
Hence 𝐺̅ is connected.
DISTANCE
Definition: For any two points u, v of a graph we define the distance between
u and v by
, otherwise
Note:
71
Theorem 3.7: [Necessary and sufficient condition for a graph to be bipartite]
A graph G with at least two points is bipartite iff all its cycles are of even
length.
Proof:
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.
Choose v0 ∊ V1.
Also v n = v0 ∊ V1.
n is even.
To prove: G is bipartite.
Let v1 ∊ V1.
72
Claim: Every line of G joins a point of V1 to a point of V2.
Then the v 1 – u1 path along P and the v 1 – u1 path along Q are both shortest
path and hence have the same length, say i.
Now the u 1 – u path along P, the line u v followed by the v 1 – u1 path along Q
form a cycle.
Hence G is bipartite.
CUT POINT
BRIDGE
73
Note: If v is a cut point of a connected graph then G – {v} is
disconnected.
Example:
3 7 6
1 2 4 5
Fig. 2.3 8
every u – w path.
Then G – v is disconnected.
74
G – v contains at least two components.
V – {v} = U 𝖴 W and U ∩ W = φ .
Let u ∊ U and w ∊ W.
There is no u – w path in G – v.
Assume that there exists two points u and w distinct from v such that v
is on every u – w path.
there is no u – w path in G – v.
⇒ G – v is disconnected.
(i). v is a bridge of G.
75
(ii).There exists a partition of V into subsets U and W such that for
(iii).There exists two points u and w such that the line x is on every
u – w path.
Then G – x is disconnected.
To prove: x is a bridge of G.
76
Suppose x is not a bridge.
Then G – x is connected.
Let x = u v.
Hence x is a bridge.
Theorem 3.11: Every non – trivial connected graphs has at least two points
which are not cut points.
Then G – v is disconnected.
d (u , w) > d (u , v).
77
(ii).Unless there is no alternative, e i + 1 is not a bridge of G -{e1, e2,...,e i}.
Step – 3:
HAMILTONIAN GRAPHS
Fig. 4.4
93
UNIT – I
If two distinct lines x and y are incident with a common point then
they are called adjacent lines.
Examples:
5
G = {V, X} is a (4, 3) graph. This graph can be represented by a
diagram as shown in Fig.1.1.
6
a
b c d
Fig. 1.1
In this graph the points a and b are adjacent whereas b and c are non –
adjacent.
4 3
1 2
Fig. 1.2
In this graph the lines {1, 3} and {2, 4} intersect in the diagram and their
Fig. 1.3 is another diagram for the graph given in Fig. 1.2.
1
4
.
2 3
Fig. 1.3
3. The (10, 15) graph given in Fig. 1.4 is called a Petersen graph.
7
1
2 a 5
b e
c d
3 4
Fig.1.4
Remark:
The definition of a graph does not allow more than one line joining two
points. Also, it does not allow any line joining a point to itself.
2 3
Fig.1.5
(2). MULTI GRAPH
Definition: If more than one line joining two vertices are allowed then the
resulting object is called a multi graph. Lines joining the same points are called
multiple lines.
2 3
Fig. 1.6
8
(3). PSEUDO GRAPH
Fig. 1.7
(4).COMPLETE GRAPH
Definition: A graph in which any two distinct points are adjacent is called a
complete graph.
K1 K2 K3 K4 K5
Fig. 1.8
9
Example: G1, G2, G3 and G4 are null graphs.
G1 G2 G3 G4
Fig. 1.9
(6).LABELLED GRAPH
The graphs given in Fig. 1.1 and Fig.1.2 are labelled graphs and the
graph in Fig. 1.8 is an unlabelled graph.
(7).BIPARTITE GRAPH
10
Note: The number of points of the complete bigraph Km , n is m + n and the
number of lines is m n.
Example:
K 4,2 K2 , 3 K3 , 3
Fig. 1.10
Problem:
Solution:
For G5 : V = { 1, 2, 3, 4,5} and X = {(1,2), (1,3), (1,4), (1,5),(2,3), (2,5), (3, 4),
(3, 5), (4, 5)}.
1 2 4
5 3
3 4 1 2
1.2. DEGREES
11
A point v of degree 0 is called an isolated point. A point v of degree one is
called an end point.
1 2
3 4
Fig.1.13
Total degrees = 10 = 2 x 5.
Theorem 1.1: The sum of the degrees of the points of a graph G is twice the
number of lines in G. i.e. ∑d (vi ) = 2q.
Theorem 1.2: In any group G the number of points of odd degree is even.
Proof: Let v1, v2, . . . , v k denote the points of odd degree and w1, w2, . . . , wm
12
Also, ∑𝑚
𝑗 =1 (𝑤𝑗 ) is even.
𝑘
∴ ∑ 𝑖=1(𝑣𝑖 ) is even.
Hence, k is even .
If all points of G have the same degree r then G is called a regular graph of
1 2 3
4 5 6
Fig. 1.14.
Example (3):
𝑝
∴ ∑ 𝑖=1 (𝑣𝑖 ) = 3p, since G is a cubic graph
∴ 3p is even ⇒ p is even.
SOLVED PROBLEMS
Problem (1): Let G be a (p, q) graph all of whose points have degree k or k + 1.
Solution:
Given that G is a (p, q) graph and all of whose points have degree k or k + 1.
14
i.e. t k + ( p – t) ( k +1) = 2q
⇒ t k + p k – t k +p - t = 2q
⇒ t = p k +p - 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:
Hence, no point can have degree zero. This is a contradiction to the fact
that point of G has degree zero.
15
Problem (3): What is the maximum degree of any point in a graph with p
points?
Solution:
𝑝
∴ ∑𝑖=1 𝑑(𝑣𝑖 ) = p (p – 1)
∴ d (vi ) ≤ (p – 1)
Hence, the maximum degree of any point in a graph with p points is (p – 1).
Solution:
We know that, ∑𝑝 (𝑣 ) = 2q .
𝑖=1 𝑖
𝑝 𝑝 𝑝
∴ ∑ 𝑖=1 𝛿 ≤ 𝑖=1 𝑑(𝑣𝑖 ) ≤ ∑ 𝑖=1
∑ ∆.
i.e. p𝛿 ≤ 2q ≤ p∆ .
i. e. 𝛿 ≤ 2𝑞 ≤ ∆.
𝑝
16
Problem (5): Let G be a k – regular bigraph with bipartition (V1, V2) and k > 0.
Prove that |V1| = |V2|.
Solution:
Given that G is a k – regular bigraph with bipartition (V1, V2) and k > 0.
Problem (6): A (p, q) graph has t points of degree m and all other points are of
degree n. Show that (m – n) t + p n = 2 q.
Solution:
i.e. (m – n) t + p n = 2 q.
Solution:
17
Exercises:
1.3 SUBGRAPHS
if V1 ⊆ V and X1 ⊆ X.
1 5
3 Fig. 1.15
18
Subgraph , H1 Subgraph, H2
1 5
2 4 4
3 Fig. 1.16
1 5 1 5
2 4 3 4
2 a 5
b e
c d Fig.1.4
3 4
1 a 1
2 a 5 b e 2 a 3
c c d b e
19
REMOVAL OF A POINT
REMOVAL OF A LINE
ADDITION OF A LINE
20
Example:
u u u
v1 v v1 v v1 v
x1
G G – v1 G – x1 G+uv
Fig. 1.22
Theorem 1.4: The maximum number of lines among all p point graph with
𝑝2
no triangles is [ ] , where[𝑥] denotes the greatest integer not exceeding the
4
real number x.
Proof:
For p > 4, we prove by induction separately for odd p and for even p.
𝑝2
If q = 0, then 0 ≤ [ ].
4
Let q > 0.
21
Let u and v be a pair of adjacent points in G.
(2𝑛+1)2 4𝑛2+4𝑛+1
Lines of G1 is q(G1) ≤ [ ] = [ ]
4 4
= [𝑛2 + 𝑛 + 1] = 𝑛2 + 𝑛.
4
(iii). Line u v .
≤ 𝑛2 + 𝑛 + 2 n +2
= 𝑛2 + 3𝑛 + 2
4𝑛 2 +12𝑛 +8
=
4
4𝑛 2 +12𝑛 +9−1
=
4
22
(2𝑛+3)2 1
= -
4 4
(2𝑛+3)2
=[ ]
4
𝑝2
i.e. q (G) ≤ [ ], where p = 2 n + 3.
4
Also for p = 2 n + 3, the graph K n +1, k +2 has no triangles and the number
of lines is q = ( n +1)(n +2)
= 𝑛2 + 3𝑛 + 2
4𝑛 2 +12𝑛 +8
=
4
(2𝑛+3)2
=[ ]
4
𝑝2
= [ ].
4
Let q > 0.
23
Let u and v be a pair of adjacent points in G.
(2𝑛)2 4𝑛2
Lines of G1 is q(G1) ≤ [ ] = [ ] = 𝑛2
4 4
(iii). Line u v .
≤ 𝑛2 + 2 n +1
= 𝑛2 + 2𝑛 + 1
4𝑛 2 +8𝑛 +4
=
4
(2𝑛+2)2
=
4
(2𝑛+2)2
=[ ]
4
24
𝑝2
i.e. q (G) ≤ [ ], where p = 2 n + 2.
4
= 𝑛2 + 2𝑛 + 1
4𝑛 2 +8𝑛 +4
=
4
(2𝑛+2)2
=[ ]
4
𝑝2
= [ ].
4
𝑝2
Thus, for p = 2 n + 2, K n +1, k +1 is a (p , [ ]) graph without triangles.
4
𝑝2
∴ q attained its maximum [ ].
4
1.4 ISOMORPHISM
Definition: Two groups G1 = ( V1, X1) and G2 = ( V2, X2) are said to be
isomorphic if there exists a bijection f :V1 → V2 such that u, v ∈ V1 are
adjacent in G1 if and only if f(u) , f(v) ∈ V2 are adjacent in G2.
25
G1 G2
u4 u3 v3
v4
u1 u2 v1 v2
Fig. 1. 23
G1 G2
u4 v5
u5 u3 v3 v2
u1 u2 v1 v4
Fig.1. 24
i.e. f (ui )= vi is an isomorphism between two groups G1 and G2 for i =1, 2,...,5
Proof:
26
∴ a point u ∈ V1 is adjacent to v in G1 if and only if f(u) is adjacent to
f(v) in G2.
Also, f is a bijection.
Remark:
1). Two isomorphic group have the same number of points and the same
number of lines.
i.e. If the degrees of the vertices of two graphs are equal then the
two graphs need not be isomorphic.
Example:
u6 v5
u1 u2 u3 u4 u5 v1 v2 v4 v3 v6
G1 Fig. 1.25 G2
27
AUTOMORPHISM
Remark:
COMPLEMENT
Example:
The graphs given in Fig. 1.26 and Fig. 2.27 are self complementary graphs.
u4 u3 v1 v2
u1 u2 v3 v4
G 𝐺̅
Fig. 1.26
28
u4 v5
u5 u3 v3 v2
u1 u2 v1 v4
G 𝐺̅
Fig. 1. 27
ULAM’S CONJECTURE
Let G and H be two graphs with p points where p > 2 . Let v1, v2, ... ,vp
be the points of G and w1, w2, ..., wp be the points of H. If for each i the
subgraphs Gi = G – vi and H i = H – wi are isomorphic then the graphs G
and H are isomorphic.
SOLVED PROBLEMS:
Problem 1: Prove that any self complementary graphs has 4 n or 4n + 1
points.
Solution:
Let G be a complementary graph with p points.
∴ G ≅ 𝐺̅ .
⟹ |𝑋(𝐺̅)| = |𝑋(𝐺̅)| .
𝑝 (𝑝−1)
= (2) = 2
.
𝑝(𝑝−1)
i.e. 2 |(𝐺̅)| = .
2
29
(𝑝−1)
⟹ |𝑋(𝐺̅)| = is an integer.
4
i.e. p or (p – 1) is a multiple of 4.
⟹ p=4n or p – 1 = 4 n.
i.e. p = 4 n or p = 4 n + 1.
Solution:
Let u , v ∊ V(G).
since f is an automorphism of G.
∴ f : 𝐺̅ → 𝐺̅ is an automorphism.
∴ f ∊ Γ(𝐺̅).
30
Similarly, we can prove that Γ (𝐺̅) ⊆ Γ(G).
∴ Γ(G) = Γ(𝐺̅).
Exercises:
Fig. 1.28
Consider the following puzzle. In any set of six points there will
always be either a subset of three who are mutually acquainted, or a
subset of three who are mutually strangers. This situation may be
represented by a graph G with six points representing the six people in
which adjacency indicates acquaintances. The above puzzle asserts that G
contains three mutually adjacent points or three mutually non – adjacent
points. That is G or 𝐺̅ contains a triangle.
Theorem 1.6: For any graph G with 6 points, G and 𝐺̅ contains a triangle.
Proof:
31
Let v be a point of G.
Note: The above theorem is not true for graphs with less than six points.
RAMSEY NUMBER:
Ramsey number is the least positive integer r (m, n) such that for any
group G with r (m, n) points , G contains Km or 𝐾𝑛.
Example: r (3, 3) = 6
SOLVED PROBLEMS:
Solution:
Let r (m, n) = s.
32
G contains 𝐾𝑚. or Kn .
i.e. G contains Kn or 𝐾𝑚 .
Solution:
r (2, 2) = 2.
Exercises:
1. Prove by suitable example that the theorem 1.6 is not true for graphs
with less than 6 points.
2. Find r (1, 1) .
33
3. Find r (2, 3).
4. Find r (2, k) for any positive integer k .
INDEPENDENCE SET
v4
v5 v3
v1 v2
Fig. 1.29
α = │S1│ = 3.
34
VERTEX COVERING
β = │ K2│ = 2
Proof:
35
│S│ = α and │K│ = β.
i.e. β ≤ p - α
│V – K│ ≤ │S│.
i. e. p – β ≤ α
i. e. p ≤ α + β ..................................... (2)
LINE COVERING
36
Example: Consider the graph of Fig.1. 30.
x4 x3
x6 x9
x5 x7 x8 x2
x1
Fig.1.30
α1 = │L1│= │L3│= 3.
β1 = │K1│= │K2│= 3.
GALLIA’S THEOREM
Solution:
37
│S│ = α1.
Let M be a set of lines, one incident line for each of the p - 2 α1 points
of G not covered by any line of S.
│S U M│ ≥ β1
i.e. α1 + p - 2 α1 ≥ β1
i.e. p ≥ α1 + β1 .....................................(1).
│T│ = β 1.
T cannot have a line x , both of whose ends are also incident with lines
of T other than x.
Hence each line of T is incident with at least one end point of G [T].
│W│ = │T│ = β 1
By choosing one line from each star, we get a set of independent lines.
38
i.e. p ≤ β 1 + α1 ......................................................... (3)
SOLVED PROBLEMS:
Solution:
K2
v1 x1 v2 α = 1, β = 1
α1 = 1, β1 = 1
v3
x3 x2 α = 1, β = 2
v1 x1 v2 α1 = 1, β1 = 2
v4 x3 v3 α = 1, β =3
x4 x5 x6 x2 α1 = 2, β1 = 2
v1 x1 v2
v4
x4 x6 x7 x3 α = 1, β = 4
v5 x8 v3 α1 = 2, β1 = 3
x5 x9 x10 x2
v1 x1 v2
39
v5 v4
v6 v3 α = 1, β = 5
α1 = 3, β1 = 3
v1 v2
Fig.1.31
α = 1, β = p – 1
𝑝
1 2
𝑖𝑓 𝑝 𝑖𝑠 𝑒𝑣𝑒𝑛
α = { 𝑝−1 and β1 = p - α1.
2
𝑖𝑓 𝑝 𝑖𝑠 𝑜𝑑𝑑
x4
x5 x3 x2
x1
Fig.1.32
Exercises:
40
2. Prove or disprove. Every covering of a graph contains a minimum
covering.
3. Prove or disprove. Every independent set of lines is contained in a
maximum independent set of lines.
Unit II
Intersection graphs and line graphs – matrices – operations in graphs – degree
sequences, graphicsequences.
INTERSECTION GRAPHS
Example:
Let S = { a, b, c } and
𝛀 (F)
A B
C D
Fig.2.1
41
Theorem 2.1: Every graph is an intersection graph.
Proof:
Let S = V U X.
⇒ vi vj ∊ Si ∩ Sj
⇒ Si ∩ Sj ≠ φ
⇒ Si ∩ Sj ≠ φ
⇒ vi is adjacent to vj in G .
42
G ≅ Ω (F).
LINE GRAPH
w x1 x2
x2
u x1 v x3 x4 x3
x4
x
G L(G)
Fig.2.2
Proof:
Let G be a (p , q) graph.
43
L(G) has q points.
But, Any two of the di lines incident with vi are adjacent in L(G).
𝑑𝑖 (𝑑𝑖−1)
lines in L(G) .
2
𝑝 𝑑𝑖 (𝑑𝑖−1)
Hence, q L = ∑𝑖=1
2
1
= (∑𝑝 𝑑2) - 1 (∑𝑝 𝑑 )
2 𝑖=1 𝑖 2 𝑖=1 𝑖
= 1
(∑𝑝 𝑑2) - q
2 𝑖=1 𝑖
MATRICES
ADJACENCY MATRIX
Definition: Let G = (V, X) be a (p, q) graph. Let V = {v1, v2, …,v p}. The p x p
matrix A = (a i j) where
a ij = 1 , if vi is adjacent to v j
0 , otherwise
44
Example: The adjacency matrix of the graph G given in Fig. 1.35 is shown
below:
v1 G
x1 x4
v2 x5 v3 x6 v4
x2 x3
v5 Fig. 1.35
Adjacency Matrix
v1 v2 v3 v4 v5
v1 0 1 0 1 0
v2 1 0 1 0 1
v3 0 1 0 1 0
v4 1 0 1 0 1
v5 0 1 0 1 0
Remark:
INCIDENCE MATRIX
Definition: Let G = (V, X) be a (p, q) graph. Let V = {v1, v2, …,v p} and
45
b ij = 1 , if vi is adjacent with x j
0 , otherwise
Example: The incidence matrix of the graph G given in Fig. 1.35 is shown
below:
Incidence matrix
x1 x2 x3 x4 x5 x6
v1 1 0 0 1 0 0
v2 1 1 0 0 1 0
B= v3 0 0 0 0 1 1
v4 0 0 1 1 0 1
v5 0 1 1 0 0 0
Remark:
Exercises:
1. Write the adjacency and incidence matrix for the graph G given in
Fig.1.34.
2. Relabel the points of the graphs given in Fig. 1.30 and Fig. 1.32 and
write the incidence and adjacency matrices for the relabeled graph.
46
OPERATIONS ON GRAPHS
Definition:
Let G1 = (V1, X1) and G2 = (V2, X2) be two graphs with V1 ∩ V2 = φ . Then
X= X1 U X2.
(ii). The sum G1 + G2 as G1U G2 together with all the lines joining points of
V1 to points of V2.
(iii). The product G1 G2 is the graph having vertex set V = V1 V2 and
(iv). The composition G1[G2] is the graph having vertex set V1V2 and
Example:
G1 G2 (G1 U G2) G1 + G2
v1 v1 v1
u1 v2 u1 v2 u1 v2
u2 v3 u2 v3 u2 v3
G1 x G2 G1 [G2]
47
(u2, v1) (u2, v2) (u2, v3) (u2, v1) (u2, v2) (u2, v3)
(u1, v1) (u1, v2) (u1, v3) (u1, v1) (u1, v2) (u1, v3)
Fig. 2.3
Note: 𝐾𝑚 + 𝐾𝑛 = 𝐾𝑚 ,𝑛 .
Theorem 2.3: Let G1 be a (p1, q1) graph and G2 be a (p2, q2) graph.
Proof:
and X= X1 U X2.
48
= q1 + q2 + p1 p2.
G1 + G2 is a ( p1 + p2 , q1 + q2 + p1 p2) graph.
Also we know that, the points (u1, u2) and (v1, v2) are adjacent if u1 = v1
and u2 is adjacent to v2 in G2 or u1 is adjacent to v1 in G1 and u2 = v2.
= 1 [𝑝 2𝑞 + 𝑝 2𝑞 ]
2 2 1 1 2
= p2 q1+ p1 q2
Also, we know that, the points (u1, u2) and (v1, v2) are adjacent in G1[G2]
49
= p2deg u1 + deg u2
= 1 [𝑝22𝑞 + 𝑝 2 ]
2 2 1 1 2
= 𝑝22 q1+ p1 q2
Exercises:
1. What is Km + Kn ?
2. Express K4 – x in terms of K2 and 𝐾
2 .
DEGREE SEQUENCES
50
⇒ q ≥ 7.5
Solution:
Connectivity = min { m , n}
= min { m , n}
δ = min { m , n}
= = δ.
Unit IV
EULERIAN GRAPHS
Example:
87
Theorem 4.1: If G is a graph in which the degree of every vertex is atleast
two then G contains a cycle.
Proof:
Choose a vertex v.
always guaranteed.
Then v i , v i + 1 , . . . , v k is a cycle.
v4
v v1
v3 v2 Fig. 4.3
Euler’s problem:
88
Theorem 4.2: The following statements are equivalent for a connected
graph G.
(1). G is Eulerian.
Proof:
and terminus , two of the edges incident with v are accounted for.
for every v ≠ u.
for in pairs.
89
which again every vertex has even degree.
If G1 has no edges then all the lines of G form one cycle and
since it is connected.
lines of G.
90
Corollary 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 trials.
Proof:
any order.
Proof:
91
Note: Corollary 2 answers the following question:
“ Which diagram can be drawn without lifting one‟s pen from the
paper not covering any line segment more than once ? ”.
The following theorem due to Ore ( 1951) tells just when a given
graph is arbitrarily traversable from a chosen point.
Fleury’s Algorithm :
Step – 1:
Step – 2:
92
(ii).Unless there is no alternative, e i + 1 is not a bridge of G -{e1, e2,...,e i}.
Step – 3:
HAMILTONIAN GRAPHS
Fig. 4.4
93
Definition: A block with two non adjacent vertices of degree 3 and all
other vertices of degree 2 is called a theta graph.
Example:
The graphs given in the Fig. 4.5 and Fig. 4.6 are theta graphs.
Note:
Proof:
G – v is connected.
Thus G is 2 – connected.
94
Theorem 4.5: If G is Hamiltonian then for every non – empty proper subset
S of V(G), 𝜔 ( G – S) ≤ │S│ where 𝜔 (H) denotes the number of components
in any graph H.
Proof:
Clearly 𝜔 (Z – S) ≤ │S│
𝜔 (G – S) ≤ 𝜔 (Z – S)
≤ │S│.
Hence 𝜔 (G – S) ≤ │S│.
Example:
K m, n is Hamiltonian if m = n.
Note :
1) The above theorem is useful in showing that some graphs are non
Hamiltonian.
2) The converse of the above theorem is not true. For example,
the Peterson graph (Ref. Fig. 1.4) satisfies the conditions of the
theorem but is non Hamiltonian.
95
Theorem 4.6: [Dirac Theorem , 1952] (Sufficient condition for a graphG
to be Hamiltonian).
Proof:
Then G + u v is Hamiltonian.
v = v p.
of G.
Clearly vp ∉ S U T
To prove S ∩ T = φ
96
Suppose S ∩ T ≠ φ. Then there exists at least one vertex vi ∊ S ∩ T.
uvi +1 ∊ E and vi v ∊ E
v1 v2 . . . . vi v i+1 . . . . . . v p-1 v p
Fig. 4.6
S∩T = φ ⇒│S∩T│= 0.
Hence G is Hamiltonian.
Proof:
97
Assume that G is Hamiltonian.
G + u v is Hamiltonian.
Let S = {v I / u v i +1 ∊ E} and
G is Hamiltonian.
98
CLOSURE OF A GRAPH
Proof:
Let x1, x2, …, x m and y1, y2, …, y n be the sequences of edges added to
G in obtaining G1 and G2 respectively.
d H( u ) + d H( v ) ≥ p .
𝑑′ ( u ) ≥ d H( u ) and 𝑑′ ( v ) ≥ d H( v ) ,
≥p.
i.e. G1 = G2.
Proof:
100
Theorem 4.10: [Chavatal theorem , 1972]
d m > m or d p – m ≥ p – m.
𝑝
( i.e. there is no value of m < for which d m ≤ m or d p – m < p – m ).
2
Then G is Hamiltonian.
Proof:
d1 ≤ d2 ≤ . . . ≤ d p and p ≥ 3.
To prove G is Hamiltonian.
Let 𝑑′ (u ) = m .
𝑑′ (u ) + 𝑑′ ( v ) < p .
101
𝑑′ (v ) < p – m .
We have 𝑑′ (u ) ≤ 𝑑′ ( v ) < p – m .
i.e. m < p – m .
i.e. m < 𝑝
2
Let S denote the set of vertices in V – {v} which are not adjacent to v
in c (G).
Let T denote the set of vertices in V – {u} which are not adjacent to u
in c (G).
i.e. │S│ ≥ m – 1
│S│> m
102
and d p – m < p – m.
c (G) is complete.
Hence G is Hamiltonian.
2 b e 5
c d
3 4
Fig. 4.7
Let us find all 1 – factors in G and show that they are from the
Hamiltonian cycle of G.
103
Case (1):
Clearly A is a 1 – factor of G.
Case (2):
If the 1 - factor contains 4- edges from A then the only line passing
through the remaining two points must also be included in the one –
factor .
Case (3):
If the 1 - factor contains just 3- edges from A then two choices can
be made.
Choice -1:
Let the 1 – factor contains the edges 1 a , 2 b and 3 c . Now, the sub
graph induced by the remaining 4 points is the path
d e
4 5
104
Choice -2:
c e 5
Case (4):
Choice -1:
Let the 1 – factor contain the edges 1 a and 2 b. Now, the sub graph
induced by the remaining 6 points gives the path
c e
d 5
3 4
105
Choice -2:
Let the 1 – factor contain the edges 1 a and 3 c. Now, the sub graph
induced by the remaining 6 points gives the path.
2 b e
d 5
Case (5):
b e
2 c d 5
3 4
i.e. b e 2 5
c d 3 4
106
Hence the 1 – factor is { 1 a, c e , b d, 23, 45}.
Now, G – B is
2 a 5
b e
c d
3 4
Case (6):
Suppose there exist a 1 – factor that does not contain any edge from A.
It can contain at most 2 –edges from the cycle 123451 and at most 2 -
G is non Hamiltonian.
Exercises:
107
Unit V
TREES
Characterisation of trees- center of tree- planarity – definition and properties –
characterization of planar graphs- thickness, crossing and outer planarity.
Definition:
Note:
Example:
Fig. 5.1
CHARACTERISATION OF TREES
1. G is a tree.
2. Every two points of G are joined by a unique path.
3. G is connected and p = q + 1.
4. G is a cyclic and p = q + 1.
108
Proof:
P1 : u = v0 , v1 , . . . , v n = v and
P2 : u = w0 , w1 , . . . , w m = v .
Let i be the least positive integer such that 1 ≤ i < m and w i ∉ P1.
w i – 1 ∊ P1 ∩ P2.
Let j be the least positive integer such that i < j ≤ m and w j ∊ P1.
Clearly, G is connected.
109
To prove: p = q + 1.
When p = 1 or p = 2 ; q=0 or q = 1
Assume the result for all graphs with less than p points.
Then p1 + p2 = p and q1 + q2 = q – 1.
Now, p = p1 + p2
= q1 + q2 + 2.
= q–1+2
= q + 1.
110
Assume that G is connected and p = q + 1.
q ≥ (p – n) + n
⇒ q ≥ p
This is a contradiction to p = q + 1.
111
p i = q i + 1 for i = 1 , 2, . . . , k , where G i is a (p i , q i) graph.
∑ 𝑘𝑖=1 𝑝𝑖 = ∑ 𝑘𝑖=1 𝑞𝑖 + 1 .
⇒ p = q + k ≥ q + 2 , since k ≥ 2.
This is a contradiction to p = q + 1.
G is connected.
Hence G is a tree.
Corollary: Every non – trivial tree G has at least two vertices of degree 1.
Proof:
Also G is a tree.
p = q + 1,
Now, ∑ d (v) = 2 q = 2( p – 1) = 2 p – 2.
Proof:
x is a bridge of T.
112
We know that, “ A line x of a connected graph G is a bridge iff x is
T is acyclic.
Further, T is connected.
T is a tree .
Proof:
Hence q ≥ p – 1.
cycle .
Proof:
113
We have T is acyclic.
CENTRE OF A TREE
v4 v6
v5
v3
v2
v1
Fig. 5.2
The eccentricity
e (v 1) = 4 ; e (v 4) = 3
114
e (v 2) = 3 ; e (v 5) = 3
e (v 3) = 2 ; e (v 6) = 4
=2
= v 3.
Theorem 5.4: Every tree has a centre consisting of either one point or
two adjacent points.
Proof:
Then T has at least two end points and the maximum distance
end point.
vertex in T.
115
Hence we obtain a tree which is either K1 or K2.
points
Exercises:
Definition:
Examples:
116
Fig. 5.2
(2). K 2 , 3 is a plane graph or planar graph.
Fig.5.3
(3). The graph given in Fig. 5.4 (a) is planar even though it is not
plane.
v4 v4
v5 v3 v5 v3
v1 v2 v1 v2
Proof:
Out of these 10 edges , 5 edges form a cycle v1, v2, v3, v4, v5 , v1.
This cycle divides the plane into two regions namely the interior
117
the exterior.
Now the edge v2 v5 remains which cannot be drawn without cross over.
Each plane graph has exactly one unbounded face and it is called the
exterior face. The interior faces are bounded by cycles.
Proof:
Q P
S P1
Q1
Fig5.5
a plane . Let S be the point of contact of the sphere with the plane.
118
Draw a normal to the plane and the normal intersects the surface of the
sphere at N.
Assume that the sphere is placed in such a way that the point N is
For each point P on the surface of the sphere draw the line NP and
it meets the plane at P1.
of G.
119
Now, │V│-│E│+ │F│= 1 – 0 +1 = 2
Assume the result for all connected plane graphs with < │E│
edges.
= │E│+1 -│E│+ 1
=2
= R. H. S.
Also, │𝑉′ │ = │V│, │𝐸1│ = │E│ - 1 < │E│ and │𝐹1│ = │F│ - 1.
Hence by the induction principle, the result is true for all connected
plane graphs.
120
Corollary 1: If G is a plane (p, q) graph with a r faces and k
components then p - q + r = k +1.
Proof:
p i - q i + r i = 2.
p - q + r + (k – 1) = 2k
i.e. p - q + r = k + 1.
𝑛(𝑝−2)
n cycle then q = .
𝑛−2
Proof:
Then 2 q = ∑𝑖=1
𝑟 ( number of edges in the boundary of the face f i).
121
= ∑ 𝑟𝑖=1 𝑛 , since each face is an n - cycle
=nr
2
⇒r= .
𝑛
By Euler‟s theorem,
p - q + r = 2.
2𝑞
i. e. p - q + = 2.
𝑛
2
⇒ q ( - 1) =2 - p
𝑛
(𝑝−2)
⇒ q = .
𝑛−2
then q ≥ 3𝑟 and q ≤ 3 p - 6.
2
Proof:
Then q = p - 1 and r = 1.
p = q + 1 and r = 1.
p≥3⇒ q +1≥3
⇒q ≥ 2 >3
2
q ≥ 3𝑟
2
122
Also, p ≥ 3 ⇒ 2p ≥ 6
i.e. 2p + p ≥ 6 + p
⇒ 3p – 6 ≥ p > p – 1
i.e. 3p – 6 ≥ q
i.e. q ≤ 3p – 6.
We know that, “ Each edge lies on the boundary of at most two faces”.
2 q ≥ ∑𝑖=1
𝑟 ( number of edges in the boundary of the face f i).
= 3r
i.e. q ≥ 3𝑟.
2
By Euler‟s formula, p - q + r = 2
i.e. r = 2 + q – p.
We have q ≥ 3𝑟
2
3( 2+𝑞−𝑝)
q≥
2
i.e. 2q ≥ 6 + 3q – 3p .
i.e. 3p - 6 ≥ q
123
⇒ q ≤ 3p – 6.
Hence 3𝑟 ≤ q ≤ 3p – 6.
2
and p ≥ 3 then q ≤ 2p - 4.
p ≥ 3.
Then q = p – 1.
To prove q ≤ 2p - 4.
We have p ≥ 3 ⇒ p + p ≥ 3 + p
⇒ 2p ≥ 3 + q + 1
⇒ q ≤ 2p - 4.
The boundary of each force has at least four edges. Also each
edge lies on at most 2 faces.
124
2 q ≥ ∑𝑟𝑖=1 ( number of edges in the boundary of the face f i).
= ∑ 𝑟𝑖=1 4
= 4r
i.e. 2q ≥ 4r.
By Euler‟s formula, p - q + r = 2
i.e. r = 2 + q – p.
2q ≥ 4(2 + q – p).
⇒ q ≤ 2p - 4.
Proof:
We know that,
Here, 3 p – 6 = 3 x 5 – 6 = 9
i.e. 10 ≰ 9
125
We also know that “ If G is a plane connected ( p, q) graph without
triangle p ≥ 3 then q ≤ 2p - 4”.
Here 2p - 4 = 2 x 6 – 4 = 8
9 ≰ 8 ⇒ q ≰ 2p - 4 .
Proof:
By corollary 3, q ≤ 3 p - 6
2 q ≤ 6 p - 12
Also G is connected.
d i ≥ 1 , ∀ i.
𝑝
∑𝑖=1 𝑑𝑖 ≥ 6 + 6 + . . . + (p -2) + 1 +1
= 6 ( p – 2) + 2
= 6 p – 10
i.e. ∑𝑝𝑖=1 𝑑𝑖 ≥ 6 p – 10
126
Hence G has at least three points of degree < 6.
Theorem 5.8: Every polyhedron has at least two faces with the
same number of edges on the boundary.
Proof:
i.e. ≥ 3
δ ≥ 3 , [ Since ≤ ≤ δ ]
To prove that there exists at least two faces with the same number of
boundary edges.
∑𝑚−1( e i +1 - e i) ≥ ∑𝑚−1 1 = m – 1.
𝑖=1 𝑖=1
= e m - e1
i.e. e m - e1 ≥ m – 1.
127
i. e. e m ≥ (m – 1) + e1
i.e. e m ≥ m + 2 , [ since e1 ≥ 3 ]
Hence there exists at least two faces with the same number of
boundary edges.
(2). A disconnect graph is planar iff each of its components are planar.
Solved Problem:
Problem 1: If a (p1, q1) graph and a ( p2, q2) graph are homeomorphic
then p1 + q2 = p2 + q1.
Solution:
Assume that the graphs G1(p1, q1) and G2(p2, q2) are homeomorphic.
128
Then G1 and G2 can be got from a (p, q) graph G by a series of
elementary subdivisions.
p1 = p + r , q1 = q + r ; p2 = p + s , q2 = q + s .
L. H. S. = p1 + q2 = p + r + q + s
= (p + s) + (q + r)
= p2 + q1
= R. H. S.
Note:
1). The above Kuratowski theorem gives the necessary and sufficient
condition for a graph to be planar.
129
Definition: A planar graph is called outer planar if it can be embedded
in the plane so that all its vertices lie on the same face. This face is
sphere.
130