YAML

YAML

Read and write NetworkX graphs in YAML format.

“YAML is a data serialization format designed for human readability and interaction with scripting languages.” See http://www.yaml.org for documentation.

read_yaml(path)

Read graph in YAML format from path.

write_yaml(G_to_be_yaml, …)

Write graph G in YAML format to path.