digraph class added