skbio.tree.BPTree.is_ancestor#

BPTree.is_ancestor(i, j)[source]#

Whether a node is an ancestor of another node.

Parameters:
iint

A node index

jint

A node index

Returns:
bool

True if i is an ancestor of j, False otherwise.