change order of allocation of vertices, edges in function ...new_from_file