0% found this document useful (0 votes)
132 views12 pages

Jurnal CJR PDF

This document summarizes a study on Euler graphs and their applications. It begins by defining an Euler graph as a connected graph where every vertex has an even degree, or a graph with only two vertices of odd degree. The study then discusses the origin and importance of Euler graphs, including Euler's solution to the Konigsberg bridge problem. It provides theorems for determining whether a graph has an Euler circuit or path based on the degrees of its vertices. Finally, it outlines constructive algorithms for finding an Euler path or cycle in a graph by traversing its edges one by one.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
132 views12 pages

Jurnal CJR PDF

This document summarizes a study on Euler graphs and their applications. It begins by defining an Euler graph as a connected graph where every vertex has an even degree, or a graph with only two vertices of odd degree. The study then discusses the origin and importance of Euler graphs, including Euler's solution to the Konigsberg bridge problem. It provides theorems for determining whether a graph has an Euler circuit or path based on the degrees of its vertices. Finally, it outlines constructive algorithms for finding an Euler path or cycle in a graph by traversing its edges one by one.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

International Journal of Mathematics Trends and Technology (IJMTT) – Volume 43 Number 1- March 2017

A study on Euler Graph and it‟s


applications
Ashish Kumar
M.Sc. Mathematics Department of Mathematics and Statistics, SHUATS Allahabad, U.P., India
Abstract:- ​Main objective of this paper to study
​ VG ​= ),( ​be an undirected graph ​Euler graph and it’s various aspects in our real world. Now a day’s
If E
Euler graph got height of
with​e ​edges. Then
achievement in many situations that occur in computer science, physical science, communication
science, economics and many other areas can be

∑​2)deg( ​ =​
ev ​ Vv ​∈

analysed by using techniques found in a relatively new area of mathematics. The graphs concerns
relationship with lines and points (nodes). The Euler graph can be used to represent almost any
i.e., the sum of degrees of the vertices in an undirected graph is twice the number of edges
(​Handshaking theorem​).
problem involving discrete arrangements of objects
​ VG ​= ),( ​be a directed graph with e
If E ​ dges, ​where concern is not with the internal properties of these
​ e
objects but with relationship among them.
To achieve objective I first study basic concepts of graph theory, after that I summarizes the methods
then

∑ )(deg

v​
+​
=
​ ev ​
∑ )(deg
​ =​
-​ ​ ​that
​ ​Vv ∈
Vv ∈ are adopted to find Euler path and Euler cycle.
i.e., the sum of the out degrees of the vertices of a ​Keywords:- ​graph theory, Konigsberg bridge problem,
Eulerian circuit.
digraph G ​ ​equals the sum of in degrees of the vertices which equals the number of edges in .​ ​G
Introduction
1) ​Origin and Importance of Eulerian graph
A graph G ​ ​consists of a set V
​ ​called the set of points (nodes, vertices) of the graph and a set of edges
such that each edge ​Ee​∈ ​is associated with ordered or unordered pair of elements of ​,​V i​ .e., there is a
mapping from set of edges ​E ​to set of
(Konigsberg problem)
The river called Pregel flows through the city Konigsberg (located in Russia) dividing the city into four
land regions, two are river banks and two are islands or delta formation. The four land regions were
connected by 7 bridges. There was an ordered or unordered pairs of elements of .​ ​V ​The
entertaining or interesting exercise for the citizens set ​)(​GV ​is called the vertex set of ​G ​and ​)(​GE i​ s the
edge set. The graph ​G ​with vertices
of Konigsberg. Start from any land regions and come back to the starting point after crossing each of the
​ nd edges ​E i​ s written as ​EVG =
seven bridges exactly once without repeating ​V a ​ ),( ​or
same path.
EVG ​),( ​. Types of graphs are simple graph, multi graph, pseudo graph. An undirected graph ​G ​consists
of sets of vertices ​V ​and a set of edges ​E s​ uch that each edges is associated with an unordered pair of
vertices . A directed graph ​G ​consists of a set of vertices ​V ​and a set of edges​E ​such that each edges is
associated with an ordered pair of vertices then the graph is called
Fig. 1​: ​The bridges of Konigsberg problem directed graph or digraph.
Euler suggested and further explained that it is The degree of a vertex of an graph is the number of
impossible to do so by using the terminology of edges incident with it, except that a loop at a vertex
points (representing the land regions) and lines contributes twice to the degree of that vertex. The
(representing the bridges). Hence, he titled his degree of the vertex v ​ ​denoted by
​ ​in a graph G
paper as “Solutions to a problem relating to the ​)deg(​v .​
geometry of positions.” Through this explanation, he laid the foundation for Graph Theory. Graph theory
started from this problem.
ISSN: 2231-5373 ​http://www.ijmttjournal.org ​Page 9
International Journal of Mathematics Trends and Technology (IJMTT) – Volume 43 Number 1-
March 2017

Using Euler‟s theorem we need to introduce a


He abstracted the case of Konigsberg by path to make the degree of two nodes even. And
eliminating all unnecessary features. He drew a other two nodes can be of odd degree out of
picture consisting of “dots” that represented the which one has to be starting and other at another
landmasses and the line-segments representing the end point. Suppose we want to start our
the bridges that connected those land masses. journey from node. So, the two nodes can have
The resulting picture looked somewhat similar to odd edges. But somehow we need to edit the
the figure shown below. actual graph by adding another edge to the graph
such that the two other nodes have even degree.

Trail that visits every edge of the graph once and


only once is called ​Eulerian trail​. Starting and
ending vertices are different from the one on
which it began. A graph of this kind is said to be
traversable. An Eulerian circuit is an Eulerian trail
that is a circuit i.e., it begins and ends on the
Fig. 2
same vertex. A graph is called Eulerian when it
This simplifies the problem to great extent. He contains an ​Eulerian circuit​. A digraph in which
came out with the then new concept of degree of the in- degree equals the out-degree at each
nodes. The Degree of Node can be defined as the vertex.
number of edges touching a given node. Euler
proposed that any given graph can be traversed
with each edge traversed exactly once if and only
if it had, zero or exactly two nodes with odd
degrees. The graph following this condition is
called Eulerian circuit or path.
Finding an Euler path is a relatively simple
problem it can be solve by keeping few
guidelines in our mind:

• Always leave one edge available to get back


to the starting vertex (for circuits) or to the
other odd vertex (for paths) as the last step.
A vertex is odd if its degree is odd and even if its • Don‟t use an edge to go to a vertex unless
degree is even. there is another edge available to leave that
2) Existence of an Euler path vertex (except for the last step)

There are several ways to find the existence of 3) Constructive Algorithm


Euler path. Considering the existence of an Euler
Constructive algorithm used to the prove
path in a graph is directly related to the degree of
Euler‟s theorem and to find an Euler cycle or path
vertices in a graph. Euler formulated the theorems
in an Eulerian graph. A graph with two vertices of
for which we have the sufficient and necessary
odd degree. The graph with its edges labelled
condition for the existence of an Euler circuit or
according to their order of appearance in the path
path in a graph respectively.
found. Steps that kept in mind while traversing
Euler graph are first to choose any vertex ​u ​of​G ​.
Start traversing through edges that not visited yet
until a cycle is formed. Record the cycle and
Theorem: A ​ n undirected graph has an Euler remove the edges it consists of. If there is an
circuit if and only if it is connected and has zero unvisited edge‟s then start the first step until
vertices of odd degree. whole graph is traversed.

Let us take a graph having no odd vertices, the Two cycles emerged by traversing one of them
path can begin at any vertex and will end there; and insert other when common vertex found. The
vice- versa in the case of two odd vertices, the result is a new cycle. For an Eulerian graph that
path must begin at one odd vertex and end at the must contain two vertices with odd degree,
other. Any finite connected graph with two odd otherwise no Euler path can be found. Start from a
vertices is traversable. A traversable trail may ​ hen add or remove edge
vertex of odd degree .​ ​u T
begin at either odd vertex and will end at the other between the vertices of odd degree and thus
odd vertex. ensure that every vertex has an even degree

ISSN: 2231-5373 ​http://www.ijmttjournal.org ​Page 10


Theorem: A ​ n undirected graph has at least one
Euler path if and only if it is connected and has
two or zero vertices of odd degree.
Example: ​Illustrations of Constructive algorithm to
find Euler cycle, consider the graph
Fig. 4(b)
(a) Check to start that the graph is connected and all vertices are of even degree, find cycle
​ Remove the edges involved in this
Cycle of length 6 such as ​)),(),,(),,(),,(),,(),,(( ​gffddccbbaag (b)

cycle from ​the graph:


Fig. 4(d)
In the „smaller‟ graph that remains, the vertices must still all be of even degree.
International Journal of Mathematics Trends and Technology (IJMTT) – Volume 43 Number 1- March 2017
ISSN: 2231-5373 ​http://www.ijmttjournal.org ​Page 11
Fig. 4(a)
Fig. 4(c)
Cycle of length 7 ​)).,(),,(),,(),,(),,(),,(),,(( ​giihhddiibbhhg
(c) Merge the cycles from step 2 into the cycle in step 1 at appropriate points:
Cycle of length 13
),,(),,(),,(),,(),,(),,(),,(),,(( ​bhhggffddccbbaag )​ ).,(),,(),,(),,(),,(
giihhddiib
Theorem: A ​ connected graph has an Euler trail, but not an Euler cycle, if and only if it has exactly two
edges of odd degree.
Examples: A ​ n Euler trail exists for the graph in fig. 5
Fig. 5
Euler trail
)),(),,(),,(),,(),,(),,(),,(( ​baaddbaccddffa
An algorithm for constructing an Euler trail is the following:
1. If the graph is connected and all its vertices are of even degree then construct an Euler cycle
(necessarily it‟s an Euler trail). Otherwise, if the graph is connected and has exactly two vertices are of
v v​ ertices and end ​ v v​ ertices of the Euler trail to ​
odd degree, identify those vertices as the initial ​i​ e​ be
constructed and remove the edges along a trail joining them. Find an Euler cycle in what remains.
​ ​as its initial vertices, then the edges of the trail can simply be
2. If the cycle obtained is written using ​iv
added to the end of the cycle to give an Euler trail for the original graph.
Example: ​An Euler cycle for the graph same as in fig.5 can be found by Constructive algorithm:
​ )deg( = ​a ​and 3
Noting: that 3 ​ )deg( = ​b ​identifies these as the start and end of the trail.
International Journal of Mathematics Trends and Technology (IJMTT) – Volume 43 Number 1-
March 2017

The edge ​),( ​ba (​ which acts as a trail from ​a t​ o​b )​


is thus removed from the graph to start leaving the
„new‟ graph shown below:

Fig.6(a)
Fig. 6(b)

Cycle found, Cycle of length 6


)),(),,(),,(),,(),,(),,(( ​addbbccddffa
closed unicursal tracing iff it has no points if
Attaching the edge ​),( ​ba ​to the end of this cycle intersection of odd degree.
gives an Euler trail for the original graph: • A line drawing has
an open unicursal tracing iff it has exactly two
)).,(),,(),,(),,(),,(),,(),,(( ​baaddbaccddffa points of intersection of odd degree.

Eulerization and Semi-


Eulerization

In case Eulerian circuit or path does not exist for


the graph. There is a simple process of
Eulerization which provides a solution for this type Chinese Postman
of problem. Eulerization nothing but it is the Problem
process of adding phantom (or duplicate) edges to
the graph so that the resulting graph has not any A part of his duties, a postman starts from his
vertex of odd degree (and thus contains an Euler office, visits every street at least once, delivers the
circuit). A similar problem rises for obtaining a mail and comes back to the office. Suggest a
graph that has an Euler path. The process in this route of minimum distance. The Chinese Postman
case is called Semi-Eulerization and ends with the Problem (CPP) is a close cousin to TSP
creation of a graph that has exactly two vertices of (Travelling Salesman Problem). In this routing
odd degree. problem the traveller (Postman or Salesman) must
traverse every arc (i.e. road or street link) in the
network. The name comes from the fact that a
Chinese mathematician, Mei-Ko Kwan (1962),
developed the first algorithm to solve this problem
for a rural postman. It is an extension to one of the
earliest graph theory questions, the Konigsberg
Bridge Problem, which was studied by Euler
(1736). Operations researchers are interested in
Fig. 7: Eulerization finding the shortest route in any type of network.
Eulerization can be achieved in many ways by
selecting a different set of edges to duplicate.

• A line drawing has a


ISSN: 2231-5373 ​http://www.ijmttjournal.org ​Page 12
Fig. 8: Semi- Eulerization

4) Application​:

Line drawings

A graph has a ​unicursal tracing i​ f it can be traced


without lifting the pencil or retracing any line.
Obviously, a closed unicursal tracing of a line
drawing is equivalent to an Euler circuit in the
corresponding graph. Similarly, an open unicursal
tracing is equal to an Euler path.
Algorithm was designed to give the shortest route entry.
that was required for any network or road map,
including those that had more than two points A postman has to go around the following route
(nodes) with odd numbers of lines (edges) starting and finishing at ​A​, his postal depot. He
emerging from them. If a road map or network had
has to go along each road, shown as lines, once
more than two nodes that were of odd order, the
and only once in graph ​A ​=depot,
odd ordered nodes had to be paired together, and
the shortest distance found between the pairs. If
the network was traversed, these edges would Vihar, Basant = ​B ​Villa, Charm = ​C ​House,
have to be repeated to give the shortest distance Don = ​D ​Market, Anjali = ​E ​Shop Fishries =
to travel all edges and return to the starting point.
F ​Fig. 4.2 is a weighted graph. Where weight
The algorithm is as follows:
defined between
​ two node/vertices.

Step 1: Find all nodes with odd numbers of edges


emerging from them

Step 2: These nodes should be listed in all the


possible pairings

Step 3: Find the shortest distance between each


node of the pair, then add up the total for each set
of pairs.

Step 4: Choose the set of pairs with the minimum Fig. 9


total distance. This is added on to the sum of all
the edges to give the shortest distance to traverse Following the steps of the route inspection
the network and return to the original point of algorithm:
Step 1 to create an Eulerian graph that is the shortest
possible edges ​AF ​and ​DE m
​ ust be repeated.
Odd Vertices Degree

A ​3

D 5​

E ​3

F ​5

Step 2 & 3

Possible pairings of odd vertices ​AD ​and ​EF

shortest route AD and EF distance


​ 12+6= 18

Possible pairings of odd vertices AE and DF


shortest route AFE and DF distance 3+6+8= 17

Possible pairings of odd vertices AF and DE


shortest route AF and DE distance 3+4= 7 4 + 7 + 5 + 6 + 7 + 12 + 10 + 8 + 9 + 6 + 4 + 3 +
Repeated edges (4 + 3) = 78
Step 4: ​From the above calculations it is clear that
International Journal of Mathematics Trends and Technology (IJMTT) – Volume 43 Number 1-
March 2017
Fig. 10

A possible Euler cycle that starting and finishing at


A​:

AFBDFCEDABCDEFA -​ - - - - - - - - - - - - - ​The total length of this route is:


ISSN: 2231-5373 ​http://www.ijmttjournal.org ​Page 13
City Street Map: 1 ​ 7 Streets to sweep with Sweeper Truck. Pretend for simplicity, that he can sweeps
whole street in one pass.
Job: ​Start at Garage, sweep all 17 streets once, and return back into Garage. If travel some streets
twice, ensure that is minimum number streets.
Fig. 11
Optimizing by Constructive algorithm
Step 1: ​Determine degree of each vertex-
A=​ 2, ​B =
​ 5, ​C ​= 3, ​D =
​ 3, ​E =
​ 3, ​F ​= 3, ​J =
​ 4, ​H =​ 5, ​I ​= 3, ​W =
​ 3
Step 2: ​Identify all odd degree vertices- There are 8 odd vertices
Step 3: ​Change all odd degree vertices to even by removing fewest number edges shown in figures.
Removing an edge between vertices E ​ Da ​ ow
​ nd ​. Now again removing edge between .​ and ​HB N
again removing edge between ​.and ​IC ​Now removing edge between ​.and​WF ​Now that the street map
has been optimally Eulerized.
Graph will now have an Euler Circuit since each vertex is even degree.
Determine the Fig. 11. It‟s not an Eulerian circuit most of vertices are of odd degree. After optimizing the
application of Eulerian circuit we get Fig. 11(e) by removing edges to make even degree
International Journal of Mathematics Trends and Technology (IJMTT) – Volume 43 Number 1- March 2017
Fig. 11(e)
Euler cycle by Constructive algorithm
EFJHWIHCBA
- - - - - - - - - - ​ADBJ
---S ​ tarting at ​A (​ garage), sweep all roads once, only once.
Conclusion
Eulerian graph is applicable in many real situations. Applications of Eulerian circuits abound. For
example, Eulerian circuits are obviously desirable in the deployment of street sweepers, snowplows,
buses and mail carriers. In these applications, traversing a street more than once is a waste of resources.
Thus, Eulerian circuits represent optimal solutions in terms of conserving resources. Methods such as
these have been implemented and have resulted in considerable cost savings to the municipalities
involved.
References
[1] Bhatt S., Even S., Greenberg D., and Tayar R. [2002]: “​Traversing directed Eulerian mazes”​ Journal of Graph Algorithms and
Applications, Vol. 6, Series 2, pp. 157– 173.
[2] Chwe Byoung-Song [1994]: “​A proof of some Schutzenberger type results for Eulerian paths and circuits on digraphs​”
International Journal of Mathematics and Mathematical Science, Vol. 17 No. 3, pp. 497-502.

[3] Dvorak Tomas, Havel Ivan and Liebl Petr [1997]: “​Euler cycles in the complete graph K​2m+1”​ Discrete Mathematics, ​Vol. 171, pp.
89-102.
[4] Isaev M. I. [2012]: “​Asymptotic behaviour of the number of Eulerian circuits​” Mathematics Company, arXiv:1104:3046v3
[5] Jonsson Jakob [2002]: “​On the number of Euler trails in directed graphs​” Mathematica Scandinavica, Vol. 90, pp. 191–214.
[6] Jordon Heather, Chartrand Gary and Zhang Ping [2014]: “​A cycle decomposition conjecture for Eulerian graphs”​ Australian
Journal of Combinatorics, Vol. 58, pp. 48–59.
[7] Khade R. H. and Chaudhari D. S. [2012]: “​An approach for minimizing CMOS layout by applying Euler’s path rule”​ Proceedings
published in International Journal of Computer Applications, Vol. 10, pp. 18-21
[8] Kotzig Anton and Turgeon M. Jean [1982]: “​Quasi-groups defining Eulerian paths in Complete Graphs”​ Journal of Combinatorial
Theory, Series B32, pp. 45-56.
[9] Mcdiarmid Lolin and Michael Molloy [2002]: “​Edge- disjoint cycles in regular directed graph​” Journal of Graph Theory, Vol. 22,
Issue 3, pp. 231–237.
[10] Sarma Samar Sen, Basuli Krishnendu and Naskar Saptarshi [2008]: “​Determination of Hamiltonian circuit and Euler trail from a
given graphic degree sequence”​ Journal of Physical Sciences, Vol. 12, pp. 249-252.
[11] Shapira Asaf, Huang Hao, Ma Jie, Sudakov Benny andYuster Raphael [2012]: “​Large feedback arc sets,
ISSN: 2231-5373 ​http://www.ijmttjournal.org ​Page 14
International Journal of Mathematics Trends and Technology (IJMTT) – Volume 43 Number 1-
March 2017

high minimum degree subgraphs, and long cycles in


Eulerian digraphs​” Combinatorics, Probability and
Computing, Vol. 22, Issue 06, pp. 859-873.

[12] Shen Jain and Brualdi A. Richard [2002]: “​Disjoint cycles in


Eulerian digraphs and the diameter of interchange graphs”​
Journal of combinatorial theory, Series B 85, pp. 189–196.

[13] Subramanian K. G., Hasni Roslan and Ismail Abdul Samad


[2009]: “​Some applications of Eulerian graphs”​ International
Journal of Mathematical Science Education, Vol. 2, Series 2,
pp. 1 – 10.
ISSN: 2231-5373 ​http://www.ijmttjournal.org ​Page 15

You might also like