Add DFS acyclic function as the default