Add edge ends with identity