adding deletion flag for vertices and edges