Give identity to edges