cycles2perm: Get the permutation given the cycles

View source: R/PerMallows.R

cycles2permR Documentation

Get the permutation given the cycles

Description

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

Usage

cycles2perm(cycles)

Arguments

cycles

a list with the set of disjoint cycles

Value

The permutation in vector notation

Examples

cycles2perm(perm2cycles(c(1,5,2,3,4)))

PerMallows documentation built on April 3, 2025, 11:09 p.m.