Especially for
11011110 and
complexzeta.
Suppose I have some planar tree. I can rely on the tree being stored in a custom datatype, something like the Haskell
I wish to produce a picture of the tree, drawn with root downwards, and all the branches pointing upwards (as in ending with a higher y-coordinate than they started). I would prefer to end up with xypic code for inclusion in LaTeX documents, but this is not necessarily a must.
Is there already libraries available to do this? And if not libraries, are there known methods for doing this? Where should I look?
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
Suppose I have some planar tree. I can rely on the tree being stored in a custom datatype, something like the Haskell
data Tree = Leaf | Node [Tree]
I wish to produce a picture of the tree, drawn with root downwards, and all the branches pointing upwards (as in ending with a higher y-coordinate than they started). I would prefer to end up with xypic code for inclusion in LaTeX documents, but this is not necessarily a must.
Is there already libraries available to do this? And if not libraries, are there known methods for doing this? Where should I look?