'Return the inverse of the permutation.
A permutation multiplied by its inverse is the identity permutation.
Examples
>>> from sympy.combinatorics.permutations import Permutation
>>> p = Permutation([[2,0], [3,1]])
>>> ~p
Permutation([2, 3, 0, 1])
>>> _ == p**-1
True
>>> p*~p == ~p*p == Permutation([0, 1, 2, 3])
True'

def __invert__(self):

    return self._af_new(_af_invert(self._array_form))
