add labels to edges