Euler I An Graphs
Euler I An Graphs
tape
The city
SERIE C
of Konigsburg exists as collection
figure
Is it
Q possible to start at some location
t
is
c
E bd
yb Trial bac
c
circuit act d b a
Def A graph is Eulerian if it has a closed
Exae
KIEN
Ga Ga
G
G has an Euler Circuit a e c d e b a
A
FEAT
BTI D
B
N
IF
Euler's approach Rough Idea
an Euler circuit
no
A graph is Eulerian if it has a closed trail containing
all edges
Let C Do er D er v2 Ott et Ut V0 is an
Euler circuit in G
Proof
by induction on m Note In this
Proof G may not be simple
If m 2 then G looks like oneof the following
distinct
cases
we get two based on the connectivity of H
Cased H is connected
C Voe V1 W ewa Vo
then
w2 Vo
C 00901 WiLlw
is an Euler Circuit in G
Casey H is disconnected
G x e et in
Cz Ho fi n
Akwa No they
wa do
C Vo ti WCCC
is an Euler circuit in G
So G Contains a cycle C
an Eater circuit of G
Corollary If a connected graph G contains exactly
two vertices of odd degree Ady then
ie Gk G Lei Ek where Go G
Stef
1 If there is no edge incident with UK in Gk
03 04
a
G G Vole
it
Ca 004,40
a Go G Ooh V24
is toy
Here 3 edges incident with V1 To Proceed
Uz 64
Uy01,61 Quo Vo
het Gp G E Cp and E Gp 1 0
ie There are vertices of Positive degree in Gp
Every Veeted of Gp has EVEN degree
of a closed trail
S VE V Gp degco o
Gp
H GTS Graph induced by vertices of S
then Up EV S because deggplup 0
Uk Ext f
S V s
Choose
any starting vertex U and follow a
previous tour
Runnytime 0cm
o
Uo
Example
Us
K 4
Us
K 4
ol A q
Cl UoUz VIVO
LD Musume
ca
Algorithm
Algorithm
List all odd degree vertices say v1 Ual
List all Possible pairings of odd degree vertices
of G
fragments
gate ordering