biky

So my requirement is if I click any node as shown in the picture, it should create child node which replicates its adjacent node(with its children) having new key, parent pair value as shown in the picture.
Say someone clicks node 0, it will create node 3 which replicate node 2 and its child and als...