Skip to content

Build · Topology (graph)

connected_watts_strogatz

Generates a connected Watts-Strogatz graph.

connected_watts_strogatz

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

reservoir = ESNLayer(500, feedback_size=3, topology="connected_watts_strogatz", spectral_radius=0.9)
parameter default
k
p
directed True
self_loops True

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

See also