Else if y ' s ▁ rank ▁ is ▁ less ▁ than ▁ x ' s rank Then move y under x so that depth of tree remains less
elif self . rank [ yRoot ] < self . rank [ xRoot ] : NEW_LINE INDENT self . parent [ yRoot ] = xRoot NEW_LINE DEDENT