Graphs and Euler Circuits
Graphs and Euler Circuits
EULER
CIRCUITS
INTRODUCTION TO
GRAPHS
Think of all various connection we experience in our lives
friends are connected on Facebook, cities are connected by
roads, computers are connected across the internet. A branch
of mathematics called graph theory illustrates and analyzes
connection such as there.
For example, the diagram below represent friends that are
connected on Facebook. Each dots represent a person and a
line segment connecting two dots means that those two
people are friends on Facebook
Elsa ● Hether ●Jared
●
● ●
Amy Ben ●
Paul
White sox
●
Braves Cardinals
●
●
● ●
Yankees Mets ●
Giants
B. It could because to represent the flights available on a
particular airlines between a selection of cities; each vertices
represents a city and an edge connecting two cities means
that there is a direct flight between the two cities.
● ● ●
Los Angeles Dallas Atlanta
Constructing a graphs
The following table list five students at a college. An “X”
indicates that the two students participate in the same study
group this semester.
A. Draw a graph that represents this information where each
vertex represents a students and an edge connects two
vertices if the corresponding study together.
Amber
●
Matt
● ●Oscar
● ●
Kayla Laura
Solution:
The vertex corresponding to Amber is connected to more
edges than the others, so she is involved with more study
groups than the others. Kayla the only student with one
study in common, as her vertex is the only one connected to
just one edge.
Amber
●
Matt ● ● Oscar
● ●
Kayla Laura
In general, a graph can include vertices that are not
joined to any edges, but all edges must begin and end
at vertices. If two or more edges connect the same
vertices, they are called multiple edges. If an edge
begins and ends at the same vertex, it is called a loop.
●
●
●
●
●
This is a connected graph that has a pair of multiple edges.
Note that two edges cross in the center, but there is no vertex
there. Unless a dot is drawn, the edges are considered to pass
over each other without touching.
● ●
●
●
This graph is not connected; it consist of two different
sections. It also contains a loop.
●
● ●
●
●
●
This is a complete graph with five vertices.
● ●
● ●
Note that it does not matter whether the edges are drawn
straight or curved and their length are not important. Not is
the placement of the vertices important. All that matters is
which vertices are connected by edges.
Consequently, the three graphs shown below are considered
equivalent graphs, because of the edges from the same
connections of vertices in each graph.
A
● A C B
● ● ●
B● B
● A
● ●E
C ● ● ● D● ● ● ●
E E C D
D
If you have difficulty seeing these graphs are equivalent, use the
labeled vertices to compare each graphs. Note that in each case,
vertex B has an edge connecting it to each of the other four
vertices and no other edges exist.
EQUIVALENT GRAPHS
Determine whether the following graphs are equivalent.
D ●C
A● ●B ●
E
● ●
E
● ●C ● ●
D B A
Solution:
Despite the fact that the two graphs have different
arrangements of vertices and edges, they are equivalent. To
illustrate, we examine the edges of each graph.
If we do the same for the second graph, we get the same six
edges. Because the two graph represent the same
connections among the vertices, they are equivalent.
EULER CIRCUIT
- is a closed path that uses every edge, but never uses the
same edge twice . The path may cross through vertices
more than once.
D E
F H
G
The path B-D-F-G-H E-C-B-A-D-G-E-B in Figure 6.5 is an Euler
circuit. It begins and ends at the same vertex and uses each edge
exactly once. (Trace the path with your pencil to verify!) The path
A-B-C-E-H-G-E-B-D-A is not an Euler circuit: The path begins and
ends at the same vertex but it does not use edges DF, DG, or FG.
The path A-B-C-E-H-G-F-D A-B-E-G-D-A begins and ends at A
but uses edges AB and AD twice so it is not an Euler circuit.
Eulerian Graph Theorem
A connected graph is Eulerian if and only if every
vertex of the graph is of even degree.
B E
B
C D
C D
Solution
G
F D
Solution:
Each vertex is of even degree (2, 4, or 6), so by the Eulerian
graph theorem. the graph ix Eulerian. There are many possible
Euler circuits in this graph. We do not have! a formal method of
locating one, but by trial and error. one Euler circuit is B-A-F-B-
E-F-G-E-D-G-B-D-C-B,
Euler Path Theorem
B D B
C
A C
A
D
Example #2
One Euler path for the above graph is F. A. B. C. F.
E. C. D. E as shown below.
A B A B
F C F C
E D E D
This Euler path travels every edge once and only once and starts
and ends at different vertices. This graph cannot have an Euler
circuit since no Euler path can start and end at the same vertex
without crossing over at least one edge more than once.
NOTE: Leonhard Euler (oral) (1707-1783) was one of the most
prolific mathematicians of all time. He wrote hundreds of papers in
almost every area of mathematics. In one of these papers, published in
1736, Euler proved that it was impossible to traverse each of the
bridges of Konigsberg exactly once and return to the starting point.
Although he did not present his paper in the language of graph theory,
his arguments were equivalent to our discussion in this section. In fact,
his proof was more general than just a proof of the Königsberg bridges
problem, and it can be considered the first paper in graph theory.
Weighted Graph
Hamiltonian Circuit
Solution:
The various option will be simple to analyze if we organized the
information in a graph, begin by letting each city be represent by a
vertex. Draw an edge between two vertices.
New York
713
803 544
1185
1374
665
Dallas 1299 Philadelphia
585
670
Atlanta
A route that visits each city just one corresponds to a
Hamiltonian circuit. Beginning at Chicago, one such circuit is
Chicago-New York-Dallas-Philadelphia-Atlanta-Washington,
D.C.-Chicago. By adding a weights of ach edges in the circuit,
we see that the total number of miles traveled is
Figure 6.15
C
A C A
E D E D
Check your progress 1
Show that the following graph is planar.
X Y Z
A B C
Figure 6.16
To see that the graph in figure 6.16 The Utilities Graph
Z Y Z Y
C C
Figure 6.17
Figure 6.18
Subgraph Theorem
CHROMATIC NUMBER
In this graph,
•No two adjacent vertices are colored with the
same color.
•The chromatic number is 3.
Coloring Maps
COLORING A MAP
and
THE FOUR COLOR THEOREM
COLORING A MAP
In my
presentation
i used Map of
Southern
Africa as an
example.
1)Assign a label
to each country.
The label will
serves as the
vertices.
2) Based on
the map of
Southern
Africa that we
labeled earlier.
We are going
to use the
edges to
connect the
vertices of
countries that
sharing
borders.
3) will use this
procedure to color
the graph.
•Label Degrees
•Always start
coloring with highest
degree vertex. you
can use the color
you want but make
sure you will not
color the same the
two connected
vertex.
TWO-COLORABLE GRAPH THEOREM
• we shall color the vertices of a graph, observing
two rules: every vertex must be colored, and two
vertices linked by an edge cannot be given the
same color
A SCHEDULING APPLICATIONS OF
GRAPH COLORING
Vertex coloring models to a number of
scheduling problems.
Details of the scheduling problem define the
structure of the graph.
EXAMPLE:
North Central is offering eight courses during its summer
session. The table shows with an X which pairs of courses have
one or more students in common. Only two air-conditioned
lecture halls are available for use at any one time.
To design an efficient way to schedule the final examinations,
represent the information in this table by using a graph. In the
graph represents courses by vertices and join two courses by an
edge if there is any student enrolled in both courses.
We will be making a vertex for each course
from the table.
Now, we need to put the edges.
NOW, LET'S COLOR THE GRAPH.