1.7. Isomorphic Graphs: Example
1.7. Isomorphic Graphs: Example
Isomorphic Graphs
Example:
No. The left-hand graph has 5 edges; the right hand graph
has 6 edges.
WUCT121 Graphs 25
v1 v'1
v5
v' 4 v' 3
v2
v4
v3 v' 2 v' 5
G G′
WUCT121 Graphs 26
More formally:
f :V → V ′ g : E → E′
V V′ E E′
v1 v1′ e1 e1′
v2 v 2′ e2 e2′
v3 v3′ e3 e3′
v4 v4′ e4 e4′
v5 v5′ e5 e5′
WUCT121 Graphs 27
1.7.1. Definition
Notes:
WUCT121 Graphs 28
- the same number of parallel edges.
∗ Further,
WUCT121 Graphs 29
Exercises:
WUCT121 Graphs 30
Draw all possible graphs having 2 edges and 2 vertices;
that is, draw all non-isomorphic graphs having 2 edges and
2 vertices.
WUCT121 Graphs 31
1.8. Regular, Complete and Complete
Bipartite.
Exercises:
WUCT121 Graphs 32
Draw all 2-regular graphs with 2 vertices; 3 vertices; 4
vertices.
Notes:
WUCT121 Graphs 33
Example:
Draw K 5
v1
v5
v2
v4 v3
Exercises:
WUCT121 Graphs 34
Complete the following sentences:
graph.
WUCT121 Graphs 35
1.8.3. Definition: Bipartite.
A simple graph G = {V , E} is said to be bipartite if there
exists sets U ⊂ V and W ⊂ V , such that;
1. U ∪ W = V and U ∩W =
Notes:
WUCT121 Graphs 36
Example:
u1 u2
e2 e4
e1 e3
w1 w2 w3
Exercises:
o
u1 u2
e1 e2
w1 w2
WUCT121 Graphs 37
o
u1 w2
w1 u2
WUCT121 Graphs 38
1.8.4. Definition: Complete Bipartite.
A simple graph G = {V , E}, is said to be complete bipartite
if;
1. G is bipartite and
Notes:
∗ n( E ) = n × m
WUCT121 Graphs 39
Examples:
Draw K 2, 2 Draw K 2, 3
K 2, 2 K 2, 3
Exercises:
Draw K1, 3
Draw K 2, 4
WUCT121 Graphs 40
Which of these graphs are bipartite.
WUCT121 Graphs 41
1.9. Eulerian Graphs.
Problem 1:
If you are walking in the park, can you cross each bridge
exactly once?
Problem 2:
WUCT121 Graphs 42
Can you stroll around, crossing each bridge exactly once
and return to your starting point?
WUCT121 Graphs 43
Exercises:
o v2 :
o v1 :
o v3 :
o v7 :
WUCT121 Graphs 44
1.9.3. Definition: Eulerian Circuit
Let G = {V , E} be a graph. A circuit in G is an Eulerian
circuit if every edge of G is included exactly once in the
circuit.
Exercises:
K3 K4
v1 v1 v2
v 2 v3 v3 v4
v1
v5
v2
v4 v3 K 2, 3
K5
WUCT121 Graphs 45
Can you find an Eulerian path in the following graph
that is not an Eulerian circuit?
e1
v1 v2 e2
e6 e4 v3
v5 v4 e3
e5
WUCT121 Graphs 46
For the Koenisberg Bridge Problem:
Discussion:
WUCT121 Graphs 47
In the Koenisberg Bridge setup, is it possible to cross each
bridge exactly once without necessarily finishing where
you start? That is, is there an Eulerian path in K?
Example:
δ ( A) = 3 ; δ ( B ) = 5 ; δ (C ) = 3 ; δ ( D) = 3
WUCT121 Graphs 48