added ability to write edgelist to file instead of a matrix