I am looking for the functionality that hides / Show inbetween nodes on clicking an external button in Tree layout.
Suppose if I have 3 nodes A-B-C on toggling button it should hide B and shows as A-C in tree layout.
Is this doable??
If you made B transparent (opacity zero) there probably would be a gap in the links where B is.
I think the best results would come if you actually made B not visible and added a link from A to C.
So you quote that I have to change the LinkDataArray??
No, it is not necessary to change the model. You could add a Link from A to C by calling Diagram.add. But data bindings do not work on unmodeled Parts.
Remember to call Diagram.remove on that Link at the appropriate time.