cleanup digraph, add #reverse