hatvis.core.TemporalHypergraph#
- class hatvis.core.TemporalHypergraph(edges=None, times=None, **kwargs)[source]#
Bases:
HypergraphHypergraph whose hyperedges carry a time stamp (or any ordered group label).
- Parameters:
- edges
listofiterables Hyperedges (repeated vertex sets at different times are separate hyperedges).
- timessequence
One time stamp per hyperedge (numbers, dates or ordered labels).
- **kwargs
passedtoHypergraph. - >>> T = TemporalHypergraph([[“a”, “b”], [“a”, “b”, “c”], [“c”, “d”]], times=[1, 1, 2])
- >>> [h.n_edges for h in T.snapshots().values()]
- [2, 1]
- edges
- aggregate(how='sum')[source]#
Static hypergraph: repeated vertex sets merged, weights aggregated over time.
- property times#
Sorted distinct time stamps.