Fix digraphs.