apply-force-directed-layout
Last updated
{
"nodes": [
{ "id": "a" },
{ "id": "b" },
{ "id": "c" }
],
"edges": [
{ "id": "edge-1", "from": "a", "to": "b" },
{ "id": "edge-2", "from": "a", "to": "c" }
]
}{
"nodes": [
{ "id": "a", "attributes": { "x": -0.3344754101595267, "y": 0.011564418302125241 } },
{ "id": "b", "attributes": { "x": 2.1086496683204, "y": -0.18495166054222117 } },
{ "id": "c", "attributes": { "x": -2.7775956240311155, "y": 0.2081409655145249 } }
],
"edges": [
{ "id": "edge-1", "from": "a", "to": "b" },
{ "id": "edge-2", "from": "a", "to": "c" }
]
}