fkling / JSNetworkX

Build, process and analyze graphs in JavaScript (port of NetworkX)
https://felix-kling.de/jsnetworkx/
Other
757 stars 185 forks source link

Exporting graph to JSON #89

Open n3h3m opened 4 years ago

n3h3m commented 4 years ago

NetworkX has few primary methods to deal with JSON to/from the graph. Do we have a similar way to export a graph to JSON. https://networkx.github.io/documentation/stable/reference/readwrite/json_graph.html?highlight=json

Any hints would be appreciated. I'm mainly looking for implementations for node_link_data and node_link_graph, the former writes the graph as JSON and the later reads from JSON to graph.

If they are not implements, give me some direction, I would issue a pull request. Since I have to implement this for my current work.