Chapter 4
Chapter 4
Directed Graphs
Fikre Bogale
1/16
Outline
Introduction
Definitions and Examples of Directed Graphs (Digraphs)
Representations of Directed Graphs
Types of Graph
2/16
Directed Graphs are graphs in which the edges are one way.
Such graphs are frequently more useful in various dynamical
systems such as:
Digital computer
Flow system
Communication system
Transportation system
3/16
Then
e4 = (D, B) 6= (B.D)
e7 is a loop.
e2 and e3 are parallel edges.
Definition
If G is a digraph, then the graph obtained by ignoring the
direction of the edges in G is called the underlined graph of D.
5/16
Definition
Let G (V , E ) be a digraph and let V 0 be a subset of vertex set
V of G . Suppose E 0 is a subset of E such that the end points
of the edges in E 0 belongs to V 0 . Then H(V 0 , E 0 ) is a sub
digraph of G .
Definition
Suppose G is a directed graph. The out degree of a vertex v
+
of G , written outdeg (v ) deg (v ) , is the number of edges
beginning at v , and
the indegree of v , written
−
indeg (v ) deg (v ) , is the number of edges ending at v .
6/16
Note
A vertex v in a digraph with zero in degree is called a source
and a vertex u with zero out degree is called a sink.
Representation
We can use Adjacency and Incidence matrix to represent
digraphs like undirected graphs.
7/16
Note
A vertex v in a digraph with zero in degree is called a source
and a vertex u with zero out degree is called a sink.
Representation
We can use Adjacency and Incidence matrix to represent
digraphs like undirected graphs.
7/16
Adjacency Matrix:
The Adjacency matrix A = [aij ] of a digraph is defined as a
matrix with:
(
n, where n is number of edges beginning at vi ending at vj
aij =
0, otherwise
8/16
Adjacency Matrix:
The Adjacency matrix A = [aij ] of a digraph is defined as a
matrix with:
(
n, where n is number of edges beginning at vi ending at vj
aij =
0, otherwise
8/16
Example
0 1 0 0 1
1 0 0 1 0
0 0 0 0 0 is the adjacency matrix of a digraph
If A =
1 0 0 0 0
0 1 0 2 0
G , then
1 determine the indegree and outdegree of each vertex.
2 determine the total number of edges in the digraph
3 Draw the digraph
10/16
Incidence Matrix:
The Incidence matrix B = [bij ] of a digraph is defined as a
matrix with:
1, if edge ej begins at vertex vi
bij = −1, if edge ej ends at vertex vi
0, otherwise
11/16
Incidence Matrix:
The Incidence matrix B = [bij ] of a digraph is defined as a
matrix with:
1, if edge ej begins at vertex vi
bij = −1, if edge ej ends at vertex vi
0, otherwise
11/16
12/16
12/16
Then
1 G is not strongly connected, because there is no path v3
to v1 .
2 G is unilaterally connected and it is weak as well.
3 H is strongly connected.
14/16