Previous topic


Next topic


This Page


ScriptedProcess.networkUpdateRule(network, dt)

Perform update to global network structure and attributes.

This method is called for the network once after it has been updated using the node and edge update rules. It should be used to update global network attributes. It should not change any node or edge states on individual levels. Used for mean field states etc. Overload this method when building a process.

Parameters :

network : networkx.Graph

The network, work on this object and return it.

dt : float

Time differential since last iteration.

Returns :

network : networkx.Graph, The updated network