Graph Theory - Introduction
Graph Theory - Introduction
An Introduction to Graph
Theory
Directed graph
loop
G=(V,E)
isolated vertex
multiple
edges
adjacent
simple graph: an undirected graph without loop or multiple edges
degree of a vertex: number of edges connected
(indegree, outdegree)
For simple graphs, deg(v i ) 2 | E |
vi V
d
c
length: number of edges in
this (path,trail,walk)
closed if x=y
closed trail: circuit (a-b-c-d-b-e-d-a,
one draw without lifting pen)
closed path: cycle (a-b-c-d-a)
d
c
e
disconnected with
two components
d
c
Def. 11.6
multigraphs
multigraph of multiplicity 3
a
e
b
d
c
d
d
c
spanning subgraph
V1=V
c
induced subgraph
include all edges
of E in V1
b
Def. 11.12 complement of a graph
a
G
G
e
a
e
d
c
K5
d
c
b c d
K3 or K3.
a
b c d
K3 or K3.
1
3
3 2 1 4
1
4
Y
R
B B W Y
Y (2)
4
2
W
W R B Y
W (4)
B 3
2
Each edge corresponds
to a pair of opposite faces.
R
R B Y B
W (3)
2
Y 1
(1)
B
R Y
4
Y 2
Y
W
(2)
B
W
B R
W
(3)
R
YB
(4)
W
Y
b
c
w
3
4
d
Def. 11.13 Let G1 (V1 , E1 ) and G 2 (V 2 , E 2 ) be two
undirected graphs. A function f : V1 V 2 is called a graph
isomorphism if (a) f is one - to - one and onto and (b) for
all a , b V1 , ( a , b ) E1 if and only if ( f ( a ), f ( b )) E 2 .
When such a function exists, G1 and G 2 are called
isomorphic graohs.
w
y z
j
i
f
g
c
t
d
u
a-q c-u e-r g-x i-z b-v d-y f-w h-t j-s, isomorphic
Ex. 11.9
degree 2
vertices=3
degree 2 vertices=2
Can you think of an algorithm for testing isomorphism?
possible (K5)
with 15 edges?
2|E|=4|V|=30
not possible
area d
area c
a
b
d
c
d
c
v
connected and even degree
Euler circuit
by induction on the number of edges.
e=1 or 2
add an edge
K4
K5
w
u
v
w
G1 and G2 are called homeomorphic if they are isomorphic
or if they can both be obtained from the same loop-free
undirected graph H by a sequence of elementary subdivisions.
a
b a
b a
b a
e
b
d
K4
R1
R2
R3
R4
number
of edges
number
of regions
v=1
r=1
e=0
v=1
r=2
e=1
v=2
r=1
e=1
Assume that the result is true for any connected planar graph or
multigraph with e edges, where 0 e k
Now for G=(V,E) with |E|=k+1 edges, let H=G-(a,b) for a,b in V.
Since H has k edges, v H e H rH 2
And, v G v H , e G e H 1.
Now consider the situation about regions.
case 1: H is connected
b
b
a(=b)
a(=b)
v G e G rG v H ( e H 1) ( rH 1) v H e H rH 2
a H1
b H2
b H2
H1 a
b
v H1 v H2 v G , e H1 e H2 e G 1, rH1 rH2 rG 1.
And by the induction hypothesis, v H1 e H1 rH1 2 ,
v H2 e H2 rH2 2 . Therefore, v G e G rG ( v H1 v H2 )
( e H1 e H2 1) ( rH1 rH2 1) ( v H1 e H1 rH1 )
( v H2 e H2 rH2 ) 2 2 2 2 2
a
i 1
i 5
deg( Ri ) 18 deg( Ri ) 2 9 2 | E |
a
2
5
e
g
c
4
4
6
e
d
a
c
a bridge
cut-sets: {(a,b),(a,c)},
{(b,d),(c,d)},{(d,f)},...
h
c
f
i
x
x
y
y
x
y
3
2
4
6
1,2,3,4,5,6,...,17,1
17 2
16
1
4
17
16
1
4
17
16
14
6
6
1,3,5,2,7,4,...,17,14,16,1 1,5,7,3,9,2,...,16,12,14,1
v1
v2
...vm
case 2.
v1
v2
...vk
case 3.
v1
v2
...vm
vk+1
...vm
y
n1 vertices
n2 vertices
deg( x ) deg( y ) ( n1 1) ( n2 1) n1 n2 2 n1 n2 1
a contradiction
v1 or vm
v1
v2
v2
v3 ...vt-1
...
vm
v3
vt
...
v2
v3
...
vm
vm
b(=v2)
v3
...
vn
n
for all vertices, then the graph has a
2
2
n and G has a Hamilton cycle.
2
2
b
B
c
Y
d
R
G
Re
B
f
a
b
c
d
e
G
G'e
P(G'e,)
P(G,)
P(Ge,)
P(G,)=(-1)3-(-1)(-2)=4-43+62-3
Since P(G,1)=0 while P(G,2)=2>0, we know that (G)=2.
Ex. 11.34
e
=
P(G,)=(4)-2(4)= (-1)(-2)2(-3)
-2
(G)=4