This documents the development version of NetworkX. Documentation for the current release can be found here.


Read and write NetworkX graphs in YAML format.

“YAML is a data serialization format designed for human readability and interaction with scripting languages.” See for documentation.


Read graph in YAML format from path.

write_yaml(G_to_be_yaml, …)

Write graph G in YAML format to path.