Given an object of class cycle
, function get1()
returns a
representative of each of the disjoint cycles in the object's elements.
Function get_cyc()
returns the cycle containing a specific element.
get1(x,drop=TRUE)
get_cyc(x,elt)
permutation object (coerced to cycle
class)
In function get1()
, argument drop
controls
the behaviour if x
is length 1. If drop
is
TRUE
, then a vector of representative elements is returned;
if FALSE
, then a list with one vector element is returned
Length-one vector interpreted as a permutation object
# NOT RUN { data(megaminx) get1(megaminx) get1(megaminx[1]) get1(megaminx[1],drop=TRUE) get_cyc(megaminx,11) # }