Direction of the tree layout

Hi everyone!

I need to generate trees. I am using the reingold-tilford layout, but I can only make it work with trees from the bottom up to the top if I define a root node. Does anyone of you guys know how to display a tree starting at the top of the screen with node 0?

Thanks!
Sophia

Just invert the layout after plotting by flipping the Y axis. The easiest is to call layout.mirror(1):

g = Graph.Tree(15, 2)
layout = g.layout("rt")
layout.mirror(1)