def __init__(self, n, m, freq):
        self._threshold = (n + m) / freq if freq else float('inf')
        self._work = 0
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/flow/utils.py/GlobalRelabelThreshold.__init__/original