phasik.classes.TemporalNetwork.TemporalNetwork.discard_temporal_info_from_node
- TemporalNetwork.discard_temporal_info_from_node(node, default_weight=1, reverse=False)[source]
Discards temporal information from ‘node’ by setting the weight of its edges to a constant
Returns a copy of the temporal network with the new edge weights
- Parameters
node (int or str) – Node 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 nodes except ‘node’.
- Returns
TN_modified
- Return type