Skip to content

Build · Topology (graph)

ring_chord

Generates a small-world digraph with a ring and backward chords. - ring edges i -> (i+1) mod n with weight 1.0 - backward chords i -> (i - L_k) mod n with weight w * alpha**k

ring_chord

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

reservoir = ESNLayer(500, feedback_size=3, topology="ring_chord", spectral_radius=0.9)
parameter default
L 1
w 0.5
alpha 1.0

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

See also