factored out mapping edge attributes from one graph to another