Euler Circuits
Euler Circuits
6
The Mathematics
of Graphs
Section 5.1 Graphs and Euler Circuits
Introduction to Graphs
3
Introduction to Graphs
The ideas and concepts of graph theory are used in diverse
field of study. Some of its applications are in:
4
Introduction to Graphs
Graph theory is a branch of mathematics which illustrates
and analyzes various connections we experience in our
lives.
Figure 5.1
Each dot represents a person, and a line segment connecting two dots means
that those two people are friends on Facebook.
7 vertices; 8 edges
5 vertices; 7 edges
6
Air traffic Internet connection
7
Basic concepts about graphs:
1. A graph can include vertices that are not joined to any
edges; (we call them isolated vertices)
A graph with all vertices
are isolated..
1 2
3
5
4
4 is an isolated vertex.
8
Basic concepts about graphs:
2. All edges must begin 3. If two or more edges
and end at vertices. connect the same
vertices, they are called
multiple edges;
edge
not an edge
9
4. If an edge begins and ends at the same vertex, it is
called the loop.
Vertex Degree
a b a 1
c
b 3
d c 2
d 3
e e 5
f f 0
g g 2
11
Example 1 – Constructing a Graph
The following table lists five students at a college.
An “X” indicates that the two students participate in the
same study group this semester.
12
Example 1 – Constructing a Graph cont’d
Oscar
Matt
Kayla
Amber
14
Example 1 – Solution cont’d
b.
1. The vertex corresponding to Amber is connected to
more edges than the others, so she is involved with
more study groups (three) than the others.
15
Introduction to Graphs
A graph is called connected if any vertex can be reached
from any other vertex by tracing along edges.
(Essentially, the graph consists of one “piece.”)
Disconnected graphs:
16
A connected graph in which every possible edge is drawn
between vertices (without any multiple edges) is called a
complete graph.
17
Incomplete graphs:
18
More examples of graphs are shown below.
This graph has five vertices but This is a connected graph that has a
no edges. It is not connected. 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.
19
Introduction to Graphs
20
Consequently, the three graphs shown below are
considered equivalent graphs because the edges form
the same connections of vertices in each graph.
21
Example 2 – Equivalent Graphs
Determine whether the following two graphs are equivalent.
Solution:
Despite the fact that the two graphs have different
arrangements of vertices and edges, they are equivalent.
22
Example 2 – Solution cont’d
The edges are AC, AE, BD, BE, CE, and DE. If we do the
same for the second graph, we get the same six edges.
23
Euler Circuits
24
Euler Circuits
A path in a graph can be thought of as a movement from
one vertex to another by traversing edges.
Example:
In the graph in Figure 5.5, one path would be A–B–E-H–G.
Figure 5.5
25
If a path ends at the same vertex at which it started, it is
considered a closed path, or circuit. For the graph in
Figure 5.5, the path A–D–F–G–E–B–A is a circuit
because it begins and ends at the same vertex.
Figure 5.5
26
Euler Circuits
A circuit that uses every edge, but never uses the same edge
twice, is called an Euler circuit.
(Note: The path may cross through vertices more than once.)
Example:
Figure 5.4
28
He made the observation that in order to complete the
desired path, every time you approached a vertex you
would then need to leave that vertex.
29
Euler Circuits
Furthermore, he was able to show that any graph that has
even degree at every vertex must have an Euler circuit.
Consequently, such graphs are called Eulerian.
30
Example 3 – Identifying Eulerian Graphs
Solution:
a. Vertices C and D are of odd degree. By the Eulerian
Graph Theorem, the graph does not have an Euler
circuit.
32
Example 4 – Find an Euler Circuit
Determine whether the graph shown below is Eulerian. If it
is, find an Euler circuit. If it is not, explain how you know.
Solution:
Each vertex is of even degree (2, 4, or 6), so by the
Eulerian graph theorem, the graph is Eulerian. There are
many possible Euler circuits in this graph.
33
Example 4 – Solution cont’d
34
Euler Paths
35
Euler Paths
A path (not necessarily a circuit) that uses every edge once
and only once is called an Euler path.
36
Example 6 – An Application of Euler Paths
Notice that only two vertices are of odd degree, the cities
Alameda and Dover. Thus we know that an Euler path
exists, and so it is possible for the photographer to plan a
route that travels each road once.