Generate and parse JSON serializable data for NetworkX graphs.
node_link_data(G) | Return data in node-link format that is suitable for JSON serialization |
node_link_graph(data[, directed, multigraph]) | Return graph from node-link data format. |
adjacency_data(G) | Return data in adjacency format that is suitable for JSON serialization |
adjacency_graph(data[, directed, multigraph]) | Return graph from adjacency data format. |
tree_data(G, root) | Return data in tree format that is suitable for JSON serialization |
tree_graph(data) | Return graph from tree data format. |
dumps | Serialize obj to a JSON formatted str. |
loads | Deserialize s (a str or unicode instance containing a JSON |
dump | Serialize obj as a JSON formatted stream to fp (a |
load | Deserialize fp (a .read()-supporting file-like object |