dynetworkx.IntervalGraph.save_to_txt

IntervalGraph.save_to_txt(path, delimiter=' ')
Write interval graph to path.
Every line in the file must be an edge in the following format: “node node begin end”. Begin, end must be integers or floats. Nodes can be any hashable objects.
Parameters:
  • path (string or file) – Filename to read.
  • delimiter (string, optional) – Separator for node labels. The default is whitespace. Cannot be =.

Examples

>>> G.save_to_txt("my_dygraph.txt")