I am trying to save the current graph in a browser on the server side, and now I am testing how to do this. I ran into some strange problem: after jsoning, decycling, pulling up and reloading the chart, the elements were somehow lost.
var j = network_tab.cy.json();
j = JSON.decycle(j);
j = JSON.stringify(j);
network_tab.cy.load(j);
Before converting the schedule, I cannot strengthen it. If you look in the string version, you will see that the elements still exist, but after loading they disappeared.
Maybe I have a problem generally with the cy.load () function, but I hope you guys can help me.
EDIT: The problem seems to be related to the stringify function. Then my question boils down to how to make the whole object available for download ().
An element must be of type `nodes` or `edges`; you specified `undefined`
console.error( msg );
cytoscape.js (line 244)
TypeError: obj._private is undefined
, , .
, , ?