temporary works also with edges. Need to think about how to represent the elements.