Relation and Graph Theory (Lecture Notes)
Relation and Graph Theory (Lecture Notes)
1
Contents
1 Introduction 3
1.1 Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Edges and Vertices . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Directed edge of a graph. . . . . . . . . . . . . . . . . . . . . . . 3
1.4 Undirected edge of a graph. . . . . . . . . . . . . . . . . . . . . . 3
1.5 Directed graph. . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.6 Undirected graph. . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.7 Mixed graph. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.8 Initial and Terminal vertex of an edge . . . . . . . . . . . . . . . 4
1.9 Incidence relation of an edge and vertices. . . . . . . . . . . . . . 4
1.10 Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.11 Parallel edges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.12 Multiple graph. . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.13 Simple graph. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.14 Weighted graph. . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.15 Isolated vertex. . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.16 Null graph. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.17 Isomorphic graphs . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.18 The necessary condition for two graphs to be Isomorphic . . . . . 10
1.19 In-degree, Out-degree and Total degree of a Vertex. . . . . . . . . 10
1.20 In-degree, Out-degree and Total degree of a Set. . . . . . . . . . . 10
1.21 Subgraph of a graph. . . . . . . . . . . . . . . . . . . . . . . . . 11
1.22 Properties of a graph. . . . . . . . . . . . . . . . . . . . . . . . . 12
1.23 Converse of a digraph. . . . . . . . . . . . . . . . . . . . . . . . 12
2
1 Introduction
1.1 Graph
Definition 1.1. A graph G = (V, E, φ) consists of a non-empty set V called the
set of nodes (points, vertices) of a graph, E is said to be set of edges of a graph,
and φ is a mapping from the set of edges E to a set of ordered or unordered
elements of V.
3
1.5 Directed graph.
Definition 1.5. A graph in which every edge is directed is called a digraph or a
directed graph.
1.10 Loop.
Definition 1.10. An edge of a graph which joins a node to itself is called a loop
or sling.
4
1.11 Parallel edges.
Definition 1.11. In a directed or undirected graphs, certain pair of nodes are
joined by more than one edge. Such edges are called parallel edges.
Definition 1.14. A graph is called regular if all vertices in it have same degree.
5
Figure 6: Simple Graph
6
1.14 Weighted graph.
Definition 1.15. A graph in which weights are assigned to every edge is called a
weighted graph.
7
1.16 Null graph.
Definition 1.17. A graph containing only isolated nodes is called a a Null graph.
8
Figure 15: Isomorphic Graphs
9
1.18 The necessary condition for two graphs to be Isomorphic
0
Two graphs G and G are isomorphic then they must have
1. In a directed graph for any node v, the number of edges which have v as
their initial node is called out-degree of the node v.
2. The number of edges which have v as their terminal node is called the in-
degree of the node v.
Remark:
10
1. the number of edges of G which have their initial node in X, but their
terminal node not in X, is called out-degree of X.
Theorem 1.21. The sum of degrees of the nodes of graph is twice the number of
edges in it. In case of directed graph, the sum of total degrees of all the nodes of
a graph is equal to the twice the number of edges in it. Also, the number of odd
vertices is always even.
Proof. Since each edge is associated with two vertices, therefore each edge con-
tributes one degree to each vertex adjacent to it.
Let G = (V, E) and the set V = {v1 , v2 , . . . . . . , vn } and e be the total number
edges then the sum of total degrees of vertices of V
Remark: The graph G, and the null graph obtained by deleting all the edges of G
are the subgraph of a Graph G.
11
1.22 Properties of a graph.
Definition 1.23. A simple digraph G = (V, E) is called reflexive, symmetric,transitive,
antisymmetric if the relation E is reflexive, symmetric,transitive, antisymmet-
ric. If the graph G = (V, E) is reflexive, symmetric,transitive then E must be an
equivalence relation on V .
Proof. Let the graph G = (V, E) be simple and G does not contain any self-loops
and parallel edges. Since, each edge is incident to exactly two vertices, each edge
will contribute one degree to each vertex. Hence, each contribute degree 1, to
in-degree of any one vertex and degree 1 to out-degree of one vertex.
X X
d(vi ) = d(vi) (5)
In−degree Out−degree
also,
X X
∴ d(vi ) = d(vi) = Total number of edges of G = e. (6)
In−degree Out−degree
References
[1] Engineering Mathematics Vol.-I and II. A.P Verma and M. N. Mehta. Stu-
dent manual SVNIT, Surat.
[2] Erwin Kreyszig: Advanced Engineering Mathematics, 8th edition, John
Wiley and Sons, (2008).
[3] George B. Thomas, Jr. Ross L. Finley: Calculus with analytical Geometry,
9th edition Addison-Wesley Publishing Company. (2004)
[4] Howard Anton: Calculus, A new horizon, 6th edition, John Willey and
Sons, (2006)
[5] Michael D. Greenberg. Advanced Engineering Mathematics. Prentice-Hall
International, Inc. NJ.
Acknowledgment
I am very much thankful to Prof. P. A. Gajjar, Head of the department, Nottingham
university, Kazakhstan for his valuable guidance for the preparation of this topic.
12