edge removal heuristic for DAGs