Graph Theory PDF
Graph Theory PDF
Mathematics
Graph Theory
Dr. Nelson K.
Bii
Discrete Mathematics
Graph Theory
13/09/2021
Discrete
Mathematics
Graph Theory
Dr. Nelson K.
Bii
Definition:
1 A graph (or undirected graph) G consists of a set V of
vertices and a set E of edges such that each edge e ∈ E is
associated with an unordered pair of vertices.
2 A directed graph (digraph) G consists of a set V of
vertices and a set E of edges such that each edge e ∈ E is
associated with an ordered pair of vertices.
Graph Theory contd...
Discrete
Mathematics
Graph Theory
Dr. Nelson K.
Bii
Note:
(a) An edge in a graph (directed or undirected ) that is
associated with a pair of vertices say v and w is said to be
incident on v and w ; and v and w are said to be incident
on e and to be adjacent vertices.
(b) If G is a graph (directed or undirected) with vertices V
and edges, E , we write G = (V , E ).
Graph Theory contd...
Discrete
Mathematics
Graphs and Matrices:
Graph Theory
Let G be a graph with vertices v1 , v2 , · · · , vm and edges
Dr. Nelson K.
Bii e1 , e2 , · · · , en , we define:
(a) The Adjacency Matrix of G
Let A = (aij ), be the n × n matrix defined by
1, if {vi , vj }is an edge i.e. vi is adjacent to vj
aij =
0, otherwise
Discrete
Mathematics
Graph Theory
Dr. Nelson K.
Example 1:
Bii
Find the adjacency matrix and the incidence matrix for the
graph shown below.
Graph Theory contd...Examples
Discrete
Mathematics
Solution: (i) Adjacency Matrix
Graph Theory Since G has 5 vertices, the adjacency matrix A is a 5 × 5
Dr. Nelson K.
Bii
matrix.
Discrete
Mathematics
Example 2:
Graph Theory Find the adjacency matrix and the incidence matrix for the
Dr. Nelson K.
Bii
following graphs.
(a)
Graph Theory contd...Examples
Discrete
Mathematics
Solution: (a) Adjacency and Incidence Matrices
Graph Theory
Dr. Nelson K.
Bii
Graph Theory contd...Examples
Discrete
Mathematics
Graph Theory Example 2 (b):
Dr. Nelson K.
Bii
Graph Theory contd...Examples
Discrete
Mathematics Solution: (b) Adjacency and Incidence Matrices
Graph Theory
Dr. Nelson K.
Bii
Graph Theory contd...Exercise
Discrete
Mathematics
Graph Theory
Dr. Nelson K.
Exercise:
Bii
(a) Draw a graph with the following incidence matrix.
(b) Find the adjacency matrix for the graph in (a) above.