def METHOD_NAME(self, set_value):
    r"""
    Description
    -----------
    Set allow_zero_in_degree flag.
    Parameters
    ----------
    set_value : bool
        The value to be set to the flag.
    """
    self._allow_zero_in_degree = set_value