new way of working with edges/vertices