Skip to content

Build · Topology (graph)

barabasi_albert

Generates a Barabási-Albert scale-free network.

barabasi_albert

Connectivity and weight matrix on a small reservoir.
from resdag.layers import ESNLayer

reservoir = ESNLayer(500, feedback_size=3, topology="barabasi_albert", spectral_radius=0.9)
parameter default
m
directed False

Override any parameter with the tuple spec — topology=("barabasi_albert", {...}) — or pre-configure with get_topology("barabasi_albert", ...). Scaling to a target spectral radius happens after construction, whatever the source.

See also