Chapter 5
Node roles, control profiles and robustness
A network usually has many maximum matchings, so a design is one choice among many. This chapter asks what all the choices have in common: which nodes are driver nodes in every minimum design, which in none, and which edges every design needs. The answers come from alternating paths in the bipartite graph and take linear time. Two further questions follow: why a network needs its driver nodes at all (the control profile and the driver types of a design), and what happens to a design when a state variable fails (node-removal robustness).
5.1 Problem and idea
The four-node example of fig. 3.3 has two maximum matchings with different driver nodes. In general the number of maximum matchings grows exponentially with the size of the network, and enumerating them is out of the question beyond toy examples [48]. All maximum matchings are, however, connected by simple exchanges. If is unmatched and an edge leaves a node that is matched to , then replacing by gives another maximum matching in which is unmatched instead of (fig. 5.1). Repeating the exchange walks along an alternating path that uses non-matching and matching edges in turn. The symmetric difference of two maximum matchings consists of exactly such even alternating paths and of alternating cycles [28], so a single maximum matching and a search for alternating paths reveal every node that can be unmatched and every edge that can be matched.
The same exchanges explain which edges matter. An edge that lies in every maximum matching cannot be lost without losing a matched node: it is critical for controllability. An edge that lies in no maximum matching can be removed without any consequence for the minimum number of inputs. The reasons for driver nodes are a different matter: a node without parents needs an input whatever else happens, whereas a dilation (more children than parents) can be cured by adding connections. Finally, a design that is minimal in the number of inputs is usually fragile: losing one state variable on a stem can disconnect the rest of the stem from its input.
5.2 Theory
5.2.1 Node roles
Following Jia et al. [49], a node is critical if it is unmatched in every maximum matching (a driver node of every minimum design), redundant if it is matched in every maximum matching, and intermittent otherwise.
Proposition 5.1. Let be a maximum matching of that is not perfect. (a) A node is critical iff it has no incoming edge. (b) A node is unmatched in some maximum matching iff it is unmatched in or can be reached from an unmatched node of by an even alternating path in , in which the steps follow non-matching edges and the steps matching edges.
Proof. (a) A node without incoming edges can never be matched. If has a parent and is unmatched, either is free, and can be added, contradicting maximality, or is matched to some , and the exchange of fig. 5.1 gives a maximum matching in which is matched. (b) Exchanging along an even alternating path from a free in-copy frees its last in-copy and keeps the size, which proves sufficiency. Conversely, if is unmatched in a maximum matching and matched in , the component of that contains is an even alternating path that ends at and starts at an in-copy that is free in [28]. □
The search of (b) is a breadth-first search over the in-copies and takes time; with a perfect matching a single driver node suffices and, by the convention , every node may be it, so all nodes are intermittent. Jia et al. observed that networks of the same density can be controlled in two modes [49]: a centralized mode, in which most nodes are redundant and the few driver nodes are almost fixed, and a distributed mode, in which most nodes are intermittent and the driver nodes can be chosen almost freely.
5.2.2 Edge classes
Liu, Slotine and Barabási classified the edges in the same way [10]: an edge is critical if it belongs to every maximum matching (its removal increases the number of driver nodes), redundant if it belongs to none (its removal never changes the minimum driver sets), and ordinary otherwise. Orient the bipartite graph so that non-matching edges point from out-copies to in-copies, , and matching edges from in-copies to out-copies. Tassa [50] showed that an edge lies in some maximum matching iff it is matched, or both its ends lie in one strongly connected component of the oriented graph (an alternating cycle), or it lies on an even alternating path from a free vertex; a matched edge is missing from some maximum matching under the same conditions. One strongly connected components computation and two reachability searches therefore classify all edges in time (algorithm 5.1).
5.2.3 Why driver nodes are needed: control profiles and driver types
Ruths and Ruths [51] attributed the driver nodes of a network to three structures: source nodes, which have no parents; external dilations, a surplus of sink nodes (no children) over source nodes, which cannot all be matched to distinct parents; and internal dilations, which account for the rest. With source and sink nodes,
| (5.1) |
and the control profile places every network in a triangle. Networks in the source corner need inputs because nothing influences parts of them; networks in the dilation corners need them because of bottlenecks, which additional connections can remove. Ruths and Ruths found that networks from the same domain tend to have similar profiles and that common random network models do not produce profiles dominated by external dilations [51].
The MATLAB toolbox classifies the driver nodes of a particular design in the same spirit [19]: a driver node is of type source if it has no incoming edge, external if it has no outgoing edge, internal if it belongs to an internal dilation, and inaccessible otherwise. To test for an internal dilation, the MATLAB code grows the parents of the driver node and their children alternately (children of the parents, parents of the children) until they no longer change; the closure is the connected component of the driver’s in-copy in , and means that it has more in-copies than out-copies, a dilation. A component can, however, be balanced as a whole and still contain a dilation, so nocad also classifies a driver node as internal if some maximum matching leaves it unmatched: by Kőnig’s theorem it then belongs to a set of states with fewer parents than members. The remaining type collects the driver nodes that exist for accessibility only, such as those that path finding places in source components that are cycles. Sensor types are the driver types of the reversed network.
5.2.4 Robustness against the loss of a state variable
A sensor can fail, a valve can stick, a unit can be taken off line: in the network, a node disappears with its edges and with the input or output attached to it. A configuration is robust against the loss of if the damaged system, with the remaining driver nodes, is still structurally controllable; its robustness is the share of the single-node removals it survives, and the nodes whose removal destroys controllability are its critical nodes (the robust function of the MATLAB toolbox). Each test is one application of Lin’s theorem, so the full evaluation takes matchings, time. Losing a node on a stem cuts the stem, and the nodes behind the cut must then be reached in another way; a minimal design, in which every stem is the only route to its nodes, is typically fragile, and every additional driver node can create an alternative route. Edge removal is evaluated in the same way.
In a nutshell: Roles, profiles and robustness
- Critical nodes (driver nodes of every minimum design) are exactly the nodes without parents; intermittent nodes are found from one maximum matching by an even-alternating-path search; all nodes are intermittent if the matching is perfect.
- Edge classes follow from the strongly connected components of the oriented bipartite graph (Tassa): critical edges are in every maximum matching, redundant edges in none.
- The control profile splits into source nodes, external and internal dilations; driver types explain the driver nodes of a given design.
- Robustness is the share of single-node removals after which Lin’s conditions still hold; extra driver nodes create alternative routes.
5.3 Using it in nocad
roles, profiles and robustness
node_roles(adj) returns an array of "critical", "intermittent", "redundant"; edge_classes(adj) a dictionary from (start, end) to "critical", "ordinary", "redundant"; all_maximum_matchings(adj) enumerates the matchings of small networks for checking; control_profile(adj) and observation_profile(adj) return and the counts; driver_types(A, B) and sensor_types(A, C) return boolean masks per type; node_removal_robustness(adj, drivers, sensors) returns controllable, control_robustness, control_critical and their observability counterparts; edge_removal_robustness and robustness_table complete the set.
maps in nocad.viz
plot_node_roles, plot_edge_classes, plot_control_profiles(profiles, groups) (ternary diagram), plot_robustness_map(adj, result, drivers).
Roles from one maximum matching:
roles = nocad.node_roles(net) print({r: int((roles == r).sum()) for r in ("critical", "intermittent", "redundant")}) print("driver nodes of one maximum matching:", nocad.maximum_matching(net).unmatched + 1)
Control profiles of the bundled networks:
profiles, groups = {}, {} for name in list_networks("I") + list_networks("II") + ["build", "cdplayer", "heatcont", "iss", "pde", "tline"]: net = load_network(name) profiles[name] = nocad.control_profile(net.adj) groups[name] = f"Set {net.group}"
Driver and sensor types of a design:
A, B, C, D = nocad.generate_matrices(adj) dt = nocad.driver_types(A, B) st = nocad.sensor_types(A, C)
Robustness of two configurations of the NOCAD example:
for drivers in ([7], [3, 7]): r = nocad.node_removal_robustness(adj, drivers=drivers) print(f"drivers {np.add(drivers, 1)}: robustness {r.control_robustness:.3f}, critical {r.control_critical + 1}")
5.4 Examples
5.4.1 Node roles and the two control modes
A random network with 30 nodes and mean degree 1.8 needs six driver nodes (fig. 5.2). Three of them are critical, the nodes without parents; five further nodes are intermittent, and any three of them complete a minimum design; the remaining 22 nodes are redundant and never need an input. One maximum matching chooses , , , , and .
Figure 5.3 repeats the classification for Erdős–Rényi networks with 300 nodes, eight networks per density. Sparse networks have many critical nodes and a moderate share of redundant ones. Between mean degrees of about 3.5 and 6 the networks of the same density split into the two modes of Jia et al.: in some almost all nodes are redundant (centralized), in others almost none (distributed). The densest networks have a perfect matching and are all distributed.
5.4.2 Control profiles
The bundled networks of the NOCAD study occupy different parts of the triangle (fig. 5.4). The E. coli transcription network is controlled through its sources (, 314 driver nodes), the neural networks of C. elegans and of the macaque cortex mainly through sources as well. The yeast network and the food webs grass and ythan are dominated by external dilations ( and ), the electronic circuits s208, s420 and s838 by internal dilations (). The dolphin network is stored with one direction per tie and therefore has many source nodes. The state matrices of the dynamical benchmarks of Set III have non-zero diagonals and a perfect matching; their single driver node counts as an internal dilation by the convention , which puts them all in the internal corner.
Open in ColabExample plot_02_control_profiles.py in the gallery
Random networks move from the source corner toward the internal corner as the density grows (fig. 5.5): Erdős–Rényi networks with mean degree 0.8 have , with mean degree 3 still , and with mean degree 6 they have a perfect matching. Their external share is zero, because sources and sinks are equally frequent; heterogeneous (scale-free) networks of mean degree 6 develop a small external share (), but neither model reaches the external corner of the food webs, in line with the observation of Ruths and Ruths.
5.4.3 Driver types of a design
The single driver node of the NOCAD example is a source. A path-finding design of a random network with 60 nodes and mean degree 1.5 has 14 driver nodes: eight sources, four external ones (three of them isolated nodes, which are sources as well) and five internal ones. Figure 5.6 shows how the types change with the density: source drivers dominate at every density, external drivers matter only in very sparse networks, and internal ones peak near mean degree 1.5. No driver of the inaccessible type appears, because source components that are cycles are rare in Erdős–Rényi networks; in the heat exchanger network of chapter 9, by contrast, the single driver node exists for accessibility only.
5.4.4 Robustness
With the single driver , the NOCAD example survives the loss of only three of its nine states (fig. 5.7, left): , , , , and are critical. Adding the driver , the improvement proposed in the NOCAD manual, raises the robustness to five of nine; , , and remain critical. On the heat exchanger network (fig. 5.8) the drivers added by GDFCMSA to lower the largest control depth from seven to one also raise the robustness, from 36% with one driver to 73–77% with seven or eight additional drivers. The increase is not monotone: the placement optimizes the depth, not the robustness, and the two criteria agree only on average.
5.5 Further reading
Node roles and the bimodality of control are due to Jia et al. [49], edge classes to Liu, Slotine and Barabási [10]; Tassa [50] gives the linear-time characterization of the edges that belong to some maximum matching, and Uno [48] an algorithm that enumerates all maximum matchings. Control profiles are from Ruths and Ruths [51]; the review of Liu and Barabási [12] surveys these and many related results, and Pósfai et al. [52] study how degree correlations change the number of driver nodes. The driver and sensor types and the robustness test come from the NOCAD MATLAB toolbox [3, 19].