spigo
spigo copied to clipboard
Cannot read property 'neighbours' of undefined
Uncaught TypeError: Cannot read property 'neighbours' of undefined.
it is emanating from the following loop, any idea why is this happening? cola.js line 3332 Watch Expressions "i ": Object length: 144 source: "ds" target: "sdf"
while (i--) {
var e = this.es[i];
var u = getSourceIndex(e), v = getTargetIndex(e);
var d = getLength(e);
this.neighbours[u].neighbours.push(new Neighbour(v, d));
this.neighbours[v].neighbours.push(new Neighbour(u, d));
}
I didn't think we were using cola.js yet, what's the context for the error?
issue was resolved refer this https://github.com/tgdwyer/WebCola/issues/128
I hope you figure out some interesting additions to spigo with cola, could you let us know what you are trying and any results? Thanks!
I get the same error, I also read this ticket: tgdwyer/WebCola#128 but I don't know why in my code, some nodes take the linking (link 1 from image) but some not (link 0 from image). Those nodes are already in my nodes array.