write_yaml¶
-
write_yaml
(G, path, encoding='UTF-8', **kwds)[source]¶ Write graph G in YAML format to path.
YAML is a data serialization format designed for human readability and interaction with scripting languages [1].
Parameters: Examples
>>> G=nx.path_graph(4) >>> nx.write_yaml(G,'test.yaml')
References
[1] http://www.yaml.org