Implement a timeline graph depth-first search iterator.