NetworkX

Table Of Contents

Previous topic

networkx.readwrite.leda.parse_leda

Next topic

networkx.readwrite.nx_yaml.read_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, path, **kwds[, encoding]) Write graph G in YAML format to path.