This sample demonstrates a custom Layout, ArrangingLayout, that provides layouts of layouts. It assumes the graph should be split up and laid out by potentially three separate Layouts.
The remaining nodes and links are partitioned into separate subgraphs with no links between subgraphs. The ArrangingLayout.primaryLayout is performed on each subgraph.
If there is more than one subgraph, those subgraphs are treated as if they were individual nodes and are laid out by the ArrangingLayout.arrangingLayout.
This extension layout is defined in its own file, as ArrangingLayout.js.