Principles of Mathematics and Biostatistics: PT02CBIC02 (Unit - I)
Principles of Mathematics and Biostatistics: PT02CBIC02 (Unit - I)
PT02CBIC02 (Unit - I)
February 6, 2018
Contents
1 Matrices 5
1.1 Definition of a Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1.1 Some special matrices . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 Operation on matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2.1 Transpose and Addition of matrices . . . . . . . . . . . . . . . . . . 6
1.2.2 Multiplication of matrices . . . . . . . . . . . . . . . . . . . . . . . 7
1.3 Determinant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.4 Inverse of a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.4.1 Adjoint of a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.4.2 Inverse of a matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Graph Theory 13
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.1.1 Graph and its components . . . . . . . . . . . . . . . . . . . . . . . 13
2.1.2 Incidence and Degree . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.1.3 Isolated vertex, Pendant vertex, Null Graph . . . . . . . . . . . . . 15
2.2 Paths and Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.2.1 Walks, Paths and Circuits . . . . . . . . . . . . . . . . . . . . . . . 15
2.2.2 Connected Graphs, Disconnected Graphs and Components . . . . . 17
2.2.3 Euler Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.2.4 Hamiltonian Paths and Circuits . . . . . . . . . . . . . . . . . . . . 18
2.3 Trees and Fundamental Circuits . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.1 Trees and its properties . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.2 Distance and Centers in a Tree . . . . . . . . . . . . . . . . . . . . 20
2.3.3 Spanning Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.3.4 Fundamental Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.4 Matrix representation of Graphs . . . . . . . . . . . . . . . . . . . . . . . . 21
2.4.1 Incidence matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.4.2 Circuit Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.4.3 Adjacency matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.5 Directed Graphs or Digraphs . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.5.1 Some types of Digraphs . . . . . . . . . . . . . . . . . . . . . . . . 25
2.5.2 Directed Paths and Connectedness . . . . . . . . . . . . . . . . . . 26
2.5.3 Matrices of digraphs . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3
Chapter
1
Matrices
where aij is the entry at the intersection of the ith row and j th column of the matrix A.
In more concise manner, we also denote the matrix A by A = (aij ) thereby suppressing
the order of A or (aij )m×n by specifying its order
A matrix having only one column is called a column matrix or simply a column vector.
Similarly, A matrix having only one row is called a row matrix or simply a row vector.
Definition 1.1.3 (Equality of two matrices). Two matrices A = (aij ) and B = (bij ) are
said to be equal if they have the same order m × n and if aij = bij for all i = 1, 2, . . . , m
and j = 1, 2, . . . , n.
5
6 §1.2. Operation on matrices
2. A matrix having equal number of rows and columns is called a square matrix. Thus,
order of a square matrix is n × n, represented by n only. For example,
" #
2 3
A=
5 −4
3. In a square matrix A = (aij ) of order n, the entries a11 , a22 , . . . , ann are called
diagonal entries of A and they form principal diagonal of the matrix A.
(
1 if i = j
4. A square matrix A = (aij ) of order n in which aij = is called the
0 6 j
if i =
identity matrix and is denoted by In . For example,
" # 1 0 0
1 0
I2 = , I3 = 0 1 0 .
0 1
0 0 1
Definition 1.2.3 (Addition of matrices). Let A = (aij ) and B = (bij ) be two matrices
of order m × n. Then the sum of A and B is denoted by A + B is the matrix C = (cij ),
where cij is given by
cij = aij + bij .
Thus, the addition of two matrices is defined as entry-wise.
Note: Note that, we can define the sum of two matrices only if the order of the two
matrices are same.
h i h i h i
Example 1.2.4. 1. 1 3 + −10 4 = −9 7 .
! ! !
2 8 9 0 11 8
2. + = .
4 −3 −2 6 2 3
Here, the matrix A is of order 2 × 3 and B is a 3 × 3 matrix. Hence, the matrix product
AB is defined and AB will be a 2 × 3 matrix. However, the matrix product BA is not
possible as the number of columns of B are 3 and number of rows of A are 2, not being
same. Now, " # " #
1 + 0 + 2 2 + 0 + 0 1 + 6 + 12 4 2 19
AB = = .
2 + 0 + 1 4 + 0 + 0 2 + 12 + 4 3 4 18
Definition 1.2.8. Two square matrices A and B are said to commute if AB = BA.
Remark 1.2.9. 1. If A is a square matrix of order n, then In A = A = AIn , where In
is the n × n identity matrix defined earlier.
1.3 Determinant
Notation: For a n × n matrix A, we denote the submatrix of A obtained by deleting ith
row and j th column by A(i|j).
1 2 3
Example 1.3.1. Consider the matrix A = 1 3 2. Then
2 4 7
1 2 3 " # 1 2 3 " #
1 2 1 3
A(1|2) = 1 3 2 = , A(1|3) = 1 3 2 = ,
2 7 2 4
2 4 7 2 4 7
whereas,
1 2 3 " # 1 2 3 " #
1 3 1 3
A(2|2) = 1 3 2 = , A(2|3) = 1 3 2 = .
2 7 1 2
2 4 7 2 4 7
Definition 1.3.2 (Determinant of a square matrix). Let A be a square matrix of order
n × n. With A we associate a number, called the determinant of A, denoted by det(A) or
|A| and defined inductively as
n
(−1)1+j a1j det(A(1|j)).
X
det(A) =
j=1
Note that determinant can be defined for any i instead of 1, i.e. for any fixed row i,
we have n
(−1)i+j aij det(A(i|j)).
X
det(A) =
j=1
Notation: For a square matrix A of order n, let Cij = det(A(i|j)), that is, Cij is the
determinant of the submatrix of A obtained by deleting the ith row and j th column.
Example 1.3.3.
" #
a a
1. For a 2 × 2 matrix A = 11 12 , its determinant is given by
a21 a22
a a12
11
det(A) or |A| = = a11 a22 − a12 a21 = a11 C11 − a12 C12 .
a21 a22
a11 a12 a13
2. For a 3 × 3 matrix A = a21 a22 a23 , its determinant is given by
= a11 (a22 a33 − a23 a32 ) − a12 (a21 a33 − a23 a31 ) + a13 (a21 a32 − a22 a31 ).
1 2 3
Example 1.3.4. Consider the matrix A = 2 3 1 . Then determinant of A is given by
1 2 2
3 1 2 1 2 3
det(A) = 1 − 2 + 3
2 2 1 2 1 2
1 2 1
−1
A. If yes, then compute A .
Solution. (Exercise) Check that det(A) = −2 which is non-zero. Hence, A−1 exists, or in
other words, matrix A is invertible. Also, compute the adjoint of A. Check that
−1 1 −1
Adj(A) = 1
1 −1.
−1 −3 1
Then by above formula, check that,
1
− 12 12
−1 1 −1
1 21
A−1 =− 1 1 −1 = − 2 − 21 12 .
2 1 3 1
−1 −3 1 2 2
−2
1.5 Exercises
" # " # " #
1 2 −1 2 2 0 1
Exercise 1.5.1. Let A = ,B= ,C= . Do the following:
0 3 3 4 1 2 4
1. Compute A + B.
2. Find A0 , B 0 and C 0 , i.e. compute the transposes of matrices A, B and C.
3. Compute 4A − 2B.
4. C + C 0 is defined. (True or False). If True, then find C + C 0 . If False, then state
the reason.
5. A + C is defined. (True or False). If True, then find A + C. If False, then state the
reason.
6. Show that A and B do not commute. That is, compute AB and BA and show that
AB 6= BA.
h i 1 3 2 1 0
Exercise 1.5.2. Let A = 1 2 0 , B = 2 0, C = 0 1 −1. Compute the
0 1 −1 0 2
following product of matrices, if possible:
2. B 0 CA and BCA.
1 3 2
Exercise 1.5.3. Let A = −1 0 2
. Compute Adj(A) and hence show that
3 1 −1
A · Adj(A) = 11 I3 .
Exercise 1.5.5. Check in the following cases, whether the matrices are invertible or not.
If yes, then compute their inverse.
!
2 7
1. A =
1 4
!
1 1
2. B =
1 1
−1 −3 1
3
3. C = 6 0 .
1 0 1
! !
−1 − 13 2 1
Exercise 1.5.6. Show that is the inverse of the matrix A = .
−1 − 23 3 −3
2.1 Introduction
2.1.1 Graph and its components
Definition 2.1.1 (Graph). A graph G = (V, E) consists of a set of objects {v1 , v2 , . . .}
called vertices, and another set E = {e1 , e2 , . . .}, whose elements are called edges, such
that each edge ek is associated with an unordered pair of vertices (vi , vj ).
The vertices vi and vj associated with edge ek are called its end vertices.
e1
v1
b
e3 v2 b
b
v5
e5 e4 e2
e7
b b
v3 e6 v4
Definition 2.1.2 (Self-loop). An edge having the same vertex as both its end-vertices
is called a self-loop. Thus, an edge associated with the pair of vertices (vi , vi ) is called a
self-loop.
13
14 §2.1. Introduction
Definition 2.1.3 (Parallel edges). If two edges have the same pair of end-vertices then
they are called parallel edges.
For example, in Figure 2.1, the edge e4 and e5 are parallel edges having end-vertices as
v1 and v3 .
Definition 2.1.4 (Simple graph). A graph that has neither parallel edges nor self loops
is called a simple graph.
Definition 2.1.6 (Adjacent edges). Two non-parallel edges are said to be adjacent if they
are incident on a common vertex.
Definition 2.1.7 (Adjacent vertices). Two vertices are said to be adjacent if they are the
end vertices of the same edge.
Definition 2.1.8 (Degree of a vertex). The number of edges incident on a vertex vi with
self-loops counted twice, is called the degree of the vertex vi . It is denoted by d(vi ).
For example, in Figure 2.1, d(v1 ) = d(v3 ) = d(v4 ) = 3, d(v2 ) = 4 and d(v5 ) = 1.
Remark 2.1.9. Let G be a graph with e edges and n vertices, v1 , v2 , . . . , vn . Since each
edge contributes two degrees, the sum of the degrees of all the vertices in G is twice the
number of edges in G, i.e. 2e. Thus,
n
X
d(vi ) = 2e. (2.1)
i=1
Theorem 2.1.10. The number of vertices of odd degree in a graph is always even.
Proof. Let us consider the vertices with odd and even degrees separately. Then the sum
in left hand side of equation 2.1 can be written as a sum of two sums, where each sum is
taken over the vertices of even and odd degrees, respectively, as follows:
n
X X X
d(vi ) = d(vi ) + d(vi ). (2.2)
i=1 even odd
The left hand side of above equation is 2e which is even number. The first sum on right
hand side of above equation is also even (being the sum of all even numbers). Hence, the
second sum in right hand side of above equation must also be even:
X
d(vi ) = an even number.
odd
Dr. Jay Mehta,
Department of
Mathematics,
Sardar Patel
University.
Definition 2.1.12 (Pendant vertex). A vertex of degree one is called a pendant vertex.
For example, in Figure 2.1, v5 is a pendant vertex as d(v5 ) = 1.
Definition 2.1.13 (Null graph). A graph without edges is called a null graph. That is, a
graph G = (V, E) in which the set E is empty is called a null graph.
Note that, in null graph every vertex is isolated.
b v1
b v2 b v3 b v4 b v5
b v6
b v1 b v1
c g
a a
b b b b
v3 b v2 v3 b v2
d e f d
b b b b
v4 h v5 v4 v5
A vertex, however, may appear more than once in a walk. For example, in Figure 2.3(a),
v1 a v 2 b v 3 c v 3 d v 4 e v 2 f v 5
is a walk shown with heavy (dark) lines. A walk is also called edge train or a chain.
Vertices with which a walk begins and ends are called its terminal vertices. Here, v1
and v5 are the terminal vertices for the walk shown above.
Definition 2.2.2 (Closed walk). A walk that begins and ends at the same vertex is called
a closed walk. A walk which is not closed is called an open walk.
Definition 2.2.3 (Path). An open walk in which no vertex appears more than once is
called a path.
For example, in Figure 2.3,
v1 a v 2 b v 3 d v 4
is a path, whereas
v1 a v2 b v3 d v4 e v2 f v5
is an open walk but not a path (as v2 is repeated in the walk). In other words, a path
does not intersect itself.
Definition 2.2.4 (Length of a path). The number of edges appearing in a path is called
the length of the path. The path given in the above example has length 3.
Thus, it follows that, a single edge which is not a self-loop is a path of length 1.
The terminal vertices of a path are of degree one, whereas the rest of the vertices called
the intermediate vertices are of degree two. This degree is counted only with respect to
the edges included in the path and not the entire graph in which the path is contained.
Definition 2.2.5 (Circuit or Cycle). A closed walk in which no vertex (except the initial
and the final vertex) appears more than once is called the circuit. That is, a circuit is a
closed and non-intersecting walk. A circuit sometimes is also called a cycle.
For example, in Figure 2.3, v2 b v3 d v4 e v2 is a circuit. Clearly, every vertex is a
circuit is of degree 2.
b b
b
b
b
b
b b
b
b
b
b
b b
v1
Theorem 2.2.8. A graph G is disconnected if and only if its vertex set V can be partitioned
into two nonempty, disjoint subsets V1 and V2 such that there exists no edge in G whose
one end vertex is in V1 and other in V2 .
Theorem 2.2.9. If a graph (connected or disconnected) has exactly two vertices of odd
degree, there must be a path joining these two vertices.
b b
b b
b b
b b
b
b b
b b
b b
b b
Definition 2.2.14 (Hamiltonian path). If we remove any one edge from a Hamiltonian
circuit, we are left with a path which is called a Hamiltonian path. Clearly, a Hamiltonian
path in a graph G traverses every vertex of G.
Definition 2.2.15 (Complete Graph). A simple graph in which there exists an edge
between every pair of vertices is called a complete graph. Complete graphs with two, three
and four vertices are shown in the following figure 2.7.
b b b
b b b b
Figure 2.7: Compete graphs with two, three and four vertices
Since every vertex is joined with every other vertex through one edge, the degree of
every vertex is n − 1 in a complete graph G with n vertices. Hence, the total number of
n(n − 1)
edges in G is .
2
A tree is usually denoted by T . Trees with one, two, three and four vertices are shown
in the figure 2.8 below.
b
b b
b b
b b b
b b
b
Figure 2.8: Trees with one, two, three and four vertices
Proof. Since T is a connected graph, there must exists at least one path between every
pair of vertices in T . Now suppose that between two vertices a and b in T there are two
distinct paths. The union of these two paths will contain a circuit and so T cannot be a
tree.
Dr. Jay Mehta,
Department of
Mathematics,
Sardar Patel
University.
Theorem 2.3.3. If in a graph G there is one and only one path between every pair of
vertices then G is a tree
Proof. Existence of a path between every pair of vertices assures that G is a connected
graph. A circuit in a graph (with two or more vertices) implies that there is at least one
pair of vertices a and b such that there are two distinct paths between a and b. Since
G has one and only one path between every pair of vertices, G cannot have any circuit.
Hence, G is a tree.
Dr. Jay Mehta,
Department of
Mathematics,
Sardar Patel
University.
Theorem 2.3.5. Any connected graph with n vertices and n − 1 edges is a tree.
Proof. A minimally connected graph cannot have a circuit otherwise, we could remove one
of its edges in the circuit and still leave the graph connected. Thus, a minimally connected
graph is a tree.
Conversely, suppose a graph G is a tree. if a connected graph G is not minimally
connected then there must exists an edge ei in G such that G − ei is (still) connected.
Therefore, ei is in some circuit, which implies that G is not a tree. Hence, a tree is
minimally connected.
Dr. Jay Mehta,
Department of
Mathematics,
Sardar Patel
University.
Theorem 2.3.8. In any tree (with two or more vertices), there are at least two pendant
vertices.
v1
b
a
e
b
f b v2
v5
h
b
d
g
b b
v4 c v3
Consider the graph above (Figure 2.9) with 5 vertices and 8 edges. Some of the
spanning trees (not all) of the above graph are listed below.
• {a, b, c, d} • {h, f, a, g}
• {b, f, e, d} • {g, b, f, e}
• {g, c, f, e} • {f, b, g, d}
Theorem 2.3.13. Every connected graph has at least one spanning tree.
Proof. Let G be a connected graph. If G has no circuits, it is its own spanning tree. If G
has a circuit, delete an edge from the circuit. This will still leave the graph connected. If
there are more circuits, repeat the procedure till an edge from the last circuit is deleted.
This leaves a connected graph without any circuits that contains all the vertices of G.
Thus, every connected graph has at least one spanning tree.
Dr. Jay Mehta,
Department of
Mathematics,
Sardar Patel
University.
Definition 2.3.14 (Branches and chords). An edge in a spanning tree T is called a branch
of T . An edge of graph G which is not in the spanning tree T is called a chord.
Proof. We know that, there is one and only one path between every pair of vertices in a
tree. Thus, adding an edge adds an additional path and hence a circuit.
Dr. Jay Mehta,
Department of
Mathematics,
Sardar Patel
University.
Definition 2.3.16 (Fundamental circuit). Adding any chord (i.e. an edge not in a
spanning tree) to the spanning tree T will create exactly one circuit. Such a circuit formed
by adding a chord is called a fundamental circuit.
In the above graph given in Figure 2.9, consider the spanning tree T = {d, e, a, b}.
Note that the spanning tree has 4 edges which are branches and the remaining 4 edges in
the graph are chords. Thus, these 4 chords will give 4 fundamental circuits with respect
to T . They are {a, b, c, d, e}, {a, b, f }, {b, c, g}, {a, b, h, e} obtained by adding chords c, f ,
g and h respectively.
Exercise 2.3.17. Find fundamental circuits with respect to other spanning trees of the
graph 2.9.
Such a matrix A is called the vertx edge incidence matrix or simply incidence matrix.
Consider the graph given below. We find the incidence matrix of the same.
v3 b
a v6
b
h
e
b b
v2
v4 b
g
f
c
b b
v1 d v5
a b c d e f g h
v1
0 0 0 1 0 1 0 0
v2 0 0 0 0 1 1 1 1
0 0 0 0 0 0 0 1
A = v3 .
v4 1 1 1 0 1 0 0 0
v5 0 0 1 1 0 0 1 0
v6 1 1 0 0 0 0 0 0
One can clearly make the following observations about the incidence matrix A:
1. Since every edge is incident on exactly two vertices (as there are no self-loops), each
column of A
2. The number of 1’s in each row equals the degree of the corresponding vertex.
3. A row with all 0’s represents an isolated vertex.
4. Parallel edges in a graph produce identical columns. In other words, two columns in
the incidence matrix are identical if the two edges represented by them are parallel.
5. If a graph G is disconnected with components g1 and g2 then the incidence matrix
A(G) of G can be written in the following form:
" #
A(g1 ) 0
A(G) = .
0 A(g2 )
a b c d e f g h
1 1 1 0 0 0 0 0 0
B(G) = 2
0 0 1 0 1 0 1 0.
3 0 0 0 1 0 1 0 0
4 0 0 1 1 1 1 0 0
The following observations can be made about a circuit matrix B(G) of a graph G:
1. A column of all zeros corresponds to a non-circuit edge, i.e. an edge that does not
belong to any circuit.
2. Each row of B(G) is a circuit vector.
3. Unlike incidence matrix, a circuit matrix is capable of representing a self-loop and
the corresponding row will have a single 1.
4. The number of 1’s in a row is equal to the number of edges in the corresponding
circuit.
5. If graph G is disconnected with components g1 and g2 then the circuit matrix B(G)
can be written in a block-diagonal form as follows:
" #
B(g1 ) 0
B(G) = ,
0 B(g2 )
b v3
e8
v2 b
e4
b
e3 v4
e5
b
e1 v5 e7
e2
b
v6
b
e6
v1
The adjacency matrix of the graph given in Figure 2.11 is a 6 × 6 matrix given as
follows:
v1 v2 v3 v4 v5 v6
v1
0 1 0 0 1 1
v2 1 0 0 1 1 0
0 0 0 1 0 0
X = v3 .
v4 0 1 1 0 1 1
v5 1 1 0 1 0 0
v6 1 0 0 1 0 0
Observations about the adjacency matrix that can be made immediately are:
1. The entries along the principal (main) diagonal of X are all 0’s if and only if the
graph has no self-loops. A self-loop at the ith vertex corresponds to xii = 1.
2. The definition of adjacency matrix makes no provision of parallel edges.
3. If the graph has no self-loops (and of course no parallel edges), the degree of a vertex
equals the number of 1’s in the corresponding row or column of X.
4. Permutation of row and of the corresponding columns imply reordering the vertices.
It must be noted that the rows and columns must be arranged in the same order.
Thus, if two rows are interchanged in X, the corresponding columns must also be
interchanged.
5. A graph G is disconnected with components g1 and g2 if and only if its adjacency
matrix X(G) can be partitioned as follows:
" #
X(g1 ) 0
X(G) = ,
0 X(g2 )
where X(g1 ) and X(g2 ) are the adjacency matrices of the components g1 and g2
respectively.
6. Given any square, symmetric, binary matrix Q of order n, one can always construct
a graph G of n vertices (and no parallel edges) such that Q is the adjacency matrix
of G.
e5
v2 b
e4
v1 b
e1 b v3
e3 e2 e8 e9 e
10
e6
b b
v4 e7 v5
In a digraph, an edge is not only incident on a vertex but also incident out of a vertex
and incident into a vertex. If edge ek is incident out of a vertex vi and incident into a
vertex vj , then vi is called the initial vertex and vj is called the terminal vertex of ek . For
example, in the above graph (Figure 2.12) v5 is the initial vertex and v4 is the terminal
vertex of the edge e7 .
An edge for which initial and terminal vertices are same is called a self-loop. For
example, e5 in the above graph. The number of edges incident out of a vertex vi is called
the out-degree of vi and is denoted by d+ (vi ). The number of edges incident into a vertex
vi is called the in-degree of vi and is denoted by d− (vi ). For example,
d+ (v1 ) = 3, d− (v1 ) = 1,
d+ (v2 ) = 1, d− (v2 ) = 2,
d+ (v5 ) = 4, d− (v5 ) = 0.
Clearly, in a digraph G with n vertices and e edges, the sum of all in-degrees is equal
to the sum of all out-degrees and each sum is equal to the number of edges in G, that is,
n n
d+ (vi ) = e = d− (vi ).
X X
i=1 i=1
A vertex for which in-degree and out-degree are both equal to zero is called an isolated
vertex. A vertex v in a digraph is called a pendant vertex if it is of degree (in-degree or
out-degree) one, that is, if
d+ (v) + d− (v) = 1.
Two directed edges are said to be parallel if they are mapped onto the same ordered
pair of vertices. For example in Figure 2.12, e8 , e9 and e10 are parallel edges whereas e2
and e3 are not parallel.
b
b
b b
b b
b
f
v2 b
v4
a
Definition 2.5.2 (Tree with directed edges). A tree is a connected digraph without any
circuits - i.e. neither a directed circuit nor a semicircuit.
2. Circuit Matrix: Let G be a digraph with e edges and q circuits (directed circuits or
semicircuits). An arbitrary orientation (clockwise or counterclockwise) is assigned to
each of the q circuits. Then a circuit matrix B = (bij ) of the digraph G is a q × e
matrix defined as
1, if ith circuit includes jth edge, and the orientation of the edge and circuit coincide
bij = −1, if ith circuit includes jth edge, but the orientation of the two are opposite,
0, if ith circuit does not include jth edge.
Exercise 2.5.3. Find the incidence matrix, circuit matrix and the adjacency matrix in
the following digraph.
v3
b
v6
b
a
h
e b
v2 b
v4
g
f c
b b
v1 d v5