The Mathematics of Graphs 1
The Mathematics of Graphs 1
5
The Mathematics
of Graphs
3
Introduction to Graphs
Think of all the various connections we experience in our
lives—friends are connected on Facebook, cities are
connected by roads, computers are connected across the
Internet.
5
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.
6
Example 1 – Constructing a Graph cont’d
7
Example 1 – Solution
a. We draw five vertices (in any configuration we wish) to
represent the five students, and connect vertices with
edges according to the table.
8
Example 1 – Solution cont’d
9
Introduction to Graphs
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 the loop.
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.
11
Introduction to Graphs
This graph is not connected; it consists of two This is a complete graph with five vertices.
different sections. It also contains a loop.
12
Introduction to Graphs
Consequently, the three graphs shown below are
considered equivalent graphs because the edges form the
same connections of vertices in each graph.
13
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.
14
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.
15
Euler Circuits
16
Euler Circuits
To solve the Königsberg bridges problem, we can represent
the arrangement of land areas and bridges with a graph. Let
each land area be represented by a vertex, and connect two
vertices if there is a bridge spanning the corresponding land
areas. Then the geographical configuration shown in Figure
5.3 becomes the graph shown in Figure 5.4.
18
Euler Circuits
The path A–D–F–G–E–H is not a circuit, as the path
ends at a different vertex than the one it started at.
A circuit that uses every edge, but never uses the same
edge twice, is called an Euler circuit. (The path may cross
through vertices more than once.)
20
Euler Circuits
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.
21
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.
22
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.
24
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.
25
Example 4 – Solution cont’d
26
Euler Paths
27
Euler Paths
Perhaps the Königsberg bridges problem
would have a solution if we did not need
to return to the starting point. In this case,
what we are looking for in Figure 5.4 is
a path (not necessarily a circuit) that
uses every edge once and only once.
Figure 5.4
28
Euler Paths
The general result of his argument is given in the following
theorem.
29
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.