def METHOD_NAME(self, point):
    root = point
    update_parent = False
    tmp = self.group_mask[root]
    while tmp is not -1:
        root = tmp
        tmp = self.group_mask[root]
        update_parent = True
    if update_parent:
        self.group_mask[point] = root
    return root