tnetwork.DynGraphLS.__init__

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

Instanciate a dynamic graph

A start and 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 added time
  • end – set an end time, by default will be the last added time
  • frequency – minimal time difference between two observations. Default: 1
  • edges – data to initialize the dynamic graph, dictionary {(n1,n2):[int]}. Keys are edges, time is ordered list of int
  • nodes – data to initialize the dynamic graph, dictionary {n:time}. Keys are nodes, time is Intervals object (see interval graph)