Skip to content

Build · Topology (graph)

regular

Generates a regular ring-lattice graph (each node has k neighbors).

regular

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

reservoir = ESNLayer(500, feedback_size=3, topology="regular", spectral_radius=0.9)
parameter default
k
directed False
self_loops False
random_weights True

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

See also