fix Graph add_vertices (to be compatible with new and old versions of igraph)