BNEXT

BNEXT(t;x;y) finds the numbers of the nodes on branches y from nodes x in tree t (or * for any terminal node).