This sample demonstrates a custom TreeLayout, ParallelLayout, which assumes that there is a single "Split" node that is the root of a tree, other than links that connect with a single "Merge" node. The layout is defined in its own file, as ParallelLayout.ts.

Both the Diagram.layout and the Group.layout are instances of ParallelLayout, allowing for nested layouts that appear in parallel.