Skip to content

randomize_network

Syntax

randomize_network(network_name, mean_degree)

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.

randomize_network(Some_network, 3.5)

See Also