Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export graph as json instead of dot string #427

Open
klaraseitz opened this issue Jul 28, 2022 · 1 comment
Open

Export graph as json instead of dot string #427

klaraseitz opened this issue Jul 28, 2022 · 1 comment

Comments

@klaraseitz
Copy link

klaraseitz commented Jul 28, 2022

I'm wondering how access the data of the graph as an object. Preferably JSON.
Currently, the graph object is inaccessible through python as it is just a SwigPyObject (graph.handle)

I would like to build and layout a graph on the server and send the position data to the frontend where I will draw the graph in my own customized way.

Thanks!

@dschult
Copy link
Contributor

dschult commented Jul 28, 2022

NetworkX has JSON as one of the input/output formats. It also connects to the pygraphviz package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants