add digraph