dynetworkx.SnapshotGraph.add_snapshot

SnapshotGraph.add_snapshot(ebunch=None, graph=None, num_in_seq=None)

Add a snapshot with a bunch of edge values.

Parameters:
  • ebunch (container of edges, optional (default= None)) – Each edge in the ebunch list will be included to all added graphs.
  • graph (networkx graph object, optional (default= None)) – networkx graph to be inserted into snapshot graph.
  • num_in_seq (integer, optional (default= None)) – Time slot to begin insertion at.
Returns:

Return type:

None

Examples

>>> G = dnx.SnapshotGraph()
>>> G.add_snapshot([(1, 4), (1, 3)])