recode_edge_attrs function

Recode a set of edge attribute values