skbio.tree.BPTree.next_sibling#
- BPTree.next_sibling(i)[source]#
Index of the next (right) sibling of a node.
- Parameters:
- iint
Index of the node to evaluate.
- Returns:
- int
Index of the next sibling of node
i, or 0 ifihas no next sibling (0 is the root, which can never be a sibling).
Notes
Returns the integer index of a single sibling, unlike
siblings, which returns a list of all sibling nodes.