Mathematics of Graphs: Module Overview
Mathematics of Graphs: Module Overview
0 10-July-2020
MODULE 6
MATHEMATICS OF GRAPHS
MODULE OVERVIEW
This module consists definitions of the basic terminologies in Graph Theory. This includes the different
parts of graphs and types of graphs. Euler path and Euler circuit will also be discussed in this module. Different
illustrations are presented to visualize more the various concepts in Graph Theory.
LEARNING CONTENTS
LESSON 1 GRAPH
The graph G in Figure 1.1 consists of vertices together with the edges is a pair of sets � = �, � where � =
{�1 , �2 , �3, �4 } and � = {�1 , �2 , �3 , �4 }.
In Figure 1.2, we have three vertices namely vertex �1 , vertex �2, and vertex �3 . Therefore, the vertex set of graph
is � � = {�1 , �2, �3 }.
The graph in Figure 1.3 has three edges namely �1, �2, and �3. The edge set of the graph is � � = {�1 , �2, �3}.
The seven edges in Figure 1.5 are �1, �2 , �3 , �4 , �5 , �6 , and �7 . Thus �(�) = 7.
In Figure 1.6, two vertices � and � are adjacent because there is an edge �1 connecting them and edge �1 is called
the incident because it connects the two vertices � and �.
In Figure 1.7, two edges �1 and �2 are adjacent because they have a common vertex � and vertex � is called the
incident vertex.
In Figure 1.8, the pair of vertices � and � contain more than one edge namely edges �2 and �3 . Therefore, the
graph in Figure 1.8 has multiple edges.
The graph in Figure 1.9 has a loop found at the vertex � namely edge �2 .
The degree of a vertex �� in a graph is the number of edges incident to �� denoted as deg �� . (Sirug W.S, 2012)
In Figure 1.10, the degree of the vertices a, b, c, d, and e are 1, 3, 1, 2, and 1, respectively. The degree of each
vertex is represented by ��� � = 1, since only edge �1 is incident to it, ��� � = 3 because there are three edges �1 , �2 , �3
incident to it, ��� � = 1 since only edge �2 is incident to it, ��� � = 2 because there are two edges �3 and �4 incident to it
and ��� � = 1 because only edge �4 is incident to it.
In Figure 1.11, the vertex h is an isolated vertex because there is no edge connected to it. In other words, the
degree of vertex h is 0 or deg(h)=0.
In Figure 1.12, vertex u is an end vertex because it has one edge incident to it.
There are various types of graphs depending upon the number of vertices, number of edges, interconnectivity, and
their overall structure. We discuss some important types of graphs in this lesson.
As an example of null graph shown in Figure 1.14, there are three vertices namely vertex �, vertex �, and vertex �
and there is no edge connected to them.
The graph in Figure 1.15 is an example of a trivial graph, it has only one vertex named vertex �.
Note: Trivial graph is different from Null graph because trivial graph contain only one vertex while null graph contains two or
more vertices without edges incident to it.
In Figure 1.16, there are five vertices �, �, �, � and � and six edges �1, �2, �3, �4, �5 and �6. Each edge bears an arrow
mark that shows its direction. Therefore, it is a directed graph.
Theorem 1.1
Let G be a directed graph with V vertices and E edges. Then,
� = Σ�∈� ����� � = Σ�∈� ������(�)
In Figure 1.17, there are six vertices a, b, c, d ,e ,and f and eight edges �1 , �2 , �3 , �4 , �5 , �6 , �7 , and �8 . Using
theorem 1.2.1, we first show the indegree of the graph:
|E| =Σ�∈� ����� �
= indeg(a) + indeg(b) + indeg(c) + indeg(d) + indeg(e) + indeg(f)
=1+1+2+2+1+1
=8
The second is the outdegree of the graph:
|E| = Σ�∈� ������(�)
= outdeg(a) + outdeg(b) + outdeg(c) + outdeg(d) + outdeg(e) + outdeg(f)
=2 +1+1+1+1+2
=8
Since we get the value of ����� � and ������(�), then
|E| = Σ�∈� ����� � = Σ�∈� ������(�)
|E| = 8 = 8
Therefore, both sums equal the number of edges in the graph.
The graph in Figure 1.18 has no loops or multiple edges. Thus it is a simple graph.
In Figure 1.19, all the vertices have the same degree. Hence, this graph is called regular graph. The degree of each
vertices is represented by ��� � = 2, ��� � = 2, deg (�) = 2, so it is called 2-regular graph.
The graph in Figure 1.20 named K4, is a complete graph because it has four vertices and each vertex is connected
or incident to other vertices.
V1 V2
In Figure 1.21, we have sets of vertices V1 and V2, every edge in the graph connects a vertex in set V1 and a vertex
in set V2. Vertices d and e are connected by edge �1 . Vertices d and g are connected by edge �2 . Vertices c and f are
connected by edge �3. Vertices c and g are connected by edge �4 .
V1 V2
The graph �2,3 of Figure 1.22 showing each vertex in �1 is connected to all other vertices in �2.
Note: Bipartite graph and complete bipartite graph is different from one another because in bipartite graph, not all vertices in
set �1 connects to the vertices in set �2 while in complete bipartite graph all the vertices in set �1 is incident to the vertices in
set set �2 .
Your Turn 1
In the graph in Figure 2.1, the sequence �, �1 , �, �3 , �, �4 , � is a walk between vertex � and vertex �.
In Figure 2.2, the walk �, �2, �, �4, �, �5, �, �8, �, �3, � is a closed walk because it started from vertex � and back to
itself.
The graph in Figure 2.3 has �1 − �7 walk. Therefore, the initial vertex is �1 and the final vertex is �7 .
In Figure 2.4, �, �2 , �, �4 , �, �6, �, �5 , � is a walk and its length is 4 because there are 4 edges from the initial vertex v
and final vertex w.
In Figure 2.6, the sequence �, �4, �, �5 , �, �3, �, �1, �, �2 , � is a trail since there is no edge that is repeated.
Note: A walk, trail, and path is closed if it starts and ends on the same vertex but it is open when it starts and ends on
different vertices. The walks in Figures 2.3 and 2.4 are open. The path in Figure 2.5 is open. The trail in Figure 2.6 is open.
The graph in Figure 2.7 has a circuit , �, �1, �, �4, �, �3, �, �5 , �, �2 , � , it starts and ends with vertex b.
In Figure 2.8, we have three vertices, A, B, and C and also three edges, �1, �2 , �3 . Since every vertex has exactly
two edges incident to it. Therefore, it is a cycle and denoted as �3 .
Your Turn 2
Let G be a graph
a. Identify whether the graph G has a trail, path, circuit and cycle.
b. What is the shortest length between vertex � to vertex �?
Figure 2.13 has a circuit, it has a route where you can pass by each edge or line in the graph exactly once and end
up where you began. The Euler circuit is A,�1,E,�5 ,D,�6,B,�2 ,E,�4 ,C,�3 ,A.
Note: An Euler path is different from an Euler circuit because Euler path starts and ends on different vertices while Euler
circuit starts and ends on the same vertex.
Your Turn 3
LEARNING POINTS
A graph � is a pair of sets (�, �) comprising a set � of vertices together with a set � of edges. A vertex is a point
where lines or edges meet and an edge is a line between two vertices.
Some types of graph are discuss on this lesson: Null graph, Trivial graph, Directed graph, Simple graph, Regular
LEARNING ACTIVITY
1. Find the number of vertices, the number of edges, and the degree of each vertex in the given undirected
graph and identify all isolated vertices.
a.
b.
c.
2. Find the sum of the degrees of the vertices of each graph in Exercise 1 and verify that it equals twice the
number of edges in the graph.
3. Determine the number of vertices and edges and find the in-degree and out-degree of each vertex for
the given directed multigraph.
a.
b.
c.
4. Refer to Exercise 3. Determine the sum of the in-degrees of the vertices and the sum of the out-degrees
of the vertices directly. Show that they are both equal to the number of edges in the graph.
6. Determine whether the given graph has an Euler circuit. Construct such a circuit when one exists. If no
Euler circuit exists, determine whether the graph has an Euler path and construct such a path if one
exists.
a.
b.
c.
d.
e.
f.
7. Determine whether the directed graph shown has an Euler circuit. Construct an Euler circuit if one
exists. If no Euler circuit exists, determine whether the directed graph has an Euler path. Construct an
Euler path if one exists.
a.
b.
c.
d.
e.
REFERENCES
Books:
Sirug W. (2012). Fundamentals of Discrete Mathematics. Mindshapers Co., Inc.
Icutan, et.al. (2013). Simplified Discrete Mathematics. Jimczyville Publications
Chartrand G., Zhang P. (2009). Chromatic Graph Theory. Taylor and Francis Group, LLC
Chartrand G., Lesniak L. (2005). Graphs and Digraphs 4th Edition.Chapman and hall/CRC
DEVELOPMENT AND VALIDATION OF THE LEARNING MODULE IN GRAPH THEORY by JESSICA A. BAÑEZ
and ANGELA G. DE GUZMAN, June 2017
Online:
Ruohonen K. (2013). Graph Theory. Retrieved from https://Graph%20Theory/ GT_English.pdf
Weisstein E.W. (2017). Retrieved from http://mathworld.wolfram.com/VertexSet. html
Rodrigue J.P., Ducruet C. (2017) Retrieved from https://people.hofstra.edu/ geotrans/eng/methods/ch1m2en.html
Dublin (2009). Graph Theory and Applications. Retrieved from http://www. hamilton.ie/ollie/Downloads/Graph.pdf
Harju, (2011). Graph Theory. Retrieved from http://www2.math.uu.se/~andersj/graph
theory/lec-notes/gt-helsinki.pdf
Stanley R.P. (2010). Topics in Algebraic Combinatorics. Retrieved from https://math.
dartmouth.edu/archive/m68f11/public_html/algcomb.pdf
Spring (2009). Discrete Mathematics. Retrieved from http://cglab.snu.ac.kr/
lectures/09-1/discrete_math/dm09_slide5.pdf
Tesler (2014). Graph Theory. Retrieved from http://www.math.ucsd.edu/~gptesler/ 184a/
slides/184a_ch9slides_14-handout.pdf
Yuanxin (2008). Retrieved from http://study.com/academy/lesson/fleurys-algorithm-for-finding-an-euler-circuit.html