Example ordering:
Specifically:
The wait-for graph is:
Since transaction T2 will lock database element according to their order, we conclude that:
Since transaction T3 will lock database element according to their order, we conclude that:
I.e.:
we conclude that:
And we have a contradiction:
Therefore: