This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
Source code for networkx.readwrite.json_graph
""" ********* JSON data ********* Generate and parse JSON serializable data for NetworkX graphs. These formats are suitable for use with the d3.js examples http://d3js.org/ The three formats that you can generate with NetworkX are: - node-link like in the d3.js example http://bl.ocks.org/mbostock/4062045 - tree like in the d3.js example http://bl.ocks.org/mbostock/4063550 - adjacency like in the d3.js example http://bost.ocks.org/mike/miserables/ """ from networkx.readwrite.json_graph.node_link import * from networkx.readwrite.json_graph.adjacency import * from networkx.readwrite.json_graph.tree import *