Use depth first traversal by default