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