diff --git a/dist/index.html b/dist/index.html
index f60a1b7..5265f71 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -46,13 +46,13 @@
'#2E8757',
'#05979A',
]
- for (const i in graph.nodes) {
- if (graph.nodes[i].label === domain) { graph.nodes[i].color = '#BF616A' }
- else { graph.nodes[i].color = palette[Math.floor(Math.random() * palette.length)] }
+ for (const i in graph[0]) {
+ if (graph[0][i].title === domain) { graph[0][i].color = '#BF616A' }
+ else { graph[0][i].color = palette[Math.floor(Math.random() * palette.length)] }
}
- const nodes = new vis.DataSet(graph.nodes);
- const edges = new vis.DataSet(graph.vertices);
+ const nodes = new vis.DataSet(graph[0]);
+ const edges = new vis.DataSet(graph[1]);
// create a network
const container = document.getElementById("netgraph");