add toDAG() using scc file