You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, time-stamped edges currently don't have weights as it is not clear how the weight semantics should be included in the temporal path calculation.
But we'll add an option for weighted edges, while ignoring them in the path calculation.
Right now, multiple identical edges with the same time stamp will be stored as separate objects. If you create an aggregate static network from it, those multiple edges will be reflected in the edge weights.
See e.g. in this example:
import pathpy as pp
t = pp.TemporalNetwork()
t.add_edge('a', 'b', 1)
t.add_edge('a', 'b', 1)
n = pp.Network.from_temporal_network(t)
print(n.edges[('a', 'b')])
There isn't an option to assign edge weights when adding new links to a temporal network.
The text was updated successfully, but these errors were encountered: