Previous topic


Next topic


This Page


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

Set initial edge states and parameters to a network.

This method should be overloaded for each individual process to initialize network edge states and parameters on a given network. This is because while topology is a feature of the network, only the process will know how to initialize it.

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.