TEL 341 Module 2
TEL 341 Module 2
Engr. T. J. Shima
MODULE 2: MATRIX REPRESENTATIONS OF A GRAPH
2.1 Introduction
Although a pictorial representation of a graph is very convenient for visual study, a matrix is a
more convenient and useful way of representing a graph to a computer. Therefore, in many
applications of graph theory, such as in electrical network analysis and operations research,
matrices turn out to be the natural way of expression the problem.
2.2 Incidence (or Node) Matrix of a Digraph
The incidence matrix is one of the matrices which represents a graph uniquely. It facilitates
the testing and identification of the independent variables.
For a given graph with 𝑛 nodes and 𝑏 branches, the complete incidence matrix 𝑨𝑖 is a
rectangular matrix of order 𝑛 × 𝑏, whose elements are given by:
1, if jth branch is associated with ith node and oriented away from ith node.
aij = −1, if jth branch is associated with ith node and oriented towards ith node. (2.1)
0, if jth branch is not associated with ith node.
This matrix, therefore, tells us which branches are incident at which nodes and what are the
orientations relative to the nodes.
Example 2.1
Consider the network of Figure 2.1.
Draw the graph of this network and obtain the incidence matrix for the graph.
Solution
The graph of the network in Figure 2.1 is as shown in Figure 2.2.
1
TEL 341-NETWORK ANALYSIS & COMPUTER AIDED DESIGN
The incidence matrix for the graph in Figure 2.2 is as follows:
Example 2.2
Consider the graph shown in Figure 2.3.
1 1 0 0 0 1
−1 0 1 0 −1 0
𝑨𝑖 = [ ]
0 −1 −1 1 0 0
0 0 0 −1 1 −1
1 1 0 0 0 1
𝑨𝑟 = [−1 0 1 0 −1 0]
0 −1 −1 1 0 0
2
TEL 341-NETWORK ANALYSIS & COMPUTER AIDED DESIGN
Thus, the number of possible trees of the graph of Figure 2.3 is:
1 −1 0
1 0 −1
1 1 0 0 0 1 3 −1 −1
0 1 −1
𝑑𝑒𝑡 [−1 0 1 0 −1 0] × = |−1 3 −1| = 16.
0 0 1
0 −1 −1 1 0 0 −1 −1 3
0 −1 0
{ [1 0 0]}
The circuit matrix 𝑩𝑐 of a directed graph is with 𝑒 branches and 𝑙 loops is an 𝑙 × 𝑒 matrix
whose elements are given by 𝑏𝑖𝑗 , such that:
1, if ith loop includes jth branch, and the orientations of the branch and the loop coincide.
bij = −1, if ith loop includes jth branch, but the orientations of the two are opposite.
0, if ith loop does not include the jth branch.
Note that the orientations assigned to each of the four loops is entirely arbitrary. The loop in
the first row is assigned clockwise orientation, in the second row counterclockwise, the third
counterclockwise, and the fourth clockwise. Changing the orientation of any loop will simply
change the sign of every nonzero entry in the corresponding row.
3
TEL 341-NETWORK ANALYSIS & COMPUTER AIDED DESIGN
2.4 Tie-Set Matrix
The fundamental circuits (or tie-sets) each made by a link (with respect to some specified
spanning tree) define a tie-set matrix or fundamental circuit matrix 𝑩𝑓 for a digraph. The
orientation assigned to each of the fundamental circuit is chosen to coincide with that of the
link.
For example, we can obtain the fundamental circuit matrix for the graph in Figure 2.4 by
selecting the spanning tree shown in Figure 2.5.
The fundamental circuit matrix for the digraph in Figure 2.5 is as follows:
It may be observed here that 𝑩𝑓 = (𝑰𝜇 |𝑩𝒕 ), where 𝑰 is the identity matrix, 𝜇 is the number of
links, and 𝑡 corresponds to the number of twigs of the spanning tree.
The cut-set matrix Qa = qij has one row for each possible cut-set of the graph and one
column for each edge, and is defined by:
For example, for the graph of Figure 2.6, there are seven cut-sets (one of which, consisting of
branches 𝑎, 𝑏, 𝑒, and 𝑓, is not shown), and so the cut-set matrix appears as:
4
TEL 341-NETWORK ANALYSIS & COMPUTER AIDED DESIGN
5
TEL 341-NETWORK ANALYSIS & COMPUTER AIDED DESIGN
𝐶1 = {1, 2, 6}, 𝐶2 = {2, 3, 5, 6}, and 𝐶3 = {4, 5, 6}. Therefore, the fundamental cut-set
matrix is obtained as follows:
1 2 3 4 5 6
1 1 0 0 0 1
𝑸𝑓 =
[ 0 1 1 0 1 1]
0 0 0 1 −1 −1
2.7 Adjacency Matrix
Let 𝐺 be a digraph with 𝑛 nodes, containing no parallel branches. Then the adjacency matrix
𝑿𝑎 of the diagraph is an 𝑛 by 𝑛 matrix whose elements are given by: