changed representation of edge / link layers to tuple format