Lecture 14 Graph-3
Lecture 14 Graph-3
Subgraphs:
EXAMPLE 1 at Page# 679
• In the simple graph shown in Figure.
A B
1) How many vertices are there? 6
Euler Path: does not exist (because exactly 2 vertices have not
odd degree).
Use this chart to see if a Euler path or circuit may be drawn
C
D
E
F
Answer
There are two odd vertices, A and F.
B
A
C
D
E
F
Has not Euler circuit , because all vertices have not even degree .
Which of the following have an Euler
circuit, an Euler path but not a Euler
circuit, or neither?
NO EP, BUT EC
1. 2. 3.
1. 2. 3.
G1 has an Euler circuit, for example, a, e, c, d, e, b, a. Bec: all vertices have even degree.
Neither of the graphs G2 or G3 has an Euler circuit , Bec: all vertices have not even degree.
G3 has an Euler path, namely, a, c, d, e, b, d, a, b. Bec: it has exact 2 vertices of odd degree.
G2 does not have an Euler path, Bec: it has 4 vertices of odd degree. (needs only has exact 2)
G1 has not Euler path, Bec: exact 2 vertices have not odd degree.
Example# 2 at Page# 694
4. 5. 6.
4. 5. 6.
G1 contains exactly two vertices of odd degree, namely, b and d. Hence, it has an Euler
path that must have b and d as its endpoints. One such Euler path is d, a, b, c, d, b.
Similarly,G2 has exactly two vertices of odd degree, namely, b and d. So it has an Euler
path that must have b and d as endpoints. One such Euler path is b, a, g, f, e, d, c, g, b, c,
f, d.
G3 has no Euler path because it has six vertices of odd degree. (not has exact 2 vertices
of odd degree)
Sir William Rowan Hamilton
Solution:
G1 Hamilton circuit: a, b, c, d, e, a.
G2 There is no Hamilton circuit, but G2 does have a Hamilton path, namely,
a, b, c, d.
G3 has neither a Hamilton circuit nor a Hamilton path, because any path
containing all vertices must contain one of the edges {a, b}, {e, f}, and
{c, d} more than once.
Examples
Hamiltonian circuit:
A, D, C, B, A
Hamiltonian
path: a, b, c, d, e
Trace a Hamiltonian path
The path does not need to go over every edge but it can only go over an edge once and
must pass through every vertex exactly once.
a, b, c, d, e, a is a Hamilton circuit
2. Does the graph have a Hamilton path? If so, find such a
path. If it does not, give an argument to show why no
such path exists.
a, b, c, f, d, e is a Hamilton path
3. Does the graph in Exercise 32 have a Hamilton
path? If so, find such a path. If it does not, give an
argument to show why no such path exists.
f, e, d, a, b, c is a Hamilton path.
Review:
Euler Graphs Passes over edge exactly once. May pass through a vertex more than once.
Hamiltonian
Passes through every vertex exactly once but not necessarily over every edge.
Graphs
1. VERTEX
2. DEGREE
3. COMPLETE GRAPH
4. CLOSE WALK
5. PARALLEL
Quiz Answer
Solution:
37