# skbio.tree.TreeNode.is_root¶

TreeNode.is_root()[source]

Returns True if the current is a root, i.e. has no parent.

State: Experimental as of 0.4.0.

Returns

True if the node is the root

Return type

bool

Examples

>>> from skbio import TreeNode