niemasd / TreeSwift

TreeSwift: Fast tree module for Python 3
https://niema.net/TreeSwift
GNU General Public License v3.0
75 stars 14 forks source link

Add ability to reroot trees #2

Closed niemasd closed 6 years ago

niemasd commented 6 years ago

Method should probably take as input a Node object (the Node whose incident edge the tree will be rerooted on) and a float (the distance up the edge at which to reroot). See DendroPy for ideas regarding how the API should look for rerooting to keep it consistent for users

niemasd commented 6 years ago

Added to version 1.0.36