pub fn rank(degree: usize, gens: &[Perm]) -> usize
The rank of the group: the number of orbitals (orbits on ordered pairs). A transitive group has rank 2 iff it is 2-transitive; a regular group has rank equal to its degree.
2