phasik.classes.TemporalNetwork.TemporalNetwork.discard_temporal_info_from_edge

TemporalNetwork.discard_temporal_info_from_edge(edge, default_weight=1, reverse=False)[source]

Discards temporal information from ‘edge’ by setting its weight to a constant

Returns a copy of the temporal network with the new edge weights

Parameters
  • edge (tuple of int or str) – Edge from which to discard temporal information

  • default_weight (float, optional) – Value used for the edges with no temporal information

  • reverse (bool, optional) – If True, discard temporal info from all edges except ‘edge’.

Returns

TN_modified

Return type

TemporalNetwork