Build · Topology (graph)
watts_strogatz¶
Generates a Watts-Strogatz small-world graph.
from resdag.layers import ESNLayer
reservoir = ESNLayer(500, feedback_size=3, topology="watts_strogatz", spectral_radius=0.9)
| parameter | default |
|---|---|
k |
— |
p |
— |
directed |
False |
self_loops |
False |
Override any parameter with the tuple spec — topology=("watts_strogatz", {...}) —
or pre-configure with get_topology("watts_strogatz", ...). Scaling to a target
spectral radius happens after construction, whatever the source.
See also¶
- Initialization — every way to specify structure
- Reference — the registry API
