Currently, every node is put on the top-most layer it can be at. This often doesn't work well, in particular for sink nodes: <img width="236" alt="image" src="https://user-images.githubusercontent.com/4067975/167301318-c2898902-6711-41b3-9328-29c8b3aa49d6.png"> Inserting dummy nodes makes it particularly bad. There should be configurable modes for layering: * top/down or bottom/up * put sources/sinks to the top/bottom/center