I am using the NLayeredGraphLayout to create a graph from a dataset. The diagram can have multiple top-level nodes (nodes with no parent). When dealing with multiple top-level nodes, I noticed that the algorithm places these shapes in various locations within the document. To remedy this, I created a "dummy" root node and parented all top-level nodes to this new dummy node. Now the graph draws all top-level nodes correctly. The problem is, I do not want the dummy node (and the edges from the dummy node to the top-level nodes) to display. I set the Visible = false property of the root node and edges. While these nodes are hidden as expected, there is now a blank white space above the top-level nodes.
How would I go about getting the top level nodes to draw as they do now, but without white space left by hiding the dummy node and its edges?
Any help would be greatly appreciated.
Thanks.