Some bugfixes

This commit is contained in:
Ziver Koc 2024-05-27 01:41:37 +02:00
parent ce73bd70fe
commit f3cbda43d1
2 changed files with 12 additions and 9 deletions

View file

@ -40,10 +40,10 @@
var links = [];
data.forEach(node => {
nodes.add({"id": node.address, "name": node.address});
nodes.neighbours.forEach(neighbour => {
links.add({"source": node.address, "target": neighbour})
}
nodes.push({"id": node.address, "name": node.address});
node.neighbors.forEach(neighbor => {
links.push({"source": node.address, "target": neighbor})
})
});
const Graph = ForceGraph()