Mapping a D3 Tree with Multiple Parents

I am currently using this graph, and I hope to maintain structure and reducibility by depicting a node child with multiple parents. Is there any way to do this? I looked at the force diagrams, but I also want to maintain a hierarchy of sets (this means that the parent level at level 1 can have a child and level 3). After much research and processing of my current code, I can’t understand what concerns my problems. Does anyone have experience mapping a D3 node tree with multiple parents?

+4
source share
2 answers

Just in case, someone wondered what I did to answer my question. I ended up with a power diagram behaving just like a tree. This gave me the opportunity to have several parents, and I just had to play a little with the way the diagram used forces to preserve the hierarchy.

+4
source

You can build a tree where one node can have several parents. Example

-1
source

Source: https://habr.com/ru/post/1608588/


All Articles