56 uf->
data = (
struct ufrec*) malloc((maxid+1) *
sizeof(
struct ufrec));
57 for (uint32_t i = 0; i <=
maxid; i++) {
129 uint32_t asize = uf->
data[aroot].
size;
130 uint32_t bsize = uf->
data[broot].
size;
static unionfind_t * unionfind_create(uint32_t maxid)
static uint32_t unionfind_get_representative(unionfind_t *uf, uint32_t id)
static uint32_t unionfind_get_set_size(unionfind_t *uf, uint32_t id)
static uint32_t unionfind_connect(unionfind_t *uf, uint32_t aid, uint32_t bid)
static void unionfind_destroy(unionfind_t *uf)