randomize_network¶
Syntax¶
Parameters¶
network_name- A name of a network defined in the model.
mean_degree- An expression that evaluates to the mean-degree target for the network.
Description¶
This action must be performed by the meta-agent.
Reinitializes a network to a randomly connnected network with a given mean degree. All existing edges in the network are deleted.
Examples¶
In the following, edges are added randomly so that the mean degree is 3.5.