getDescendants function

Get descendant node numbers