多个根节点垂直层次布局

我要怎么实现多个根节点默认垂直往下布局的,
我看了一下Custom Expand and Collapse这个例子,它 是默认水平布局的,我想让它垂直往下布局

If you were using TreeLayout, you could set TreeLayout.arrangement to go.TreeLayout.ArrangementVertical.

But LayeredDigraphLayout does not have that feature. You will need to call Diagram.moveParts on the subsets of the diagram that you want.