nocad.profiles.control_profile#
- nocad.profiles.control_profile(adj)[source]#
Control profile \((\eta_s,\eta_e,\eta_i)\) of a network (Ruths and Ruths 2014).
\[N_s=\#\text{sources},\quad N_e=\max(0,N_t-N_s),\quad N_i=N_D-N_s-N_e,\quad \eta_\ast=N_\ast/N_D,\]where \(N_t\) is the number of sink nodes and \(N_D=\max(N-|\mathcal{M}^\ast|,1)\) the minimum number of driver nodes.
- Returns:
- profile
dictwithkeyseta_s,eta_e,eta_i,n_s,n_e,n_i,n_d.
- profile
References
[1]J. Ruths, D. Ruths, “Control profiles of complex networks”, Science 343 (2014) 1373–1376.
Examples
>>> p = control_profile([[0, 1, 1], [0, 0, 0], [0, 0, 0]]) >>> p["n_d"], p["eta_s"], p["eta_e"] (2, 0.5, 0.5)