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