enumerate direct neighbors of a tree