Learn R Programming

PerMallows (version 1.1)

cycles2permutation: Get the permutation given the cycles

Description

Get the permutation as a vector given the set of cycles in which it factorizes

Usage

cycles2permutation(cycles)

Arguments

cycles
a list with the set of disjoint cycles

Value

  • the permutation in vector notation

Examples

Run this code
cycles2permutation(permutation2cycles(c(1,5,2,3,4)))

Run the code above in your browser using DataLab