tnetwork.write_period_lists¶
-
tnetwork.
write_period_lists
(theDynGraph: tnetwork.dyn_graph.dyn_graph_ig.DynGraphIG, fileOutput: str)[source]¶ Write as list of periods
Write an interval graph graph as a list of periods, for the graph, the nodes, and the edges
Exemple of result:
SG 0:100 N N1 0:10 50:60 N NODE_3 0:20 30:60 E1 N1 NODE_3 5:10
Means that the graph exists from time 0 to 100, it contains 2 nodes (N1 and NODE_3) that exist each over 2 intervals and one edge between those 2 nodes during the interval from 5 to 10
Parameters: - theDynGraph – a dynamic graph
- fileOutput – the address of the file to write