add vertex and edge are added.