tnetwork.dyn_graph.dyn_graph.DynGraph.frequency

DynGraph.frequency(value: int = None)[source]

Set and/or return graph frequency

The frequency of a dynamic network is the smallest possible difference between two consecutive observations. Note that if for some reason you really need continuous value, you can set the frequency to -1, but you will need to set explicitely the temporality every time it is needed for a computation (conversion between formats, visualization, etc)

Parameters:value – if None, the frequency is not changed. If -1, time is considered continuous.
Returns:current frequency value