Skip to content

Network builders

Registered network_type builders for SocialNetworkBuilder.

Each builder has the signature

(world, network_config: dict) -> dict[person_id, list[Person]]

network_config is the full YAML entry for this network, so each builder reads its own required keys from it.

To add a new network_type
  1. Write a builder function in builder_functions/ with the signature above.
  2. Import it here and call register_network_type("your_type_name")(fn). No other files need modification.