ToInversionVector

ToInversionVector[p]
gives the inversion vector associated with permutation p.

DetailsDetails