Some bugfixes
This commit is contained in:
parent
ce73bd70fe
commit
f3cbda43d1
2 changed files with 12 additions and 9 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue