Thanks Stoyan, however splitting the branch and creating the dummy nodes isn't what I'm having trouble with.
The trouble I'm having is in laying out the diagram after splitting the long branch. I'm not sure that it's possible to lay this out the way that it's structured.
The parent node that is split is part of a bordered layout. It's two direct children (the dummy nodes) are centralized, and the dummy nodes are bordered. It's basically 3 different layout styles in one branch.
I DO have it working as I want it to, but when the branch is split, it collides with adjacent branches. See below:
The circled node is the one that is split. As you can see, it collides with the branch of it's parent, and if it's children had children as well, it would also collide with the branch to the right of it.
I COULD programatically move the split node to the right, so that it didn't collide with it's parent branch, but then I would also need to programatically move all of the other branches(the ones the arrows are pointing to in the graphic) to the right as well. I'd rather not go down that route as this is a very simple diagram. Many diagrams that we generate have thousands of nodes.
I'd rather go through the diagram and re-apply a layout to all of the nodes, but I think the split branch is going to give me problems.
Any ideas?
Note: All nodes are grouped to their parent.
Is there a way, in code, to determine if a node is laid out bordered or centralized?
Thanks Again,
Alan