skbio.tree.BPTree.first_child#
- BPTree.first_child(i)[source]#
Index of the first (leftmost) child of a node.
- Parameters:
- iint
Index of the node to evaluate.
- Returns:
- int
Index of the first child of node
i, or 0 ifiis a tip (0 is the root, which can never be a child).
See also
Notes
Returns an integer index into the parentheses bit array, not a node object. Corresponds to accessing
children[0]on aTreeNode.