implemented delete operations for vertex and edge