Closed fangly closed 11 years ago
To get the effect shown in the JSTOR image I think you should get the immediate parent for SP4 and SPH and call $node->collapse() on it.
Funny, I did not realize how ambiguous the term rerooting can be. Cheers for the explanations, Rutger.
Hi Rutger,
I am trying to reroot a tree, in the way shown here: http://www.jstor.org/action/showPopup?citid=citart1&id=fg2&doi=10.1086%2F303327 http://www.ploscompbiol.org/article/info:doi/10.1371/journal.pcbi.1002743.g002/largerimage
In the following code, I have attemped to use the $tree->reroot() method for this purpose, but as you can see, I do not get the expected results. I am not using the proper method for this purpose or am I missing something else?
Thanks,
Florent