Consider n equations involving n+1 variables {x0, x1,...,xn}.
with aij elements in a ring or semiring R. The free variable x0 corresponds to a source vertex v0, thus having no defining equation. Each equation corresponds to a fragment of a directed graph G=(V,E) as show in the figure.
The edge weights define a function f from E to R. Finally fix an output vertex vm. A signal-flow graph is the collection of this data S = (G=(V,E), v0,vm ∈ {\displaystyle \in } V, f : E → R). The equations may not have a solution, but when they do,
with T an element of R called the gain.
There exist several6 noncommutative generalizations of Mason's rule. The most common is the return loop method (sometimes called the forward return loop method (FRL), having a dual backward return loop method (BRL)). The first rigorous proof is attributed to Riegle,7 so it is sometimes called Riegle's rule.8
As with Mason's rule, these gain expressions combine terms in a graph-theoretic manner (loop-gains, path products, etc.). They are known to hold over an arbitrary noncommutative ring and over the semiring of regular expressions.9
The method starts by enumerating all paths from input to output, indexed by j ∈ {\displaystyle \in } J. We use the following definitions:
The contribution of the j-th path to the gain is the product along the path, alternating between the path product weights and the node factors:
so the total gain is
Consider the signal-flow graph shown. From x to z, there are two path products: (d) and (e,a). Along (d), the FRL and BRL contributions coincide as both share same loop gain (whose split reappears in the upper right of the table below):
Multiplying its node factor and path weight, its gain contribution is
Along path (e,a), FRL and BRL differ slightly, each having distinct splits of vertices y and z as shown in the following table.
Adding to Td, the alternating product of node factors and path weights, we obtain two gain expressions:
and
These values are easily seen to be the same using identities (ab)−1 = b−1a−1 and a(1-ba)−1=(1-ab)−1a.
Consider equations
This system could be modeled as scalar signal-flow graph with multiple inputs and outputs. But, the variables naturally fall into layers, which can be collected into vectors x=(x1,x2)t y=(y1,y2)t and z=(z1,z2)t. This results in much simpler matrix signal-flow graph as shown in the figure at the top of the article.
Applying the forward return loop method is trivial as there's a single path product (C,A) with a single loop-gain B at y. Thus as a matrix, this system has a very compact representation of its input-output map:
An important kind of noncommutative signal-flow graph is a finite state automaton over an alphabet Σ {\displaystyle \Sigma } .1011
Serial connections correspond to the concatenation of words, which can be extended to subsets of the free monoid Σ ∗ {\displaystyle \Sigma ^{*}} . For A, B ⊆ Σ ∗ {\displaystyle \subseteq \Sigma ^{*}}
Parallel connections correspond to set union, which in this context is often written A+B.
Finally, self-loops naturally correspond to the Kleene closure
where λ {\displaystyle \lambda } is the empty word. The similarity to the infinite geometric series
is more than superficial, as expressions of this form serve as 'inversion' in this semiring.12
In this way, the subsets of Σ ∗ {\displaystyle \Sigma ^{*}} built of from finitely many of these three operations can be identified with the semiring of regular expressions. Similarly, finite graphs whose edges are weighted by subsets of Σ ∗ {\displaystyle \Sigma ^{*}} can be identified with finite automata, though generally that theory starts with singleton sets as in the figure.
This automaton is deterministic so we can unambiguously enumerate paths via words. Using the return loop method, path contributions are:
Thus the language accepted by this automaton (the gain of its signal-flow graph) is the sum of these terms
Lorens 1964. - Lorens, Charles S. (1964). Flowgraphs: For the Modeling and Analysis of Linear Systems. McGraw-Hill. ↩
Riegle & Lin 1972. - Riegle, Daryle; Lin, P.M. (1972). "Matrix signal flow graphs and an optimum topological method for evaluating their gains". IEEE Transactions on Circuit Theory. 19 (5). IEEE: 427–435. doi:10.1109/tct.1972.1083542. https://doi.org/10.1109%2Ftct.1972.1083542 ↩
Brzozowski & McCluskey 1963. - Brzozowski, J. A.; McCluskey, E. J. Jr. (1963). "Signal flow graph techniques for sequential circuit state diagrams". IEEE Transactions on Electronic Computers (2). IEEE: 67–76. doi:10.1109/PGEC.1963.263416. https://doi.org/10.1109%2FPGEC.1963.263416 ↩
Book et al. 1971. - Book, Ronald; Even, Shimon; Greibach, Sheila; Ott, Gene (1971). "Ambiguity in graphs and expressions" (PDF). IEEE Transactions on Computers. 100 (2). IEEE: 149–153. doi:10.1109/t-c.1971.223204. S2CID 20676251. http://www.diku.dk/hjemmesider/ansatte/henglein/papers/book1971.pdf ↩
Pliam & Lee 1995. - Pliam, John; Lee, E. Bruce (1995). "On the global properties of interconnected systems". IEEE Transactions on Circuits and Systems I: Fund. Theory and Apps. 42 (12). IEEE: 1013–1017. doi:10.1109/81.481196. http://www.atbash.com/node/8 ↩
Andaloussi, Chalh & Sueur 2006, pp. 2962. - Andaloussi, C.; Chalh, Z.; Sueur, C. (2006). "Infinite zero of linear time varying bond-graph models: Graphical rules". Computer Aided Control System Design, 2006 IEEE International Conference on Control Applications. pp. 2962–2967. doi:10.1109/CACSD-CCA-ISIC.2006.4777109. https://doi.org/10.1109%2FCACSD-CCA-ISIC.2006.4777109 ↩
Kuich & Salomaa 1985. - Kuich, Werner; Salomaa, Arto (1985). Semirings, automata and languages. Springer-Verlag. ↩