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

Unable to setParent from a child to parent which is a group of nodes #426

Open
zeyupan888 opened this issue Oct 26, 2023 · 3 comments
Open

Comments

@zeyupan888
Copy link

Hello all,

I want to integrate react-flow's subflow, like screenshot. I need to draw edge from a child node to parent node which contains many sub-nodes. The error is Cannot set parent in a non-compound graph

There are previous posts on this issue
Compound Graph: Unable to draw edge from a child node to a parent node. Error: Uncaught TypeError: Cannot set property ‘rank’ of undefined #236

Unable to draw an edge from a child to parent compound graph #238

Do we have a solution on this?
image

@AGontcharov
Copy link

Experiencing the same issue. I'm unable to set an edge from a node to a parent node that contains sub nodes. Is there any workaround for this?

@nawangwe
Copy link

It seems support for this library is dead in the water.

@sunteya
Copy link

sunteya commented Aug 28, 2024

The compound parameter needs to be set

const g = new dagre.graphlib.Graph({ compound: true })

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

4 participants