trav_in_until function

Traverse inward node-by-node until stopping conditions are met