(x)
| 25 | xRoot.rank = xRoot.rank + 1 |
| 26 | |
| 27 | def Find(x): |
| 28 | if x.parent == x: |
| 29 | return x |
| 30 | else: |
| 31 | x.parent = Find(x.parent) |
| 32 | return x.parent |
| 33 | |
| 34 | """""""""""""""""""""""""""""""""""""""""" |
| 35 | # sample code using Union-Find (not needed) |
no outgoing calls
no test coverage detected