edge_data function

Insert edge data attributes during edge creation