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