Add labels to edges