trav_out_until function

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