eulersgraph
eulersgraph
Theory:
Eulerian
Graph
Dr.D.Vijayalakshmi
Assistant Professor
Department of Mathematics
Sri Chandrasekharendra
Saraswathi Viswa Maha
Vidhyalaya
Lecture I
Unit IV
Eulerian and Hamiltonian Graphs
Graph Theory
IV Semester
II B.Sc Mathematics
Eulerian Graph - Outline
Aim
Learning Outcome
Prerequisites
Preliminaries
Konigsberg Bridge Problem
Definitions
Euler’s Theorem
Fleury’s Algorithm
Aim
V={a,b,c,d}
E={{a,b},{a,c},{b,c},{c,d}}
b c d
Preliminaries
V={a,b,c,d}
E={{a,b},{a,c},{b,c},{c,d}}
b c d
Preliminaries
a
e.g.
a,b,c,d is a path
a,b,c,a is a circuit.
b c d
Preliminaries
G1 G2
b c d
Connected Disconnected
..
In the early 1700s, the city of Konigsberg was the capital of East Prussia.
The river Pregel ran through the city in two branches with an island
between the branches (see figure on next slide).
There were seven bridges joining various parts of the city. The following
problem was well known. Is it possible for a citizen of Konigsberg to take
a stroll through the city, crossing each bridge exactly once, and beginning
..
and ending at the same place?
The Seven Bridges of
Königsberg
Question: Is it possible to start at some location in
town, travel across all seven bridges without crossing
any bridge twice, and return to the same starting
point?
Graph of the Map
c d e
D
Solution for Koingsberg
problem
Definitions
D E
D
The graph has many Euler The graph has an Euler path
circuits, each of which is also but it does not have an Euler
an Euler path. This graph has circuit. One Euler path is E, C,
no odd vertices. One example B, E, D, B, A, D. Each path
is A, D, B, C, D, B, A. must begin or end at vertex D
or E.
Example: Recognizing Euler Circuits
F D
A C
B
Example: Recognizing Euler Circuits
Solution
a) No, it does not use edge BD.
b) Yes, the circuit
ABCDEFDBFA
is an Euler circuit.
E
F D
A C
B
Euler’s Theorem
A D E G
Solution
Yes, because the graph is connected and each vertex
has even degree.
Fleury’s Algorithm
Step 1:
Start at any vertex. Go along any edge from this
vertex to another vertex. Remove this edge from the
graph.
Step 2:
You are now on a vertex on the revised graph.
Choose any edge from this vertex, but not a cut
edge, unless you have no other option. Go along
your chosen edge. Remove this edge from the
graph.
Fleury’s Algorithm
Step 3:
Repeat Step 2 until you have used all the edges and
gotten back to the vertex at which you started.
Example: Using Fleury’s Algorithm
A D E
Solution
B C
Remove F
BC
A D E
Example: Using Fleury’s Algorithm
Solution (continued)
B C
F
Remove
CF
A D E
B C
F
Remove
FD
A D E
Example: Using Fleury’s Algorithm
Solution (continued)
B C
F
Remove
DE
A D E
Solution (continued)
The complete Euler circuit is
B C F D E C D A B.
References