Write graph G in YAML format to path.
YAML is a data serialization format designed for human readability and interaction with scripting languages [R239].
Parameters : | G : graph
path : file or string
encoding: string, optional :
|
---|
References
[R239] | (1, 2) http://www.yaml.org |
Examples
>>> G=nx.path_graph(4)
>>> nx.write_yaml(G,'test.yaml')