Previous topic


Next topic


This Page


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

Perform initialization on global network options.

Called after node and edge initialization. Should if overloaded update the dictionary in network.graph[Simulation.STATE_COUNT_FIELD_NAME] so that it contains the number of nodes/edges in each state used by the process.

May be used for instance in setting up mean field states.

Parameters :

network : networkx.Graph

The network to initialize.

args,kwargs : special

Additional parameters may be passed using **kwargs by the calling simulation object if they are declared in the configuration. This mechanism should be used to build general initialization methods.

Returns :

network : networkx.Graph, network

While he method should work directly on network it should also return it.