Get the lineage json with multiple parent at top

Hello everyone ,

I need a help in getting the json with tree structure .
i am doing it with the help of apoc.convert.totree procedure and it is working when we have only one root node at top .
but in my case i am facing a scenario that in top i have multiple root and like below.

A-[]->D
B-[]->D
C-[]->D
D-[]->E-[]->F-[]->G

could you please help me how i can do this and display it an json when i am giving as input F node id