I'm trying to use D3 to create a tree layout. I want to modify the standard d3 tree layout to represent a tree layout like following. In my layout, some of the child nodes can be converged into one node. It is the only difference between that layout and the standard tree layout.
A
/ \
B C
/\ \
D E F
| | |
G H L
\ //
J
|
K
In the above layout B node has 3 children(D,E,F) and each has one child node (G,H,L) and those 3 children again converge into one node (J).
I can use a javascript library other than D3 also.