nsl.tools.write_tsv_graph
Stay organized with collections
Save and categorize content based on your preferences.
Writes the given graph
to the file filename
in TSV format.
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-28 UTC.
[null,null,["Last updated 2022-10-28 UTC."],[],[],null,["# nsl.tools.write_tsv_graph\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/neural-structured-learning/blob/v1.4.0/neural_structured_learning/tools/graph_utils.py#L136-L154) |\n\nWrites the given `graph` to the file `filename` in TSV format.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`nsl.tools.graph_utils.write_tsv_graph`](https://www.tensorflow.org/neural_structured_learning/api_docs/python/nsl/tools/write_tsv_graph)\n\n\u003cbr /\u003e\n\n nsl.tools.write_tsv_graph(\n filename, graph\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| `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()`. |\n| `graph` | A `dict` source_id -\\\u003e (target_id -\\\u003e weight) representing the graph. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| `None`. Instead, this has the side-effect or writing output to a file. ||\n\n\u003cbr /\u003e"]]