# skbio.tree.TreeNode.__deepcopy__¶

TreeNode.__deepcopy__()[source]

Returns a copy of self using an iterative approach

State: Experimental as of 0.4.0.

Perform an iterative deepcopy of self. It is not assured that the copy of node attributes will be performed iteratively as that depends on the copy method of the types being copied

Returns

A new copy of self

Return type

TreeNode

Examples

>>> from skbio import TreeNode