added  key value of vertices in edges