Function tskit::bindings::tsk_tree_is_descendant
source · pub unsafe extern "C" fn tsk_tree_is_descendant(
self_: *const tsk_tree_t,
u: tsk_id_t,
v: tsk_id_t
) -> bool
Expand description
@brief Returns true if u is a descendant of v.
@rst Returns true if u and v are both valid nodes in the tree sequence and v lies on the path from u to root, and false otherwise.
Any node is a descendant of itself. @endrst
@param self A pointer to a tsk_tree_t object. @param u The descendant node. @param v The ancestral node. @return true if u is a descendant of v, and false otherwise.