Binary file reader working for directed graphs.