Interval-based tree traversal.