Defining the union-find data structure
| 17 | |
| 18 | // Defining the union-find data structure |
| 19 | type UnionFind struct { |
| 20 | parent []int |
| 21 | rank []int |
| 22 | } |
| 23 | |
| 24 | // Initialise a new union find data structure with s nodes |
| 25 | func NewUnionFind(s int) UnionFind { |
nothing calls this directly
no outgoing calls
no test coverage detected