Previous topic

edgeUpdateRule

Next topic

initializeNetworkEdges

This Page

initializeNetwork

ScriptedProcess.initializeNetwork(network, *args, **kwargs)

Initialize the mean field states on the network.

This is a specialized version of initializeNetwork as found in AttributeStateProcess and allows for partial mean field states. In a partial state only a subset of the declared state keys are defined thus the partial state matches many unique states. This method will deduce all unique states lying in the partial state and track each of them. Thus if you want every possible state to be tracked as a mean field an empty dictionary ‘{}’ can be given which will match all possible states.

Parameters :

network : networkx.Graph

The network on which the process will run.

Returns :

network : networkx.Graph

network with updated attributes. Each additional attribute being a mean field state corresponding to the ones give in meanFieldStates when the object was initialized.

See also

Process
Superclass