Connection types#

Connection types: node and edge dynamics in the network of the state variables.

The physical topology of a system (pipes, wires, reactions) is not the network of its state variables. The balance equations of mass, energy and momentum usually make a state variable depend on itself (self-influence, a self-loop: the outflow of a tank depends on its level) and make the interaction between two variables depend on both of them (interaction, a symmetric pair of edges: the flow between connected vessels depends on the level difference). Leitold, Vathy-Fogarassy and Abonyi (2017) listed the seven possible patterns of the \(2\times2\) block

\[\begin{split}\mathbf{A}(i,j)=\begin{bmatrix}a_{ii}&a_{ij}\\a_{ji}&a_{jj}\end{bmatrix},\qquad a_{ji}\neq0,\end{split}\]

and showed that adding these dynamics changes the number of driver and sensor nodes drastically for networks that are not dynamical systems, but not for real state-space models.

type

pattern (edge \(x_i\to x_j\) always present)

meaning

a

no further entry

logical link

b

self-loop on the source \(x_i\)

source capacity

c

self-loop on the target \(x_j\)

accumulation

d

both self-loops

  1. and (c)

e

edge \(x_j\to x_i\) too

interaction

f

interaction and one self-loop

  1. and (e)

g

interaction and both self-loops

  1. and (e)

Self-influence, interactions and the dynamics heat maps.

Functions#

connection_type(adj, i, j)

Type ("a"--"g") of the connection between \(x_i\) and \(x_j\).

connection_type_counts(adj)

Number of connected node pairs of every type.

add_node_dynamics(adj[, nodes])

Add self-loops (self-influence) to the given nodes (all nodes by default).

add_edge_dynamics(adj[, edges])

Add the reverse of the given edges (all edges by default): interactions.

apply_connection_type(adj, kind)

Turn every edge of the network into a connection of the given type.

free_loops(adj)

Nodes without a self-loop.

free_symmetric(adj)

Edges \(x_i\to x_j\) that are missing while \(x_j\to x_i\) exists, as (i, j) pairs.

add_edges(adj, n_loops, n_sym[, random_state])

Add n_loops random self-loops and n_sym random reverse edges (MATLAB addEdges).

dynamics_heatmap(adj[, levels, n_repeats, ...])

Driver and sensor counts as self-influence and interactions are added (MATLAB heatmaps).

connection_type_study(networks[, method])

Share of driver and sensor nodes when every edge is turned into each connection type.

Constants#

CONNECTION_TYPES

(loop on source, loop on target, reverse edge) for every type