jj <- as.cycle(c("123", "", "(12)(34)", "12345"))
jj
shape(jj)
shape(rperm(10, 9)) # coerced to cycle
a <- rperm()
identical(shape(a, dec=TRUE), shape(a^cyc_len(2), dec=TRUE))
data(megaminx)
shape(megaminx)
jj <- megaminx*megaminx[1]
identical(shape(jj), shape(tidy(jj))) #tidy() does not change shape
allperms(3)
shapepart(allperms(3))
shapepart(rperm(10, 5))
shape_cyclist(list(1:4, 8:9))
shapepart_cyclist(list(1:4, 8:9))
Run the code above in your browser using DataLab