Genealogy Paclet SymbolMore About »

TreeNodeParent

TreeNodeParent[tree, i]
returns the parent node of node i in tree. It is defined only for positive integer of i. If i>= 2 n-1, returns -1. Here n is the number of leaves.