add options to rename vertices and to write an edgelist