Hi Nick.
If you use the function reorder.phylo(...,order="pruningwise") the
resultant tree edge matrix is suitable for post-order traversal (i.e.,
the daughters always precede the parents in top-to-bottom matrix
traversal). This might be helpful for what you would like to do - for
instance if you just label the nodes as they are first encountered in
the matrix this would be in the order of a post-order traversal of the tree.
All the best, Liam
--
Liam J. Revell
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://phytools.blogspot.com
On 9/14/2011 9:23 PM, Nick Matzke wrote:
Hi all,
To display the node reconstructions from another program in APE, I need
to label my internal nodes as they would be labeled in a post-order tree
traversal.
Is there an easy way/function to do this somewhere, or do I have to
write my own tree-traversing functions?
Cheers,
Nick
_______________________________________________
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo