Non-recursive tree layout.
Non-recursive hierarchy layout.