Professional Documents
Culture Documents
e3
e1
V1 ᴏ ᴏ V2
e2
V1e1V2 e3V3e4V3e5V4
V1e1V2 e3V3e5V4 e5V3e6V5 Path: no repeated edge
Simple path: no repeated vertex
V2V3V4V5V3V6V2 Close: start and end with same vertex
Circuit: no repeated edge
V2V3V4V5V6V2 Simple circuit: no repeated vertex
V2V3V4V5V6V3V2
V1
Def: let G be a graph. Two vertices V and W are connected, if a walk between V and W. the
graph G is called connected, if for any two vertices, a walk.
i.e. G connected V , W V (G ) a walk between V and W.
Ex: For the following G, determine the connectivity
ᴏV4
V2 ᴏ ᴏ
V3
ᴏV5
V1 ᴏ
V6 ᴏ
V2 and V3
V2 and V6
The graph G
Ex: determine the connectivity V4
V3
V1 and V3
G
A B V1 V2 V5
F ᴏH C
E D
B D
A F
C E
Def: Let G be a graph an Euler circuit for G is a circuit which contain all vertices and every
edge (only once).
i.e. Euler circuit
1- Circuit (close not repeated edge)
2- Use every vertex at least once
3- Use every edge exactly one time.
Ex: is it an Euler circuit?
ᴏV4
V2 ᴏ ᴏ
V3
ᴏV5
V1 ᴏ
V6 ᴏ
Ex: Konigsberg bridges problem.
Aᴏ
Dᴏ ᴏB
ᴏC
Theorem: If G is a graph having an Euler circuit, then every vertex is of even degree.
Ex: Does G have en Euler circuit? ᴏV 4
V2 ᴏ ᴏ
V3
ᴏV5
V1 ᴏ
V6 ᴏ
A B
Ex: Does G have en Euler circuit?
D C
Does every G contains even degree for all vertices an Euler circuit?
Theorem: If G is connected and the degrees of all vertices are even, then G ha san Euler
circuit.
i.e. Euler circuit G connected + deg(Vi) is even i.
A D E
B C J H F
K
Matrix representation of a graph
Def: Let G be a graph of n-vertices. The matrix adjacency of G (or adjacent matrix of G) is a
matrix A of size n×n whose entries ai j
ai j : is the number of edges connected vertices V and V
i j
ai j could be either 0 or positive integers.
Ex:
B F
I
A
K
C D H
A B C D F H I K
0
1
1
1
A
0
0
0
0
Ex: Let
1 2 0 1
2 0 0 1
A
1 1 1 0
1 2 0 1
1 2
A
2 1
1 2 1
A 2 1 3
1 2 1
Ex: Draw the identity matric I 33