graph_generators
graph_generators
TVBO graph generators — pure-YAML procedures, one generic engine.
Each curated GraphGenerator under tvbo/database/graph_generators/ is defined entirely by its symbolic procedure: block. The generic engine (:mod:tvbo.graph_generators.engine) interprets that block in numpy at Network load time — there are no per-generator Python materialisers (the old builtins.py is gone; see dev/GenericProcedureEngine.md).
The helpers below are thin convenience wrappers over the engine (they hold no generation algorithm) for scripts and notebooks that want a matrix directly.
Functions
| Name | Description |
|---|---|
| random_reservoir | Materialise a RandomReservoir adjacency via the generic engine. |
| weight_shuffle | Materialise a WeightShuffle null-model adjacency via the generic engine. |
random_reservoir
graph_generators.random_reservoir(
n,
sparsity=0.1,
spectral_radius=0.95,
weight_distribution=None,
seed=None,
)Materialise a RandomReservoir adjacency via the generic engine.
weight_shuffle
graph_generators.weight_shuffle(source, preserve='binary_mask', seed=None)Materialise a WeightShuffle null-model adjacency via the generic engine.