Skip to content

Build · Topology (graph)

zeros

Create the zero (edgeless) graph with n nodes.

zeros

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

reservoir = ESNLayer(500, feedback_size=3, topology="zeros", spectral_radius=0.9)

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

See also