Now writes every edge in the file