Quantum entanglement in the triangle network