make check for digraph a lot faster