Take the map $ij \mapsto e_j - e_i$. Then $12$ corresponds to $e_2 - e_1$, $23$ corresponds to $e_3 - e_2$, $13$ corresponds to $e_3 - e_1$. On the left hand side of the Yang-Baxter equation, the simple roots $e_2-e_1$, $e_3 - e_2$ are on the boundary. There sum $e_3 - e_1$ is in the middle. On the right hand side, we also have the simple roots $e_2-e_1$, $e_3 - e_2$ are on the boundary. There sum $e_3 - e_1$ is in the middle.