scikit-bio is back in active development! Check out our announcement of revitalization.

skbio.tree.TreeNode.assign_ids#

TreeNode.assign_ids()[source]#

Assign topologically stable unique ids to self.

Following the call, all nodes in the tree will have their id attribute set.