Fix adding edges after removing vertex.