def _selector(self, e, naliases):
    if (naliases <= 1):
        return 0
    else:
        return ((estimate_cost(e, True) * naliases) // self._opt_mincost)
def _selector(self, e, naliases):
    if (naliases <= 1):
        return 0
    else:
        return ((estimate_cost(e, True) * naliases) // self._opt_mincost)