Eulerian and Hamiltonian Note
Eulerian and Hamiltonian Note
Graphs.
4.1 Euler trail: An
open'trail in
contains all the edges of G.
a
graph G is called an Fuler trail il i
Euler Circuit: A circuit in a
all the graph G is called an Euler circuit if it contains
edges of G.
Ia graph CG contains
only one verlex v and no edge. we call the walk (v)
an Euler circuit.
e 2
e
VA
G
Fig 4.1.1
Then(v. e. V. e. V. C. V V, e, V eV,) is an
Euler circuit in G.
Example 4.1.2 Consider the following graph G :
e,
G
Fig 4.1.2
G has no Euler circuit. but it has an Euler trail. The open trail (v,,
C. V
CVC. V, e V. V,) is an Euler trail in G.
is Edge-traceablea p
called an
gr : A graph which has an Euler circuit or an Euer t
be
drawn with
edge-traceable graph. Such graph has the property
a
thal D il can
pencil withoui litting the Dencil from the paper and Wilhou
tracing any edge Lwice.
erian (or,
it has Euler) graph: A graph G is said tw be an Fuleriana"
an Euler
circuit.
graph given in 4.1.1 is Eulerian. A graph consisting ol ia singie
and no
edge is treated as Eulerian.
COrem 4.1.1 If a connccted graph G is Eulerian, then cvery vertex ol
IS ol even
degree.
roo:Let G he a connected Eulerian graph. Ir G
consists of only one
V and
Cx no
edge, then ldv) = 0 (even). If G contains only one vertex
d a linite number of loops al v, then dev) = even. since every loop conuid-
ules 2 to the
degree of v.
NOw, We assume that G contains more than one vertex. Since G is Eulerian,
l has
an, Euler circuit. say C=(v,,
e, V,. V V V,). Let u be a
rdilrary vertex of G. Then. u must be an end point of some edge since G is
Connected. Since C contains all the edges, u must belong to C. If u is the
starting vertex v, then it is also the terminating vertex vThe cdyes e and
together contribute 2 10 the degree of u. If u is an intermediate vertex ot C.
then for each appearance of u in C there are two new edges incident on u, one
Tor entering u and another for exiting from u since no edges in C are repeated.
These two cdges contribute 2 to the degree of u. Thus, d(u) is even. Since u
IS arbitrary, every vertex of G is of even degrec.
Theorem 4.1.2 If G is a connected graph and every verlex of Ci is ol even
degree. then G is luleran.
Baasis step : Let n=0. Since G is connecled and has no edge. G consists of
a single vertex. Hence. by delinition, G is Eulerian.
we assuie
thäl i
cte Hypothesis: Le n be a positive integerand S
vertex is of even degree.
k (<n) cdges in which every
g r a p h with
Eulerian.
each vertCx
a connected graph with n edges and
nduction step: Let G be G contains a Circut
is of deeree at least two.
O be even. Since each vertex
I:uler
all the cdgcs of G. it becomes an
(C. theoren 2.3.1). C sav. If C contains
C and
from G all the edgcs of
Circuit and so G is Eulerian. If not, we remove
not be connectcd.
but each of its compo-
0Dlain a subgraph G' of G. G'may the removal
contain fewcr than n edges. Now,
nents wil be connccted and will
reduces
of a vertex unchanged or
of the edges of C cither leaves the degree
of CG' vill be ol
lhe degree by two. llence, all the vertices ol cach componcnt
C
Fig 4.1.3
the Euler's theoret
2. 4.1.2 we have
Oe Combining
thcorems 4.1.I and if all the
ices
vertic
ds TollowS: "A connected graph G is Eulerian if and only
of G are of
even
degrce." graph
G
G the
ne
Eulerian
+Fleury's algorithm: To find an Euler circuit in
an
it from E, together
wilh
any
Step 3. After traversing each edge, remove
Remark 4.1.1 To find an Euler trail in a connectcd graph with exactly two
odd vertices we must begin the trail at an odd vertex and terminate it at the
other odd vertex.
Kónigsberg Bridge Problem : In the city of Konigsherg (renameu
Kaliningrad) in Russia two islands in the Pregel river were connected to cach
other and to the outer
river banks by seven bridges as shown in the tollowing
gure 4.1.4. The city people tried their best to take a walk crossing all the
bridges cxactly and return to the starting point. But
once
they failed. They
wanted to know whether such a walk
is possible.
A
Here A. D are the outer river banks and B. C are the islands. The problem
to start at sany of the land areas A. B. C or D. walk over each of the seven
bridges exactly once and return to the start1ng point This secmed to be ipos
Stble, but no one could explain why Swiss mathematieian Leonhard Euler
1707-'83) proved that such a walk is nposvible He converted the proble
a problem of graph theory and prcsented a soluton in a paper in 1736.
Euler's model for the problem was a graph w1th tour vertices and seven
cdges where the vertices represent the land arcas A. I!, C. D and the cdgese
, eprevent the seven brdges Then the contiguratton of the cty i
represented by the tollowng graph (i
G
Fig 4.1.5
NOW G IS conneeted and
n erossing a bridge coresponds to traveTsnE an
Cdge ol G: Then the
problem is reduced o
Since G has vertices of deterruinine whcther (G 1s nol
odd degree there is circuit in G.
Euierian. Hence it is
no Euler 1.e.
impossible to ind a roule to walk over all tne s"
bridges exactly once and return to the starting point.
Remark 4.1.2 At present here ver.
One connecling the land areas A and D. and the
are two more
other
on the lands
bridgesconnecting the 1staands
B and C. The
present conliguration of the city is representel hy the Jonow"
graph G,:
A
e/
e, e
B
e C
e
D
G
Fig 4.1.6
is even. Hence G, has an
connccted and every vertcx of G,
he graph G, is
Euler circuit. So. il is now possible to find a roule to walk over all the nine bndges
e e
e v,
C
G
Fig 4.2.1
The cycle C=(v,. C, V. e. V C V. C V. C,. V C. V. C V. C,V,)s
a llamiltonian cycle.
Note: T'he condition is not suflicient. Tlowever. we can use this condition
to show that a certain graph is not Hamiltonian.
EXmple 4.2.1 The followine eruph Ci as shown in lig. 4.2.I is IHamilontan.
V C V
e
N
e
V, , V
G
Fig 4.2.1
The cycle C=(v,. e, V, V C VC Vy. C V C, V. C V. C,.,) s
a Hamiltonian cycle.
Remark 4.2.1 Any lHamiltonian cyele in a bipartite graph must have the
same number of vertices in cach
bipartition subset. since any a edge in bipar-
ite graplh corresponds fronm
to a move one bipartition subsct to the other.
We would like to have a neeessary and sullicient condition for the existenee
of llaimiltonian eycle
a in a connected graph. Tlowever. this is an
unsoiv ed
problenm in graph theory. althoueh several necessary or suflicient conditions
Note: The condition is not sullicient. Tlowever. we can use this condition
to show that a certain graph is not Hamiltonian.
i 4.2.2 (Dirae's theorem, 1952): Let G be a simple conneeled gripn
with n3 vertie 1f d(v) for every vertex VE V then G is Ilamiltonian.