Remove a TreeNode from self.
Remove a child node by its index position. All node lookup caches are invalidated, and the parent reference for the popped node will be set to None.
Parameters: | index : int
|
---|---|
Returns: | TreeNode
|
See also
Examples
>>> from skbio.core.tree import TreeNode
>>> tree = TreeNode.from_newick("(a,b)c;")
>>> print tree.pop(0)
a;