Layout of nested graphs in code

Describes how to perform a layout on nested graphs.