Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

nsl.tools.write_tsv_graph

View source on GitHub

Writes the given graph to the file filename in TSV format.

Aliases:

  • nsl.tools.graph_utils.write_tsv_graph
nsl.tools.write_tsv_graph(
    filename,
    graph
)

Args:

  • filename: Name of the file to which TSV output is written. The TSV lines are written in the same form as the input expected by read_tsv_graph().
  • graph: A dict source_id -> (target_id -> weight) representing the graph.

Returns:

None. Instead, this has the side-effect or writing output to a file.