possible inaccuracy the article says another way to think of it is that the order that the leaves would be visited in a depth first search must be the same after the operation as before correct me if i'm wrong but i believe the order of visiting the leaves in a dfs after the rotation will change but the in order traversal will remain the same dfs traversal before right rotation qpabc dfs traversal after right rotation paqbc in order traversal before right rotation apbqc in order traversal after right rotation apbqc