tnetwork.read_snapshots

tnetwork.read_snapshots(inputDir: str, format=None, frequency=1, prefix='') → tnetwork.dyn_graph.dyn_graph_sn.DynGraphSN[source]

Read as one file per snapshot

Read a dynamic graph as a directory containing one file per snapshot. If the format is not provided, it is infered automatically from file extensions

Parameters:
  • inputDir – directory where the files are located
  • format – a string among edges(edgelist)|ncol|gefx|gml|pajek|graphML, by default, the extension of the files
Returns:

a DynGraphSN object