Tree network using d3

I am new to d3 and I am trying to figure out how to create a network that looks like a tree, but unlike a tree it can have nodes that access the parent node. The following figure shows a simple example of such a network.

enter image description here

As you can see, each generation is on a different line like a tree, but one node is connected to the parent node.

+3


source to share


1 answer


Based on Lars Cottoff's suggestion, I created a regular d3 tree and then added all links that refer to the parent nodes. The d3 trees seem to work without issue when links are added this way.



0


source







All Articles