Readfile returns digraph instead of graph