Professional Documents
Culture Documents
Learning Outcome(s):
a. Enlist the various types of graphs
b. Understand information in graphs by getting various inputs with specific object
c. Recognize the complex graphs and understand the intricacy of information or complexity of problem
Graph Models
- Graph is also one of the forms of symbolic representation of descriptive data in terms of points
(verticals) and line segments (edges).
- It is widely used in many fields like Electrical Engineering, telecommunication, genetics, computer
science etc.
- A graph is simply a collection of finite points (called vertices) and line segments (called edges) in which
each edge is assigned to pair of points called end vertices or terminal (not necessarily distinct).
Informally, a graph is a bunch of dots connected by lines. Here is an example of a graph:
Example:
Terminologies in Graph
- Graph: A graph G is an ordered pair (V,E) where V is the non-empty set of vertices and E is the set of
edges in
which each element of E is assigned to a unique unordered pair of elements (not
necessarily distinct) of V. An element of a set E is generally denoted as e – (u, v) or e =
(v, u) where u, v ∈ V. Here u, v are called end vertices of edge e.
Example:
1|Page
AY 2020-2021
ADVANCE DISCRETE MATHEMATICS AND STRUCTURE (6ADMS)
Module Title: Graph Models Page 2 of 5
Faculty: Week 9 Midterm Period
- Loop: If both the end vertices of an edge are same then the edge is called a loop.
- Parallel edges: If two or more edges have same terminal vertices, then these edges are called as
parallel edges.
- Simple graph: A graph without loops and parallel edges is called simple graph.
- Compound graph: A graph which contains loops or parallel edges is called compound graph or
multigraph.
2|Page
AY 2020-2021
ADVANCE DISCRETE MATHEMATICS AND STRUCTURE (6ADMS)
Module Title: Graph Models Page 3 of 5
Faculty: Week 9 Midterm Period
Degree of a vertex: The number of edges incident on a vertex v is called degree of vertex v,
with loop being counted twice.
Notation: Degree of v = d (v)
Example:
Representation of Graph
Graph can be represented in following methods:
3|Page
AY 2020-2021
ADVANCE DISCRETE MATHEMATICS AND STRUCTURE (6ADMS)
Module Title: Graph Models Page 4 of 5
Faculty: Week 9 Midterm Period
- Structure representation
o A graph can be represented by structure with points and lines each line has two end points.
Example:
Example:
Possible paths; Adjacency Matrix
P→ Q, Q→P P Q R S T
P→ R, R→P, P→ T, T→P P 0 1 1 0 1
R→ T, T→R, R→ S, S→R Q 1 0 0 0 0
S→ T, T→S, P→ T, T→P R 1 0 0 1 1
S 0 0 1 0 1
T 1 0 1 1 0
Example:
Adjacency Matrix
P Q R S T
P 0 1 0 0 1
Q 0 0 0 0 0
R 1 0 0 1 0
S 0 0 0 0 0
T 0 0 1 1 0
4|Page
AY 2020-2021
ADVANCE DISCRETE MATHEMATICS AND STRUCTURE (6ADMS)
Module Title: Graph Models Page 5 of 5
Faculty: Week 9 Midterm Period
▪ Incidence matrix: Let G be a graph in structural form with n vertices v1, v2 ...vn
and m edges e1, e2, ...em then the incidence matrix of G denoted by I(G) is, I(G) =
= [aij] n x n
Where:
aij = 0 if vi is not incident with ej
1 if vi is incident with ej
2 if ej is loop
Example:
Incidence Matrix
e1 e2 e3 e4 e5
V1 1 1 0 0 1
V2 1 1 2 1 0
V3 0 0 0 1 1
5|Page
AY 2020-2021