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

Can a point have two parent nodes? #104

Open
wahahaaaa123 opened this issue Nov 30, 2020 · 0 comments
Open

Can a point have two parent nodes? #104

wahahaaaa123 opened this issue Nov 30, 2020 · 0 comments

Comments

@wahahaaaa123
Copy link

Thank you for your work, it is excellent.

I have a problem. I searched google for a long time, but it has not been solved.

Is there a way that a Node can have two parents at the same time and display them at the same time?
Just like Node 6 in the screenshot.

Node6 has two parent nodes N3 and N5 at the same time, but N3 and N5 have no relationship

微信截图_20201130160207

code:

        elements: [{ group:'nodes', data:{ id: 'n0'}},
                { group:'nodes', data:{ id: 'n1',parent: 'n3'}},
                { group:'nodes', data:{ id: 'n2',parent: 'n3'}},
                { group:'nodes', data:{ id: 'n3'}},
                { group:'nodes', data:{ id: 'n4', parent: 'n5'}},
                { group:'nodes', data:{ id: 'n5'}},
                { group:'nodes', data:{ id: 'n6',parent: 'n5'}},
                { group:'edges', data:{ id: 'e0', source: 'n0', target: 'n1'} },
                { group:'edges', data:{ id: 'e1', source: 'n1', target: 'n2'} },
                { group:'edges', data:{ id: 'e3', source: 'n0', target: 'n3'} },
                { group:'edges', data:{ id: 'e5', source: 'n2', target: 'n4'} },
               ]
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

1 participant