remove_vertex refactor

add checking whether graph has edges using this vertex