Next Article in Journal
GOTRIPLE: A User-Centric Process to Develop a Discovery Platform
Previous Article in Journal
SyrAgri: A Recommender System for Agriculture in Mali
Previous Article in Special Issue
Perspectives of Platform Operators, Content Producers, and Information Receivers toward Health and Fitness Apps
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Matrix Approach for Analyzing Signal Flow Graph

1
Department of Mechanical Engineering, Lunghwa University of Science and Technology, Taoyuan City 333326, Taiwan
2
Department of Mechanical Engineering, National Chiao Tung University, Hsinchu 30010, Taiwan
*
Author to whom correspondence should be addressed.
Submission received: 19 October 2020 / Revised: 25 November 2020 / Accepted: 27 November 2020 / Published: 30 November 2020
(This article belongs to the Special Issue Selected Papers from IIKII 2020 Conferences)

Abstract

:
Mason’s gain formula can grow factorially because of growth in the enumeration of paths in a directed graph. Each of the (n − 2)! permutation of the intermediate vertices includes a path between input and output nodes. This paper presents a novel method for analyzing the loop gain of a signal flow graph based on the transform matrix approach. This approach only requires matrix determinant operations to determine the transfer function with complexity O(n3) in the worst case, therefore rendering it more efficient than Mason’s gain formula. We derive the transfer function of the signal flow graph to the ratio of different cofactor matrices of the augmented matrix. By using the cofactor expansion, we then obtain a correspondence between the topological operation of deleting a vertex from a signal flow graph and the algebraic operation of eliminating a variable from the set of equations. A set of loops sharing the same backward edges, referred to as a loop group, is used to simplify the loop enumeration. Two examples of feedback networks demonstrate the intuitive approach to obtain the transfer function for both numerical and computer-aided symbolic analysis, which yields the same results as Mason’s gain formula. The transfer matrix offers an excellent physical insight, because it enables visualization of the signal flow.

1. Introduction

A signal flow graph set up directly after inspecting a physical system without first formulating the associated equations is one of the most common tools for representing a complicated linear control system. It offers a visual structure upon which causal relationships among several variables can be compared. In the past several decades, flow graph analysis has been widely used in electrical engineering [1,2,3,4,5,6], computer science, biological science [7], and for solving economic problems. Furthermore, the applications of graph theory in conjunction with symbolic network analysis [8,9] and the computer-aided simulation of electronic circuits [10] have been widely encountered in recent years.
Mason’s gain formula [11,12], or Mason’s rule, is a systematic method for obtaining the transfer function of a signal flow graph between input and output nodes, especially for complex and high-dimensional systems. Mason evaluated the determinant of a signal flow graph and proved the rule by considering the determinant value. The advantage of Mason’s rule is that it can be drawn directly from the physical system without setting up the equations in matrix form or requiring any reduction procedure for the flow graph [13,14,15]. Coates described an alternative representation of the flow graph [16,17] that is derived from algebraic equations written in terms of the incidence and weight matrices of the graph. Coates’ gain formula can be used to find the transfer function algebraically by labeling each signal, writing the equation for how that signal depends on other signals, and then solving multiple equations for the output signal in terms of the input signal.
Mason’s and Coates’ gain formulas are classics in flow graph theory [18]. These two formulations are closely related in terms of both the manipulations and topological formulas. Mason’s rule not only retains the intuitive character of the block diagram, but also enables determination of the gain between input node and output nodes of a signal flow graph through inspection. Mason’s graph is a more natural representation of a physical system than Coates graph. Coates’ gain formula, by contrast, computes the output directly regardless of the number of inputs present in the system. Mason’s graph reduction rules cannot be applied directly in Coates’ gain formula because the direct computation of a given output used in this method is not focused on the same cause and effect formulation of equations as in the case of Mason’s rule [18]. Mason’s rule involves dividing a signal flow graph into several independent loop gains and analyzing the input–output transfer function. The existence of non-touching loops increases the complexity of the formula. Neither determining the exact number of independent loop gains nor recognizing the touching loops in a complex system is easy. In general, Mason’s gain formula is complicated to implement without making mistakes.
This paper proposes a systematic method called the transfer matrix method [19] to determine the transfer function of a system, and it presents a physical insight into the transfer matrix. As an alternative to Coates’ gain formula for solving the system, a solution can be obtained by considering the eigenvector of the transfer matrix for a signal flow graph. A recursive reduction of a signal flow graph is performed using cofactor expansion, which successively eliminates nodes to obtain a subgraph layer analysis and merges the results obtained on the submatrices. Each cofactor expansion reduces the order of the associated matrix by one. The system is then separated into several loop groups including backward and forward paths. From the viewpoint of loop groups, the new method provides an excellent physical insight through visualization of the signal flow.
The organization of the report is as follows. First, in Section 2, the theoretical foundations of the transfer matrix and its representation in the signal flow graphs are described. In Section 3, it is explained that the transfer function overcomes the difficulty of implementing the traditional Mason’s gain formula. The augment matrix is performed recursively through cofactor expansion to systematically obtain all possible non-touching loop combinations and represent them compactly. The pseudocode has been constructed to determine the transfer function and calculate the loop group gain. In Section 4, a graph decomposition method is introduced to calculate the forward path gain between two nodes with feedback layers. The method in graph decomposition can give an excellent visualization to the signal flow. Compared with the traditional Mason’s gain formula, two examples have been presented to illustrate the methods of calculating the loop group gains. The fact that determinant of the cofactor matrix is the same as the loop group gain is discussed in Section 5. When a virtual backward edge from the output node to the input node is added in Section 6, the numerator of the transfer function can be regarded as the forward path gain. The next section discusses the complexity analysis of the algorithm. Finally, Section 8 concludes the report.

2. Transfer Matrix Method

As shown in Figure 1, a node-ordered signal flow graph that contains the set of nodes X and the directed edge set E can be related by the associated equation [19]
A T · X = X
where
A T = [ 1 0 0 0 a 0 , 1 a 1 , 1 a n 1 , 1 a n , 1 : : : : : a 0 , n 1 a 1 , n 1 a n 1 , n 1 a n , n 1 a 0 , n a 1 , n a n 1 , n a n , n ]
X = [ x 0 x 1 x n 1 x n ] T
and a i , j denotes the directed edge (or gain) from source node x i to sink node x j .
The nodes are arranged in a descending order. The edges may be classified as forward, backward, and self-loop edges. When the elements are located below the main diagonal, the associated edges pointing from a source node x i to sink node x j satisfy the node ordering, namely that node x i is numbered prior to node x j . These edges are called forward edges. Against the edge direction, the elements located above the main diagonal are called backward edges. The elements on the diagonal are self-loop edges that consist of only one node. Because the self-loop edge is also one type of backward edge, the elements that are located above the diagonal are called strictly backward edges.
To evaluate the eigenvector of the square matrix A T associated with λ = 1 , the first row of ( I A T ) may be replaced with a row vector [ x ^ 0 x ^ 1 x ^ n ] that contains symbols for all terms in the numerators of node variables x 0 , x 1 ,…, x n , respectively. The augmented matrix A a yields
A a = [ x ^ 0 x ^ 1 x ^ n 1 x ^ n a 0 , 1 ( 1 a 1 , 1 ) a n 1 , 1 a n , 1 : : : : : a 0 , ( n 1 ) a 1 , ( n 1 ) ( 1 a n 1 , n 1 ) a n , n 1 a 0 , n a 1 , n a n 1 , n ( 1 a n , n ) ]
The determinant of the augmented matrix A a is expressed as the sum of the cofactor of the first row of the matrix multiplied by the corresponding entry in the first row. In other words,
det ( A a ) = α 0 x ^ 0 + α 1 x ^ 1 + + α n 1 x ^ n 1 + α n x ^ n
The cofactor α j equals ( 1 ) j det ( M 1 , j + 1 ( A a ) ) , where ( 1 ) j M 1 , j + 1 ( A a ) is the cofactor matrix, a signed version of a minor M 1 , j + 1 ( A a ) defined by deleting the first row and the j+1th column from the augmented matrix A a . The ratio between the cofactor α j attributable to the cofactor α 0 satisfies the equilibrium relation between the output node x j and the input node x 0 . For a single input multiple output (SIMO) system, the transfer function G j is then expressed as follows.
G j = α j α 0 = ( 1 ) j det ( M 1 , j + 1 ( A a ) ) det ( M 1 , 1 ( A a ) )   for   j = 1 ,   2 ,   ,   n

3. Mason’s Gain Formula

Mason’s gain formula [11,12] is a method for finding the transfer function that associates the input and output of a linear signal-flow graph with many variables and loops. The Mason’s gain formula is
G = y o u t y i n = k G K Δ k Δ
Δ = 1 L i + L i L j L i L j L k + + ( 1 ) m
where
  • y i n is the input-node variable
  • y o u t is the output-node variable
  • G is the transfer function between y i n and y o u t
  • Δ is the determinant of the graph
  • G K is path gain of the kth forward path between y i n and y o u t
  • Δ K the cofactor value of Δ for the kth forward path, with the loops touching the kth forward path removed
  • L i is loop gain of each closed loop in the system
  • L i L j is product of the loop gains of any two non-touching loops
  • L i L j L k is product of the loop gains of any three pairwise non-touching loops
Consider a signal flow graph with nested loops. The implement procedures of the Mason’s gain formula first list all forward paths with corresponding gains and all loops. Once all loops have been generated, they should be combined in all possible ways so that all loops in a combination are non-touching. Make a list of all pairs of non-touching loops taken two, three, four, etc. at a time until no more contact, and multiply their gains ( L i L j ,   L i L j L k ,   ) . Calculate the determinant Δ and the cofactor Δ K , and then apply the formula. Lu et al. [20] proposed an algorithm combined with Johnson method for generating the combinations of the non-touching loops. If there are too many variables in the signal flow graph, this method will make the expression of the transfer function very complicated and difficult to analyze. Prasad [15] used tree structure and/or factoring technique to generate and represent non-touching combinations of paths and loops. The tree structure is suitable for the small graph size and most loops are touching. When most loops are non-touching, the factoring method is better to remove combinations of touching loops from all combinations of loops. Beillahi et al. [21] proposed a higher-order logic formation of signal flow graph in HOL Light theorem prover. The touching loop is detected by pre-checking each loop with a higher rank loop than the loop considered in the given loops list. However, these methods are not to generate and represent non-touching combinations of paths and loops systematically and efficiently.
We reduce the signal flow graph recursively through cofactor expansion to systematically obtain all possible non-touching loop combinations and represent them compactly. We also use a set of loops that share the same backward edges, referred to as a loop group, to simplify the loop enumeration. The determinant of the cofactor matrix is equivalent to the loop group gain associated with the backward edges. It provides an excellent physical insight of the signal flow. Although the numerator and denominator of the Mason’s gain formula have different forms, our method shows that the numerator maybe regarded as the loop group gain when the unit virtual backward edge from output node to input node is added. The transfer function G j of the internal node x j with respect to input node x 0 for the SIMO system may be directionally calculated by using matrix determinant according to Equation (4). This method helps to improve clarity and understand the interrelations between entire system and subsystems. Our method is simple and useful enough to teach students the subject of Mason’s formula as a part of courses in control systems, digital signal processing, graph theory, and applications.
The pseudocode showing Algorithm 1 is implemented using the transfer matrix method. The pseudocode calculates the transfer function as well as the loop group gain. It takes as an input, the system matrix A T determined in Equation (1) and produces the output as per the requirements. The augmented matrix A a is calculated using the operation ( I A T ) .
The transfer function method consists of a numerator and a denominator term. The numerator term is ( 1 ) j det ( M 1 , j + 1 ( A a ) where j represents the output node index and M 1 , j + 1 ( A a ) is determined by deleting the first row and j+1 column from A a . The denominator term on the other hand is determined by det ( M 1 , 1 ( A a ) ) , where M 1 , 1 ( A a ) is obtained by deleting the first row and the first column of the A a matrix.
The loop group gain between p i to p k is calculated by multiplying the forward path gain from p i to p k by the backward edge gain a k ,   i . The forward path gain is determined by det ( H ( j ) ( p 1 , , p j ) | ( n , n ) ( m , m + j ) ) as discussed in Section 4, where the arguments from p 1 to p j in descending order denote that the deleted columns are associated with the nodes from x p 1 to x p j , respectively.
Algorithm 1. Transfer matrix method’s workflow
Pseudocode:
Requirement:
  (1) transfer function G j with output node p j and input node p 0
  (2) loop group gain with nodes from p i to p k
Input:
  adjacent metric A T
  If Requirement == transfer function:
    Input.append(0, j);
  else if Requirement == loop group gain:
    Input.append(i, k);
Output: required result
  augmented matrix A a ( A T I )
  If Requirement == Transfer function:
     α j ( 1 ) j det ( M 1 , j + 1 ( A a ) )
     α 0 det ( M 1 , 1 ( A a ) )
    transfer function G j = α j α 0   given in Equation (4)
    return G j
  If Requirement == loop group gain (given node:   p i , and p k )
    forward path= F det ( H ( j ) ( p 1 , , p j ) | ( n , n ) ( m , m + j ) )  given in Section 4
   loop group grain= L G a k ,   i · F
    return L G

4. Graph Decomposition

The recursive reduction of a signal flow graph proceeds by cofactor expansion. Each cofactor expansion reduces the order of the associated matrix by one. Layered (or hierarchical) graph drawing is a type of graph drawing in which the vertices of a directed graph are drawn in horizontal rows or layers with the edges generally directed downward. The number of feedback layers correlates to the number of strictly backward edges that form feedback loops during the reduction process. An alternative matrix form, as defined below, reveals the multiple feedback layers of the signal flow graph.
Definition 1.
An ( n m j + 1 ) × ( n m j + 1 ) square matrix H ( j ) ( p 1 , , p j ) | ( n , n ) ( m , m + j ) with multiple feedback layers j is shown as.
Information 11 00562 i001
where a i , j and a i , j * indicate the directed edge and equivalent weight of the forward edge from node x i to node x j , respectively. When the edge is a self-loop edge, the value is 1 a i , i ; otherwise, the value is a i , j or a i , j * . The right upper index (m, m+j) and lower index (n, n) denote that the elements at the top entry (1, 1) and bottom entry (n – m − j + 1, n – m – j + 1) are a forward edge from node x m to node x m + j and the self-edge of the last node x n , respectively. The arguments from p 1 to p j in descending order denote that the deleted columns are associated with the nodes from x p 1 to x p j , respectively. The matrix should shift the coordinate of the characteristic element ( 1 a m + j , m + j ) at the first row to the right by j columns when the total number of deleted nodes is j. The value j given in the left upper index is called the feedback layer.
Example 1.
Consider the signal flow diagram shown in Figure 2a. The matrix M 1 , 1 ( A a ) obtained by eliminating the first row and first column of the augmented matrix A a is shown as
M 1 , 1 ( A a ) = [ 1 0 0 0 a 5 , 1 0 a 1 , 2 1 0 0 0 a 6 , 2 a 1 , 3 a 2 , 3 1 0 0 0 0 0 a 3 , 4 1 0 0 0 a 2 , 5 0 a 4 , 5 1 0 0 0 0 a 4 , 6 a 5 , 6 1 ]
The determinant of M 1 , 1 ( A a ) is expressed as
det ( M 1 , 1 ( A a ) ) = 1 a 5 , 1 [ ( a 1 , 2 a 2 , 3 + a 1 , 3 ) a 3 , 4 a 4 , 5 + a 1 , 2 a 2 , 5 ] a 6 , 2 [ ( a 2 , 3 a 3 , 4 a 4 , 5 + a 2 , 5 ) a 5 , 6 + a 2 , 3 a 3 , 4 a 4 , 6 ] a 6 , 2 a 5 , 1 [ a 1 , 3 a 3 , 4 a 4 , 6 a 2 , 5 ]
Figure 3 shows the intuitive approach to find each minor in the matrix of minors. The matrix of minors represents the signal flow diagram beside each cofactor calculations done in Figure 3. The loop group consists of the strictly backward edge and the forward path. This graph includes two strictly backward edges: a 5 , 1 and a 6 , 2 . As shown in Figure 2b, the forward path gain that traverses paths from the input node x 1 to the node x 5 in the direction of the graph flow is ( a 1 , 2 a 2 , 3 + a 1 , 3 ) a 3 , 4 a 4 , 5 + a 1 , 2 a 2 , 5 . Similarly, the forward path gain from the input node x 2 to the node x 6 is ( a 2 , 3 a 3 , 4 a 4 , 5 + a 2 , 5 ) a 5 , 6 + a 2 , 3 a 3 , 4 a 4 , 6 . The red solid and red dotted lines indicate the backward and forward paths, respectively. Figure 3, Part A calculates the determinant of cofactor matrix with respect to 1, and hence there is no signal flow through the nodes a 1 , 3 ,   a 1 , 2 and a backward edge a 5 , 1 . The later cofactor calculations have been done in accordance of calculating the whole determinant. In each figure, a cross marked line determines no signal flow. Figure 3, Part B calculates the determinant of cofactor matrix with respect to a 5 , 1 and hence no signal flows through a 5 , 6 . The products of the loop gains with these two associated backward edges are as
{ L G 1 } = a 5 , 1 [ ( a 1 , 2 a 2 , 3 + a 1 , 3 ) a 3 , 4 a 4 , 5 + a 1 , 2 a 2 , 5 ]
{ L G 2 } = a 6 , 2 [ ( a 2 , 3 a 3 , 4 a 4 , 5 + a 2 , 5 ) a 5 , 6 + a 2 , 3 a 3 , 4 a 4 , 6 ]
Although the loop group { L G 1 } overlaps loop group { L G 2 } at nodes x 2 , x 3 , x 4 , and x 5 , a forward path that starts and ends at node x 1 and passes through nodes x 3 , x 4 , x 6 , x 2 , and x 5 exists. The forward gain is a 1 , 3 a 3 , 4 a 4 , 6 a 2 , 5 . One touching loop combination exists of these two strictly backward edges with loop gains
{ L G 1 & L G 2 | t o u c h i n g } = a 6 , 2 a 5 , 1 [ a 1 , 3 a 3 , 4 a 4 , 6 a 2 , 5 ]
The determinant of the graph may be expressed in Mason’s gain formula by alternating the sign of the two touching loop groups.
Δ = 1 [ { L G 1 } + { L G 2 } ] + [ ( 1 ) · { L G 1 & L G 2 | t o u c h i n g } ]
The traditional Mason’s gain formula includes seven simple loops with loop gains:
{ L 1 } = a 5 , 1 a 1 , 2 a 2 , 3 a 3 , 4 a 4 , 5 { L 2 } = a 5 , 1 a 1 , 3 a 3 , 4 a 4 , 5 { L 3 } = a 5 , 1 a 1 , 2 a 2 , 5 { L 4 } = a 6 , 2 a 2 , 3 a 3 , 4 a 4 , 5 a 5 , 6 { L 5 } = a 6 , 2 a 2 , 5 a 5 , 6 { L 6 } = a 6 , 2 a 2 , 3 a 3 , 4 a 4 , 6 { L 7 } = a 6 , 2 a 5 , 1 a 1 , 3 a 3 , 4 a 4 , 6 a 2 , 5
Two of these seven loops touch each other. Thus, the determinant of the graph yields
Δ = 1 [ { L 1 } + { L 2 } + { L 3 } + { L 4 } + { L 5 } + { L 6 } + { L 7 } ]
The loop group approach around the associated backward edges and traditional simple loop approach yield the same result.
Example 2.
Consider the signal flow diagram shown in Figure 4a. The matrix M 1 , 1 ( A a ) obtained by eliminating the first row and first column of the augmented matrix A a is
M 1 , 1 ( A a ) = [ 1 0 0 0 0 0 0 0 a 9 , 1 a 1 , 2 1 0 0 0 0 0 0 0 0 a 2 , 3 1 a 4 , 3 0 0 0 0 0 0 0 a 3 , 4 1 a 5 , 4 0 0 0 0 0 0 0 a 4 , 5 1 0 0 0 0 0 a 2 , 6 0 0 0 1 a 7 , 6 0 0 0 0 0 0 0 a 6 , 7 1 a 8 , 7 0 0 0 0 0 0 0 a 7 , 8 1 0 0 0 0 0 a 5 , 9 0 0 a 8 , 9 1 ]
Using the cofactor expansion of the determinant along the first row iteratively yields
det ( M 1 , 1 ( A a ) ) =   ( 1 a 4 , 3 a 3 , 4 a 5 , 4 a 4 , 5 ) ( 1 a 7 , 6 a 6 , 7 a 8 , 7 a 7 , 8 ) a 9 , 1 [ a 1 , 2 a 2 , 3 a 3 , 4 a 4 , 5 a 5 , 9 ( 1 a 6 , 7 a 7 , 6 a 7 , 8 a 8 , 7 ) + a 1 , 2 a 2 , 6 a 6 , 7 a 7 , 8 a 8 , 9 ( 1 a 4 , 3 a 3 , 4 a 5 , 4 a 4 , 5 ) ]
Figure 4b shows five strictly backward edges: a 4 , 3 , a 5 , 4 , a 7 , 6 , a 8 , 7 , and a 9 , 1 in the signal flow graph. The forward path gains for the first four backward edges are a 3 , 4 , a 4 , 5 , a 6 , 7 , and a 7 , 8 , respectively. Supposing that H ( 1 ) ( 9 ) | ( 8 , 9 ) ( 1 , 2 ) be a matrix of one feedback layer, which results from the elimination of the first row and the last column of the matrix M 1 , 1 ( A a ) , the mathematical expression of H ( 1 ) ( 9 ) | ( 8 , 9 ) ( 1 , 2 ) is shown as
H ( 1 ) ( 9 ) | ( 9 , 9 ) ( 1 , 2 ) = [ a 1 , 2 1 0 0 0 0 0 0 0 a 2 , 3 1 a 4 , 3 0 0 0 0 0 0 a 3 , 4 1 a 5 , 4 0 0 0 0 0 0 a 4 , 5 1 0 0 0 0 a 2 , 6 0 0 0 1 a 7 , 6 0 0 0 0 0 0 a 6 , 7 1 a 8 , 7 0 0 0 0 0 0 a 7 , 8 1 0 0 0 0 a 5 , 9 0 0 a 8 , 9 ]
The determinant of H ( 1 ) ( 9 ) | ( 9 , 9 ) ( 1 , 2 ) is the gain for the possible forward paths from node x 1 to node x 9 . The strictly backward edges result in five loop groups with loop group gains.
{ L G 1 } = a 4 , 3 a 3 , 4 { L G 2 } = a 5 , 4 a 4 , 5 { L G 3 } = a 7.6 a 6 , 7 { L G 4 } = a 8 , 7 a 7 , 8 { L G 5 } = a 9 , 1 det ( H ( 1 ) ( 9 ) | ( 9 , 9 ) ( 1 , 2 ) ) = a 9 , 1 [ a 1 , 2 a 2 , 3 a 3 , 4 a 4 , 5 a 5 , 9 ( 1 a 6 , 7 a 7 , 6 a 7 , 8 a 8 , 7 ) + a 1 , 2 a 2 , 6 a 6 , 7 a 7 , 8 a 8 , 9 ( 1 a 4 , 3 a 3 , 4 a 5 , 4 a 4 , 5 ) ]
The non-touching loop groups are identified two at a time. Loop group 1 does not touch loop groups 3 or 4, and neither does loop group 2. Notably, loop groups 1–4 all touch loop group 5. Thus, the combinations of the non-touching loop gains identified two at a time are obtained as
{ L G 1 & L G 3 | n o n t o u c h i n g } = { L G 1 } · { L G 3 } = ( a 4 , 3 a 3 , 4 ) ( a 7 , 6 a 6 , 7 ) { L G 1 & L G 4 | n o n t o u c h i n g } = { L G 1 } · { L G 4 } = ( a 4 , 3 a 3 , 4 ) ( a 8 , 7 a 7 , 8 ) { L G 2 & L G 3 | n o n t o u c h i n g } = { L G 2 } · { L G 3 } = ( a 5 , 4 a 4 , 5 ) ( a 7 , 6 a 6 , 7 ) { L G 2 & L G 4 | n o n t o u c h i n g } = { L G 2 } · { L G 4 } = ( a 5 , 4 a 4 , 5 ) ( a 8 , 7 a 7 , 8 )
No combination exists of more than two non-touching loop groups. According to Mason’s gain formula, the determinant of the graph may be rewritten as
det ( M 1 , 1 ( A a ) ) = [ 1 { L G 1 } { L G 2 } ] · [ 1 { L G 3 } { L G 4 } ] { L G 5 }
which is identical to Equation (13). Figure 5 shows the approach to calculate the minors at each decomposition.

5. Forward Path Gain

The explanations of Figure 5 are similar to Figure 3 which explains the signal flow visualization while calculating the determinant of each cofactor. From Figure 2, Figure 3, Figure 4 and Figure 5, the red dashed lines and red solid lines indicate the possible forward paths and the associated backward edge, respectively. Consider the strictly backward edge a 5 , 1 of Example 1 shown in Figure 2. The matrix H ( 1 ) ( 5 ) | ( 6 , 6 ) ( 1 , 2 ) resulting from the elimination of the incoming branches of the sink node x 1 and outgoing branches of the source node x 5 with one feedback layer is.
H ( 1 ) ( 5 ) | ( 6 , 6 ) ( 1 , 2 ) = [ a 1 , 2 1 0 0 a 6 , 2 a 1 , 3 a 2 , 3 1 0 0 0 0 a 3 , 4 1 0 0 a 2 , 5 0 a 4 , 5 0 0 0 0 a 4 , 6 1 ]
The determinant of H ( 1 ) ( 5 ) | ( 6 , 6 ) ( 1 , 2 ) is [ ( a 1 , 2 a 2 , 3 + a 1 , 3 ) a 3 , 4 a 4 , 5 + a 1 , 2 a 2 , 5 ] + [ a 6 , 2 a 1 , 3 a 3 , 4 a 4 , 6 a 2 , 5 ] . The first term is identical to the forward path gain of { L G 1 } , and the second term equals the product of the strictly backward edge a 6 , 2 and the forward path gain of { L G 1 & L G 2 | t o u c h i n g } . These two terms reveal the total forward gain from node x 1 to node x 5 . The matrix H ( 2 ) ( 5 , 6 ) | ( 6 , 6 ) ( 1 , 3 ) obtained by deleting the source and sink nodes of two strictly backward edges a 5 , 1 and a 6 , 2 with two feedback layers can be expressed as
H ( 2 ) ( 5 , 6 ) | ( 6 , 6 ) ( 1 , 3 ) = [ a 1 , 3 a 2 , 3 1 0 0 0 a 3 , 4 1 0 a 2 , 5 0 a 4 , 5 0 0 0 a 4 , 6 ]
The determinant of H ( 2 ) ( 5 , 6 ) | ( 6 , 6 ) ( 1 , 3 ) is a 1 , 3 a 3 , 4 a 4 , 6 a 2 , 5 ; this equals the forward path gain of { L G 1 & L G 2 | t o u c h i n g } . Figure 3 shows how some of the forward path gain associated with the other strictly backward edge a 6 , 2 is verified.
As shown in Figure 4b, consider Mason’s gain formula of the possible forward paths with the associated backward edge a 9 , 1 for Example 2, which involves two forward paths with path gains.
P 1 = a 1 , 2 a 2 , 3 a 3 , 4 a 4 , 5 a 5 , 9 P 2 = a 1 , 2 a 2 , 6 a 6 , 7 a 7 , 8 a 8 , 9
Considering P 1 , neither loop group 3 nor 4 touches the first forward path. According to Mason’s gain formula, the cofactor along the first forward path P 1 , when the loops touching the first forward path are eliminated, is Δ 1 = 1 { L G 3 } { L G 4 } . For P 2 , neither loop group 1 nor 2 touches the second forward path. The cofactor along the second forward path P 2 is Δ 2 = 1 { L G 1 } { L G 2 } . The total forward path gain from node x 1 to node x 9 is
k = 1 2 P k Δ k = a 1 , 2 a 2 , 3 a 3 , 4 a 4 , 5 a 5 , 9 ( 1 a 6 , 7 a 7 , 6 a 7 , 8 a 8 , 7 ) + a 1 , 2 a 2 , 6 a 6 , 7 a 7 , 8 a 8 , 9 ( 1 a 4 , 3 a 3 , 4 a 5 , 4 a 4 , 5 )
which is the same result as that calculated by the determinant of H ( 1 ) ( 9 ) | ( 9 , 9 ) ( 1 , 2 ) in Equation (14). The matrix H ( 1 ) ( 9 ) | ( 9 , 9 ) ( 1 , 2 ) is formed by eliminating the first row and the ninth column of matrix M 1 , 1 ( A a ) , which removes the incoming branches of input node x 1 and outgoing branches of backward node x 9 . The product term ( a 9 , 1 ) · det ( H ( 1 ) ( 9 ) | ( 8 , 9 ) ( 1 , 2 ) ) is the loop group gain { L G 5 } with the strictly backward edge a 9 , 1 .

6. Transfer Function

In Mason’s gain formula, the transfer function is expressed as a ratio of the numerator terms to the denominator terms. The numerator and denominator terms are located in the forward paths and feedback loops, respectively. According to Equation (4), the numerator term of the transfer function for Example 2 can be obtained by determining the cofactor matrix of the augmented matrix A a , at entry (1, 10).
M 1 , 1 0 ( A a ) = ( 1 ) [ a 0 , 1 1 0 0 0 0 0 0 0 0 a 1 , 2 1 0 0 0 0 0 0 0 0 a 2 , 3 1 a 4 , 3 0 0 0 0 0 0 0 a 3 , 4 1 a 5 , 4 0 0 0 0 0 0 0 a 4 , 5 1 0 0 0 0 0 a 2 , 6 0 0 0 1 a 7 , 6 0 0 0 0 0 0 0 a 6 , 7 1 a 8 , 7 0 0 0 0 0 0 0 a 7 , 8 1 0 0 0 0 0 a 5 , 9 0 0 a 8 , 9 ]
Figure 6 shows the original signal flow diagram by adding a virtual backward edge a 9 , 0 from output node x 9 to input node x 0 . The determinant of the matrix M 1 , 1 0 ( A a ) having one feedback layer for the coordinate of the characteristic element shifting to the right by one column at the first row is equivalent to directly obtaining the forward gain with the virtual backward edge a 9 , 0 . The forward gain is
G 9 = det ( M 1 , 1 0 ( A a ) ) det ( M 1 , 1 ( A a ) ) = a 0 , 1 · { L G 5 } [ 1 { L G 1 } { L G 2 } ] · [ 1 { L G 3 } { L G 4 } ] { L G 5 }

7. Complexity Analysis

Mason’s rule can increase factorially because the enumeration of paths in a directed graph grows dramatically. Consider a complete directed graph on n vertices, with an edge between every pair of vertices. The paths from x 0 to x n are (n − 2)! permutations of the intermediate vertices. Mason’s graph formula describes the transfer function of an interconnected system, which is divided into several independent loops and forward paths, and simultaneously performs algebraic and combinatorial operation. According to Equation (4), the transfer function may be calculated by using the determinant of an n × n matrix. Given an n × n determinant to be calculated, we can either use the cofactor method recursively with a runtime of O(n!), or use Gaussian elimination method to simplify the matrix, track the influence on the determinant, and then multiply it by the diagonal entries at the end. This will be O(n3), the order of Gaussian elimination.

8. Conclusions

The loop group approach presented in this paper yields the same results as Mason’s gain formula. In addition, we reduced the signal flow graph recursively through cofactor expansion to systematically obtain all possible non-touching loop combinations. A set of loops were used to share the same backward edges, referred to as a loop group, can simplify the loop enumeration. Each cofactor expansion reduces the order of the augmented matrix by one. The determinant of the cofactor matrix is equivalent to the loop group gain associated with the backward edge. It can also provide a physical insight of the signal flow.
An augmented matrix is used to represent the signal flow graph. The determinant of the cofactor matrix of the augmented matrix at the first entry containing no feedback layer is the denominator term of the transfer function. The numerator term that directs the forward path gain from the input node to the output node can be obtained by determining the cofactor matrix of the augmented matrix at the top-right entry. The matrix contains one feedback layer, and the determinant is the associated forward path gain of the outer virtual loop group. Two examples of feedback networks are used to demonstrate the intuitive approach to obtain the transfer function for both numerical and computer-aided symbolic analysis. The transfer matrix offers an excellent physical insight because it enables visualization of the signal flow.

Author Contributions

Conceptualization, S.-L.J.; methodology, W.-H.C.; data processing, R.R.; results analysis, S.-L.J.; Visualization, S.-L.J.; writing—original draft preparation, R.R.; writing—review and editing, R.R.; supervision, W.-H.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Science Council of Taiwan, the Republic of China grant number MOST 109-2622-E-262-005 -CC3.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gepreel, K.A.; Higazy, M.; Mahdy, A.M.S. Optimal control, signal flow graph, and system electronic circuit realization for nonlinear Anopheles mosquito model. Int. J. Mod. Phys. C 2020, 31, 2050130. [Google Scholar] [CrossRef]
  2. Moschytz, G.S. An introduction to signal-flow graph theory. In Analog Circuit Theory and Filter Design in the Digital World; Springer: Cham, Switzerland, 2019; pp. 85–100. [Google Scholar]
  3. Abbasi, M.; Afifi, A.; Pahlavani, M.R.A. Ripple base signal flow graph modelling of DC–DC switching converters. IET Power Electron. 2019, 12, 1274–1284. [Google Scholar] [CrossRef]
  4. Schmid, H.; Huber, A. Analysis of switched-capacitor circuits using driving-point signal-flow graphs. Analog. Integr. Circuits Signal Process. 2018, 96, 495–507. [Google Scholar] [CrossRef] [Green Version]
  5. Appikonda, M.; Dhanalakshmi, K.; Krishna, P.S.V. Signal Flow Graph Model and Feed-Forward Control for a High Voltage Gain Dual Input Boost DC-DC Converter. In Proceedings of the 2020 IEEE International Conference on Power Electronics, Smart Grid and Renewable Energy (PESGRE2020) IEEE, Cochin, India, 2–4 January 2020; pp. 1–6. [Google Scholar]
  6. Rasim, F.R.; Sattler, S.M. Analysis of Electronic Circuits with the Signal Flow Graph Method. Circuits Syst. 2017, 8, 261–274. [Google Scholar] [CrossRef] [Green Version]
  7. Mahdy, A.M.S.; Mohamed, M.S.; Gepreel, K.A.; AL-Amiri, A.; Higazy, M. Dynamical characteristics and signal flow graph of nonlinear fractional smoking mathematical model. Chaos Solitons Fractals 2020, 141, 110308. [Google Scholar] [CrossRef]
  8. Brtnik, B. Comparison of the Methods of Graphical Solution of Symbolic Sensitivity. In Proceedings of the 2019 29th International Conference Radioelektronika (RADIOELEKTRONIKA) IEEE, Pardubice, Czech Republic, 16–18 April 2019; pp. 1–5. [Google Scholar]
  9. Asenova, I.; Balik, F. Symbolic sensitivity analysis enhanced by nullor model and modified Coates flow graph. In Pathological Elements in Analog Circuit Design; Springer: Cham, Switzerland, 2018; pp. 149–176. [Google Scholar]
  10. Kono, H.; Omura, I. Study of parasitic oscillation of a multi-chip SiC MOSFET circuit based on a signal flow graph model by TCAD simulation. Solid-State Electron. 2020. [Google Scholar] [CrossRef]
  11. Mason, S.J. Feedback theory-some properties of signal flow graphs. Proc. IRE 1953, 41, 1144–1156. [Google Scholar] [CrossRef]
  12. Mason, S.J. Feedback theory: Further properties of signal flow graphs. Proc. IRE 1956, 44, 920–926. [Google Scholar] [CrossRef] [Green Version]
  13. Prasad, V.C. On Boolean techniques for non touching loops of signal flow graphs. Circuits Syst. Signal Process. 2013, 32, 1443–1453. [Google Scholar] [CrossRef]
  14. Prasad, V.C. Simplification of signal flow graphs. Circuits Syst. Signal Process. 2013, 30, 673–682. [Google Scholar] [CrossRef]
  15. Prasad, V.C. Compact form of Mason’s gain formula for signal flow graphs. Int. J. Electr. Eng. Educ. 2010, 47, 393–403. [Google Scholar] [CrossRef]
  16. Coates, C. Flow-graph solutions of linear algebraic equations. IRE Trans. Circuit Theory 1959, 6, 170–187. [Google Scholar] [CrossRef]
  17. Desoer, C.A. The optimum formula for the gain of a flow graph or a simple derivation of Coates’ formula. Proc. IRE 1960, 48, 883–889. [Google Scholar] [CrossRef]
  18. Dorf, R.C. (Ed.) The Electrical Engineering Handbook-Six Volume Set; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar]
  19. Jeng, S.L.; Lue, B.H.; Chieng, W.H. Transfer matrix method for deriving transfer functions of LTI systems. In Proceedings of the Sixth International Conference on Electronics and Information Engineering, International Society for Optics and Photonics, Dalian, China, 26–27 September 2015; Volume 9794, p. 979439. [Google Scholar]
  20. Lu, H.; Wu, C.; Bao, S. An Improved Algorithm based on Shannon-Happ Formula for Calculating Transfer Function from Signal Flow Graph and Its Visualization. arXiv 2009, arXiv:0906.556. [Google Scholar]
  21. Beillahi, S.M.; Siddique, U.; Tahar, S. On the Formalization of Signal-Flow-Graphs in HOL; Technical Report; ECE Department, Concordia University: Montreal, QC, Canada, 2014. [Google Scholar]
Figure 1. A signal flow graph.
Figure 1. A signal flow graph.
Information 11 00562 g001
Figure 2. A signal flow graph for example 1.
Figure 2. A signal flow graph for example 1.
Information 11 00562 g002
Figure 3. Graph decomposition of example 1.
Figure 3. Graph decomposition of example 1.
Information 11 00562 g003
Figure 4. A signal flow graph for example 2.
Figure 4. A signal flow graph for example 2.
Information 11 00562 g004
Figure 5. Graph decomposition of example 2.
Figure 5. Graph decomposition of example 2.
Information 11 00562 g005aInformation 11 00562 g005bInformation 11 00562 g005cInformation 11 00562 g005d
Figure 6. The forward path gain of the virtual loop group around the entire system for example 2.
Figure 6. The forward path gain of the virtual loop group around the entire system for example 2.
Information 11 00562 g006
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jeng, S.-L.; Roy, R.; Chieng, W.-H. A Matrix Approach for Analyzing Signal Flow Graph. Information 2020, 11, 562. https://0-doi-org.brum.beds.ac.uk/10.3390/info11120562

AMA Style

Jeng S-L, Roy R, Chieng W-H. A Matrix Approach for Analyzing Signal Flow Graph. Information. 2020; 11(12):562. https://0-doi-org.brum.beds.ac.uk/10.3390/info11120562

Chicago/Turabian Style

Jeng, Shyr-Long, Rohit Roy, and Wei-Hua Chieng. 2020. "A Matrix Approach for Analyzing Signal Flow Graph" Information 11, no. 12: 562. https://0-doi-org.brum.beds.ac.uk/10.3390/info11120562

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop