Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'neighbours' of undefined #50

Open
jonbonraki opened this issue Jul 30, 2015 · 4 comments
Open

Cannot read property 'neighbours' of undefined #50

jonbonraki opened this issue Jul 30, 2015 · 4 comments

Comments

@jonbonraki
Copy link

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));
            }
@adrianco
Copy link
Owner

adrianco commented Aug 4, 2015

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

@jonbonraki
Copy link
Author

issue was resolved refer this tgdwyer/WebCola#128

@adrianco
Copy link
Owner

adrianco commented Aug 8, 2015

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!

@nellang
Copy link

nellang commented Jun 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants