Graph to convert, which is left unchanged.
Optionaloptions: { linkEnds?: "id" }
Conversion options.
OptionallinkEnds?: "id"How links name their ends; 'id' by default.
Turn a graph into plain JSON: nodes keep their own fields and coordinates but lose the simulation's bookkeeping
(index and velocities), and links name their ends instead of holding the nodes. Works on a layout's result, whose
link ends are nodes, and on a graph whose link ends are already ids.
With linkEnds: 'coords', each end is { id, x, y, z }, the form ForceGraph stores, so a link can be drawn without
looking its nodes up.
Graph to convert, which is left unchanged.
Conversion options.
How links name their ends; 'id' by default.
Turn a graph into plain JSON: nodes keep their own fields and coordinates but lose the simulation's bookkeeping (
indexand velocities), and links name their ends instead of holding the nodes. Works on a layout's result, whose link ends are nodes, and on a graph whose link ends are already ids.With
linkEnds: 'coords', each end is{ id, x, y, z }, the formForceGraphstores, so a link can be drawn without looking its nodes up.