vasturiano/force-graph

Saving Graphs

Closed this issue · 2 comments

When an automatically created graph has been manually beautified by dragging nodes it would be desirable to save it to a local file such that it can be later reloaded.
Trying JSON.stringify(Graph.graphData()) leads to a too much recursion error.

@ingodahn you should extract only the properties of the data that you are interested on, such as the nodes' x and y attributes.

Thanks, that's working well.