Bug fix for edges of directed graphs.