Professional Documents
Culture Documents
Shamaas MUNIR
Shamaas MUNIR
Student ID:MC200203972
Shamaas Munir
Contents
1.1Graph in Graph Theory
1.2 Graph
1.3 Order and degree of a Graph
1.4 Simple Graph
1.5 Loop and Multiple Graphs
1.6 Connected Graph
1.7 Disconnected Graph
1.8 Directed and Undirected Graph
1.9 Regular and Irregular Graph
1.1 0Finite and Infinite Graph
1.11 Complete Graph
1.12 Cycle Graph
1.13 Tree
1.13.1 Star Graph
1.13.2 Path graph
1.14 Metric Dimension of Graph
1.1 Graph in Graph Theory
Graph theory is an ancient discipline, the first paper on graph theory was written
by Leonhard Euler in 1736, however the first textbook on graph theory appeared only in 1936.
By Denes Konig(Konig,1936).
In mathematical, graph theory is the study of graphs, which are mathematical structure used
to model pairwise relation between objects. A graph in this context is made of vertices which
are connected by edges.
Definition:
Graph is a mathematical representation of network and it describes the relationship
between lines and points. A graph consists of some points and lines between them. The length
of the lines and position of the points do not matter. Each object in a graph is called nodes.
Graph theory is used in dealing with problem which have a fairly natural graph
network structure, for example:
• road network –nodes =towns / road junctions, arcs=road
• Communication network –telephone system.
Application of graph theory:
Graph theory is used to find shortest path in road or a network. In
Google Maps, various location are represented as vertices or nodes and road are represented
as edges and graph theory is used to find the shortest path between two nodes.
In Google Maps commination, biology, physics, computer science, chemistry and social
media etc.
1.2Graph:
Definition:
A graph G is consists of sets of V vertices and E is the collection of unordered pair of
vertices called edges. A graph is symbolically represented as
1 a 2
b
f d 3
c
5 e 4
G={V,E}
V={v1,v2,v3………vn}
V is the sets of vertices
E={E1,E2,E3…….En}
E is the sets of edges
Example:
In above shape
G={v,E}
V={1,2,3,4}
E={a,b,c,d,e,f}
a={1,2}
b={2,3}
c={3,4}
d={2,4}
e={4,5}
f={1,5}
V1 v2 v3
V4 v5
Vertex v1,having two edges incident with this vertex,therefore,v1 has degree 2
Common notation ,we can write as:
Deg(v1)=2
Deg(v2)=3
Deg(v3)=1
Deg(v4)=2
Deg(v5)=0
Vertex v2 has 3 edges connected to it, so its degree is 3 .and v3 is one .v4 is also degree 2 .
And v5 has no edges connected to it , so its degree is zero.
1.3 Simple Graph:
A graph having no loop and no multiple edges in it is called simple graph.
Example:1
A
B c
Here
This graph consists of three vertices and three edges.
There are neither self loop nor parallel edges.
Therefore, it is a simple graph.
Eamaple:2
V1 v2
V5 v3
V6
1.5 Loop Graph
A graph that contain a loop is called a loop graph.
Example:
Uu u
Vv ww
v
Example:
B C
A E
B D f H
c
G
In this graph, we can visit from any one vertex to any other vertex.
There exist at last one path between every pair of vertices.
Therefore, it is a connected graph.
Example:1
Example:2
a c
b d
In this fig vertex a, and vertex b, makes a path ab, and Vertex a, vertex, does not make any
path.vertex c, vertex d, make a path cd.
1.8 Directed Graph
A graph in which all the edges are directed is called as a directed graph.
All the edges of a directed graph contain some direction.
Example :
A B
D c
Graph consists 4 vertices and 4 directed edges.
Since all the edges are directed ,therefore it is a directed graph.
a c e
d
g f
in this graph , a,b,c,d,e,f,g, are the vertices , and ab,bc, cd,da,ag,gf are the edges of the graph .
since it is undirected graph, the edges ‘ab’ and ‘ba’ are same similarly other edges also in the
same way.
For example:
G1 a b
d Degree is 2 c
Example:2
1 2 3 4 5 6
1.10 Finite Graph
The number of vertices and number and edges are accountable are called finite
graph.
For example
Number of Vertices =5
Number of Edges =6
Shown in fig.
Here
This graph consists of infinite number of vertices and edges.
Therefore, it is an infinite graph.
1.11 Complete Graph
A graph is a complete graph if every pair of its vertices are adjacent.
Example:
a
a p q i
j k
b c r s l m
I II III
• Graph I has 3vrtices with 3edges which is forming a cycle ‘ab,bc,ca.
• Graph II has 4vretices with 4edges is forming a cycle ‘pq,qs,sr,rp.
• Graph III has 5vertiecs with 5edges is forming a cycle ‘ik,km,ml,lj,ji.
Example:2
G2
G3