tnetwork.DynGraphIG.__init__

DynGraphIG.__init__(edges=None, nodes=None, start=None, end=None, frequency=1)[source]

Instanciate a dynamic graph

A start end end dates can be used to give a “duration” to the graph independently from its nodes and edges (for instance, to study activity during a whole year, the graph might start on January 1st at 00:00 while the first recorded activity occurs in the afternoon or on another day)

Parameters:
  • start – set a start time, by default will be the first time of the added affiliations
  • end – set an end time, by default will be the last time of the added affiliations
  • edges – data to initialize the dynamic graph, dictionary {(n1,n2):time}. Keys are edges, time is Intervals object
  • nodes – data to initialize the dynamic graph, dictionary {n:time}. Keys are ndoes, time is Intervals object