changed return type of ...get_vertex_id to bool