phasik.classes.TemporalNetwork.TemporalNetwork.from_static_network_and_edge_timeseries

classmethod TemporalNetwork.from_static_network_and_edge_timeseries(static_network, edge_timeseries, static_edge_default_weight=None, normalise=None, quiet=False)[source]

Creates a temporal network by combining a static network with edge timeseries

If all edges of the static network are represented in the timeseries, create a temporal network by setting time-varying edge weights from the tedges. If not all edges of the static network, creates a partially temporal network.

Parameters
  • static_network (nx.Graph) – Static network into which to integrate the temporal information

  • edge_timeseries (Dataframe) – Dataframe with indexed (rows) by edge names (formatted as ‘A-B’) and with columns as times. Entries of the Dataframe represent the weight of that edge at that time.

  • static_edge_default_weight (float) – Weight to use for edges without temporal information

  • normalise ({‘max’, ‘minmax’, “standardise”, None}) – Choice of normalsation of the edge timeseries

  • quiet (bool) – If True (default), print minimum informative messages

Return type

TemporalNetwork