'Examples
>>> from sympy.combinatorics.free_groups import free_group
>>> f, x, y, z = free_group("x y z")
>>> y**2 > x**2
True
>>> y*z > z*y
False
>>> x > x.inverse()
True'

def __gt__(self, other):

    group = self.group
    if (not isinstance(other, group.dtype)):
        raise TypeError('only    FreeGroup    elements    of    same    FreeGroup    can    be    compared')
    return (not (self <= other))
