fixed problem with double edges in digraph module