a function for igraph obejects which matches nodes attributes with edgelist column. The function returns a data.frame or a new igraph object with the corresponding additional edge attributes