Enumerate leaf nodes with depth-first strategy