Made common data structure for edge and vertex implementations