Lecture 3
Lecture 3
• The complement G′ of G is defined as a simple graph with the same vertex set
as G and two vertices u and v are adjacent only when they are not adjacent in
G.
Problem: If a simple graph with n-vertices is isomorphic with its complement, how
many vertices will that have ?
Solution: Let q be the number of edges of G and q be the number of edges in the
complement G , then
p( p − 1)
q + q =
2
If G is a self-complementary graph, then q = q
p( p − 1) p( p − 1)
2q = q=
2 4
Hence, in a self-complementary graph p or p − 1 must be divisible by 4.
** from the above problem we get that, there exist no self-complementary graph of
order 2, 3, 6, 7, 10, 11, …
❖ Ramsey Theory
(Given a group of six people we can always find either three who all know
each other or three who don’t know each other)
Proof: Let v be any vertex of a graph G with six vertices. Since v is adjacent either
in G or in G to the other five vertices of G.
Assume that, without loss of generality v is adjacent to three vertices u1, u2, u3 in G.
If any two of these vertices of u1, u2 and u3 are adjacent in G, then they are two
vertices of a triangle whose third vertex is v.
If no two of them are adjacent in G, then u1, u2 and u3 are the vertices of a
triangle in G .
Problem: How many edges can a simple graph with n vertices have without
containing a triangle?
Solution: If the order of the graph is even , then the complete bipartite graph K n , n
2 2
n2
is a graph with no triangle and has edges. For n is odd number the complete
4
n2 − 1
bipartite graph K n+1 , n−1 has edges.
2 2 4
n2
edges.
4
Problem: What is the maximum number of edges out of all graph of order 8 without
containing triangles? Construct such a graph.
n 2 82 64
q (G ) = = = = 16 edges.
4 4 4
❖ Basic Properties
• Walk
• Open walk
A walk is said to be an open walk if the starting and ending vertices are
different.
• Closed walk
A walk is said to be closed walk if the starting and ending vertices are
identical.
• Trial
A walk with no repeated edges is called trial.
• Circuit
A circuit is a closed walk that does not contain any repeated edges.
• Path
Is a trial in which neither vertices nor edges are repeated.
• Cycle
Is a circuit in which the vertices do not repeated.
A graph
v2 v1v3v4v1v5v7 is a v2 − v7 trial
• Geodesic
A shortest u −v path is called geodesic
• Connected graph
A graph G is said to be connected graph, if every pair of vertices of a graph G
is joined by a path. Otherwise G is disconnected.
• Eccentricity
The eccentricity e(v ) of a vertex v in a connected graph G is the maximum
distance from v to other vertices of G.
• Diameter
The diameter of a connected graph G is the maximum eccentricity e(v ) out of
all vertices v in G and it is denoted by diam(G ) .
diam(G ) = max{e(v), vG} .
• Radius
The radius of a connected graph G is the minimum eccentricity e(v ) out of all
vertices v in G and it is denoted by rad (G ) .
rad (G ) = min{e(v), vG} .
• Central vertex
A vertex v in a connected graph G is called a central vertex, if the eccentricity
and radius are equal (if e(v) = rad (G ) ).
• Center of a graph
The center of a graph G is the set of all central vertices in G, it is denoted by
z (v ) .
A connected graph G
= min{4,5,6,7}
=4
A graph
- d H ( a , f ) = 3 , d H ( a , d ) = 3 , d H ( f , e) = 1 .
- gir ( H ) = 4 , length of the cycle cdefc .
- c( H ) = 7 , length of the cycle bcdeflkb .
Ex: if n 2 , then
( v, G ) = dG (u, v)
u G
( G) = (v, G) = dG (u, v)
vG vG u G
(G)
( G) = , where p is the order of the graph G.
p( p − 1)
Ex: Find the average distance of the connected graph G given in the next figure.
( v1 , G ) = 1 + 2 + 2 + 2 + 3 + 3 = 13
( v2 , G ) = 1 + 2 + 2 + 2 + 3 + 3 = 13
( v3 , G ) = 1 + 1 + 1 + 1 + 2 + 2 = 8
( v4 , G ) = 1 + 1 + 2 + 2 + 2 + 2 = 10
( v5 , G ) = 1 + 1 + 2 + 2 + 3 + 3 = 12
( v6 , G ) = 1 + 1 + 2 + 2 + 3 + 3 = 12
( v7 , G) = 1 + 1 + 2 + 2 + 2 + 2 = 10
7
( G) = (v, G) = (vi , G)
vG i =1
(G) 78 78 39
( G) = = = = .
p( p − 1) 7(7 − 1) 42 21
( vi , Pn ) = 1 + 2 + + (n − i) + 1 + 2 + + (i − 1) , for i = 1, 2, , n
(n − i )(n − i + 1) (i − 1)(i )
( vi , Pn ) = +
2 2
n 2 + n − 2ni − 2i + 2i 2
= .
2
n
Therefore, ( Pn ) = (vi , Pn )
i =1
n
n 2 + n − 2ni − 2i + 2i 2
= 2
i =1
−n2 − n + 2n
3
+ n2 + 2 n2 + n
= 3
2
−3n 2 − 3n + 2n3 + 3n 2 + n
=
6
2n3 − 2n 2n(n 2 − 1) n(n − 1)(n + 1)
= = =
6 6 3
n ( n −1)( n +1)
( Pn ) n +1
( Pn ) = = 3
= .
n(n − 1) n(n − 1) 3
1 − (Cn ) , 2 − (Kn ) , 3 − ( K m, n ) .