nocad.datasets.make_random_network#

nocad.datasets.make_random_network(n_states=50, mean_degree=2.0, kind='erdos_renyi', exponent=2.5, self_loops=0.0, random_state=None)[source]#

Random directed network.

Parameters:
n_statesint
mean_degreefloat

Expected number of outgoing (and incoming) edges per node.

kind{“erdos_renyi”, “scale_free”}

Erdős–Rényi graph, or a static-model scale-free graph with in- and out-degree exponent exponent (Goh et al. 2001 weights \(w_i\propto i^{-1/(\gamma-1)}\)).

self_loopsfloat

Probability of a self-loop on every node.

Examples

>>> make_random_network(20, 2.0, random_state=0).adj.shape
(20, 20)

Examples using nocad.datasets.make_random_network#

Maximum matching and the minimum number of driver nodes

Maximum matching and the minimum number of driver nodes

Source components: signal sharing, path finding and the exact minimum

Source components: signal sharing, path finding and the exact minimum

The SCC hierarchy: where inputs and outputs must go

The SCC hierarchy: where inputs and outputs must go

The bipartite view: matchings, dilations and edge classes

The bipartite view: matchings, dilations and edge classes

An operability dashboard

An operability dashboard

Node roles across all maximum matchings

Node roles across all maximum matchings

Control profiles of real and model networks

Control profiles of real and model networks

Driver and sensor types of a design

Driver and sensor types of a design

The seven connection types

The seven connection types

System characterisation: network and node measures

System characterisation: network and node measures

Control centrality

Control centrality