JSON¶
Generate and parse JSON serializable data for NetworkX graphs.
These formats are suitable for use with the d3.js examples https://d3js.org/
The three formats that you can generate with NetworkX are:
node-link like in the d3.js example https://bl.ocks.org/mbostock/4062045
tree like in the d3.js example https://bl.ocks.org/mbostock/4063550
adjacency like in the d3.js example https://bost.ocks.org/mike/miserables/
|
Returns data in node-link format that is suitable for JSON serialization and use in Javascript documents. |
|
Returns graph from node-link data format. |
|
Returns data in adjacency format that is suitable for JSON serialization and use in Javascript documents. |
|
Returns graph from adjacency data format. |
|
Returns data in Cytoscape JSON format (cyjs). |
|
Create a NetworkX graph from a dictionary in cytoscape JSON format. |
|
Returns data in tree format that is suitable for JSON serialization and use in Javascript documents. |
|
Returns graph from tree data format. |
|
Returns data in JIT JSON format. |
|
Read a graph from JIT JSON. |