Move edge id attribute to the containing group