spigo icon indicating copy to clipboard operation
spigo copied to clipboard

Cannot read property 'neighbours' of undefined

Open jonbonraki opened this issue 9 years ago • 4 comments

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));
            }

jonbonraki avatar Jul 30 '15 17:07 jonbonraki

I didn't think we were using cola.js yet, what's the context for the error?

adrianco avatar Aug 04 '15 14:08 adrianco

issue was resolved refer this https://github.com/tgdwyer/WebCola/issues/128

jonbonraki avatar Aug 08 '15 18:08 jonbonraki

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!

adrianco avatar Aug 08 '15 23:08 adrianco

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.

image

nellang avatar Jun 19 '19 14:06 nellang