enabled adding new vertex and edge at the same time