InvertPermutation {GraphAlignment} | R Documentation |
Invert the permutation defined by the specified vector.
InvertPermutation(p)
p |
permutation vector |
The return value is a permutation vector equal to the inverse of the input permutation.
Joern P. Meier, Michal Kolar, Ville Mustonen, Michael Laessig, and Johannes Berg
p <- rank(rnorm(10)) pInv <- InvertPermutation(p)