def _find_ancestor(self, heads, min_support):
        ancestor = self.parent
        while ancestor.key != FPNode.root_key:
            support = heads[ancestor.key][1]
            if min_support >= support:
                break
            else:
                ancestor = ancestor.parent
        return ancestor
dataset/ETHPy150Open bartdag/pymining/pymining/itemmining.py/FPNode._find_ancestor/swapped operands of `>=`