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

Compound Graph: Unable to draw edge from a child node to a parent node. Error: Uncaught TypeError: Cannot set property ‘rank’ of undefined #236

Open
thenylify opened this issue Mar 22, 2018 · 6 comments

Comments

@thenylify
Copy link

thenylify commented Mar 22, 2018

I’m currently using dagre.js for my visualisation graph, it’s great. But I can’t draw any edge from a child node to a parent node, if I try to do so I will get the following error: Uncaught TypeError: Cannot set property ‘rank’ of undefined.

I think this is a bug, but I can’t find a way to fix this issue. The parent of a node is a node, so we should be able to draw edges to it.

Can someone please help?

Much appreciated,
Michael

@thenylify thenylify changed the title Uncaught TypeError: Cannot art property ‘rank’ of undefined Uncaught TypeError: Cannot set property ‘rank’ of undefined Mar 22, 2018
@thenylify thenylify changed the title Uncaught TypeError: Cannot set property ‘rank’ of undefined Compound Graph: Unable to draw edge from a child node to a parent node. Error: Uncaught TypeError: Cannot set property ‘rank’ of undefined Mar 23, 2018
@jemerald
Copy link

jemerald commented Jun 26, 2018

Here's an example that has loop in it (1 -> 2 -> 5 -> 1) and there doesn't seem to be any problem?
http://jsfiddle.net/xe4wvqoa/1/

@thenylify
Copy link
Author

thenylify commented Jun 27, 2018

@jemerald Hi, I think you misunderstood my problem here. The problem is that I couldn't draw an edge from a node to a parent node which contains a nested node. Does this make sense? Please see the question description in this link as I included more descriptions dagrejs/dagre-d3#319

Thanks!

@ChanDaoH
Copy link

Any workaround ?

@yangxiaoqiao2016
Copy link

Is there a solution?I have the same problem

@terrencekuo
Copy link

terrencekuo commented Jul 5, 2020

also looking for a solution. any updates?
any pointers to places in the codebase to look at?

@rahatzamancse
Copy link

I am now facing the same problem. There is no update on this for 7 years?

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

6 participants