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