9MGT1 e Graph Theory Introduction
9MGT1 e Graph Theory Introduction
ADMATHS
SECTION: GRAPH THEORY AND MATRICES
MODULE: GRAPH THEORY
INTRODUCTION
We need to look at the definitions of all the words that we are going to use in
Graph Theory.
DEFINITIONS
Definition 1
In Graph Theory a graph is a collection of dots called vertices.
Vertex: singular
Vertices: plural
Example 1
⦁
⦁ ⦁
NOTE
A connection between the dots is not essential.
Definition 2
These connecting lines are called edges.
Example 2.1
●
vertex
● ●
edge
vertex vertex
NOTATION
• A set of vertices will be written as {𝐴, 𝐵, 𝐶, . . . }
• A sequence of edges will be written as 𝐴 → 𝐵 → 𝐶 →. ..
• An edge joins at most two vertices
Example 2.2
•
vertex An edge can also be a loop!
loop
NOTE
Definition 3
The degree of a vertex in a graph is the number of edges that touch it.
The degree is indicated by 𝑑(𝑣).
𝑑(𝑣) = 3 𝑑(𝑣) = 4
NOTE
Example 3
Carl Carl
John
Betty
Peter Anne
Anne
John
Peter
Betty
NOTATION:
degree of Anne = 1
Definition 4
A simple graph is a graph with no multiple edges between any two
vertices and no loops.
Example 4.1
Simple graph.
Example 4.2
Example 4.3
Definition 5
A regular graph is a graph in which all the vertices have the same degree.
Example 5.1
degree is 5
𝐶 𝐷
(The degree of every vertex is three.)
NOTE
3
• •2
•3
3
• •3
This graph is not a regular graph, because the degrees of the vertices are
different.
EXERCISE 1
𝑃 • •𝐽
𝐵
•
• •𝐿
𝑀
•𝐶
©2022 AdMaths 9MGT1
8/22
Definition 6
A walk/route in a graph is any sequence of edges and vertices that you
travel along.
Example 6
𝐶
𝐷
𝐶→𝐴→𝐶→𝐵→𝐷→𝐶→𝐵
NOTE:
Definition 7
A path is a route that you travel along edges and vertices in a graph, but no
edge is travelled more than once.
Definition 8
A circuit (closed path or cycle) is a path which begins and ends at the
same vertex.
Remember a path only travels once along an edge.
Example 8
𝐴 𝐵
• • 𝐸 → 𝐷 → 𝐴 → 𝐸 → 𝐵 → 𝐶 → 𝐷 → 𝐵 is
an example of a path that is not a
circuit, because it starts at vertex 𝐸
and ends at vertex 𝐵.
𝐷
• •𝐶 The edge 𝐵 → 𝐸 cannot be repeated.
•
𝐸
𝐴→𝐸→𝐷→𝐵→𝐶→𝐷→𝐴
is an example of a circuit, because it starts and ends at the same vertex.
(The edge 𝐵 → 𝐸 is not included in this circuit.)
Definition 9
A graph is connected if there is a path (not an edge necessarily) between
every pair of vertices.
• • • •
• • • •
Connected graph
•
Connected graph
Example 9.3
𝐴
• •𝐷
• • 𝐶
𝐵
Definition 10
**
Two graphs are *isomorphic if you can redraw them so that the same
vertices are still connected.
*
This means that the same vertices are still connected, but no
edges are cut and no additional edges are inserted.
**
To redraw a graph, it helps to imagine the edges as infinitely
stretchable rubber bands. You can move the vertices around and
stretch the edges any way you like as long as they stay connected.
Example 10.1
𝐴
•
𝐴
•
𝐴
•
•𝐵 •𝐵 •𝐶
• •
• 𝐶 𝐵
𝐶
𝐶
• 𝐵
•𝐴
𝐴
𝐵
𝐶
Example 10.2
• •
● ●
● ● ●
● ● ●
In the examples above, the same vertices stay connected throughout, but the
graph is rotated in a 3-dimensional space and the vertices can move around.
Example 10.3
Each of the following 3 graphs has 6 vertices but they are not necessarily
isomorphic.
The same vertices must stay connected to be isomorphic.
Figure 1:
• 6 vertices, 8 edges
• Each of the 𝟒 vertices with a degree 3 is
connected to 2 other vertices of
degree 3 and 1 vertex of degree 2.
3
(The so-called neighbouring of the vertices.)
3
Figure 2:
• • 6 vertices, 8 edges
• The 4 vertices with a degree of 3:
only 𝟐 are connected to 2 other
vertices of degree 3 and 1
vertex of degree 2
Figure 3:
2
• 6 vertices, 8 edges
3 3 • Each of the 4 vertices with a
degree of 3 is connected to 2
other vertices of degree 3 and 1
3 3 vertex of degree 2
2 3
PLEASE NOTE:
It is not sufficient enough to compare the number of edges only.
Check also whether the same vertices are still connected. (i.e. the
neighbourhood of the vertices does not change if they are isomorphic
graphs.)
Sometimes it is very hard to tell whether two graphs are isomorphic or not. In
fact, there is no simple method to determine quickly whether two graphs are
isomorphic or not.
Of course, you can learn about graphs by studying them, but a much easier
way to begin to understand them, is by playing games. Google “planarity”
and click on “games”.
Remember:
In Graph Theory, we are only interested in the network.
That means we only look at which vertices are connected or not.
EXERCISE 2
𝑃 𝑄 𝑀
1.1 • • 1.2 • •𝑁
𝑉
• • • •
𝑅 𝑇 𝑂
1.3 •𝑊 1.4
𝐸
• •𝐻
𝐹 𝐺
• • • • •
𝑋 𝑌 𝑍
𝐵• •𝐽
• •
𝐾 𝐿
𝐸
•
𝐷• •𝐹 • •𝐹 • •𝐹
𝐷 𝐸
Definition 11
Example 11
𝐵 𝐸
𝐹
𝐶 𝐷
Possible girths:
𝐴→𝐵→𝐹→𝐴
𝐴→𝐹→𝐸→𝐴
𝐸→𝐹→𝐷→𝐸
𝐶→𝐹→𝐷→𝐶
𝐶→𝐹→𝐵→𝐶
Example 12
𝐴
river
𝐷
river
Eiland
𝐶 river
𝐵
river
𝐸
Solution
GRAPH 1
Bridge Bridge
between between
𝐴 and 𝐶 𝐴 and 𝐷
𝐴 𝐷
Bridge • •
between •𝐶 Bridge
between
𝐴 and 𝐵
𝐵
• •𝐸 𝐶 and 𝐸
Bridge between
𝐵 and 𝐸
Alternative Solution
GRAPH 2
𝐴
• •𝐷
𝐶
•
• •𝐸
𝐵
NOTE
BE CAREFUL!!
𝐴
• •𝐷
𝐶
•
• •
𝐵 𝐸
In the 18th century, in the time of Leonhard Euler, there was a river containing
two islands (② and ④ in the diagram below) in the town of Königsberg in
Prussia. The islands were connected to the banks of the river (① and ③) by
seven bridges (𝐴 – 𝐺). The bridges were very beautiful, and on their days off,
people would spend time walking over the bridges. As time passed, a
question arose: “Is it possible to plan a walk so that you cross each bridge
once and only once?”
Leonhard Euler was ‘n Swiss mathematician and first studied Graph Theory
in 1735. He was also able to answer this question.
Here you can see the islands ② and ④, and the land masses ① and ③,
connected by 7 bridges 𝐴 – 𝐺.
𝐷 1 𝐹
𝐴
𝐸
river 4 river
2
river
𝐵 3 𝐶 𝐺
EXERCISE 3
HOMEWORK
A. • • B. •
• • • •
• • • •
C. D. • •
•
• •
• • •
E. • •
• • • • • •
𝐵• 𝐺 •𝐹 •𝐸
• •𝐾
𝐻•
•
𝐽
• •𝐷
𝐶
3.1 A. • B. • C. • • •
• •
• •
•
• •
• • •
3.2 D. E. •
•
• • • • • • •
• • • •
•
F.
• •
•
•
•
•
• •
4. Draw all the simple graphs that are not isomorphic on ...