I want to show two buttons outside diagram area and implement expand/collapse feature. When you click on buttons, graph nodes should expand/collapse level by level from a given root node.
Collapse click one - collapse all the leaf nodes of the tree from given root node, now parents of each leaf node become a leaf node.
Collapse click two - collapse all current leaf nodes, parent of leaf become the leaf… so on
and expand should do the opposite.
Is it possible to do this with GoXamp library? How easy/hard to do it? Appreciate if you could point me at the right direction and would be great if there is a sample code too(I’ve checked samples and there is a sample to put a expand/collapse button near a node. My requirement is bit different and it involves finding the depth of the graph based on a given root node.).