adds interface and renames digraph