when deleting vertex the connected edges should also be removed from search