Skip to content

Can a point have two parent nodes? #104

@wahahaaaa123

Description

@wahahaaaa123

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'} },
               ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions