@staticmethod
def _dual_of_single_group(order, discrete):
    """
        Compute the dual of a single group.
        """
    if discrete:
        if order == 0:
            return [1, False]
        else:
            return [order, True]
    elif order == 0:
        return [0, False]
    else:
        return [0, True]
