I cannot understand this way of viewing whether a group is abelian using cayley's diagram: (from Visual group theory book)

What I can't understand is that while checking being abelian we check $ab=ba$ for any $a,b \in G$, but from diagram we see being abelian means that first $a$ being applied on an element and then $b$ being applied on another element (this element being reached through arrow $a$) is equal to vice-versa procedure as seen in diagram.
Can anyone explain mathematically how it shows being abelian?
Recall that "applying $a$" means moving from the start node along a red arrow, and similarly for $b$. So applying first $a$, then $b$ (i.e. computing $ba$) means moving along the red arrow, then along the blue arrow, while applying first $b$, then $a$ (computing $ab$) means moving along the blue arrow, then along the red arrow. So in the left-hand diagram, you end up in different places, while in the right-hand diagram you end up in the same place.
If you think of the operations as being symmetries of some object, what this means is that the object will be in different configurations if its symmetry group has the Cayley diagram on the left.