Depth- and breadth-first set closures