tnetwork.write_snapshots

tnetwork.write_snapshots(dynGraph: tnetwork.dyn_graph.dyn_graph_sn.DynGraphSN, outputDir: str, format: str = None)[source]

Write one file per snapshot

Write a dynamic graph as a directory containing one file for each snapshot. The format of files can be chosen.

Parameters:
  • dynGraph – a dynamic graph
  • outputDir – address of the directory to write
  • format – default edgelist, choose among edges(edgelist)|ncol|gefx|gml|pajek|graphML