public abstract class Group extends Object implements Iterable<Permutation>
Permutation
.Modifier and Type | Method and Description |
---|---|
Group |
filter(Predicate<Permutation> pred)
Create a subgroup by accepting some of the elements
in the group.
|
Permutation |
identity()
The identity element of this group.
|
static Group |
identityGroup(int n)
The group consisting of the identity permutation over
0, 1, .... |
int |
n()
The permutations in this group permute the numbers
0, 1, .... |
abstract long |
order()
The number of elements in this group.
|
static Group |
symmetric(int n)
The symmetric group of permutations over
0, 1, .... |
public Permutation identity()
public abstract long order()
public int n()
0, 1, .... n - 1
public static Group symmetric(int n)
0, 1, .... n - 1
public static Group identityGroup(int n)
0, 1, .... n - 1
public Group filter(Predicate<Permutation> pred)
pred
- This predicate must define a subgroup - no checking is provided.