-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsemigroup-tests.g
48 lines (41 loc) · 1.1 KB
/
semigroup-tests.g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
############
#
# Load tools
#
############
LoadPackage( "semigroupviz" );
############
#
# Do some testing of the above routines
#
############
S := Monoid( [ Transformation( [ 2, 4, 3, 4 ] ),
Transformation( [ 3, 3, 2, 3, 3 ] ) ] );;
Size( S );;
T := Semigroup( [ Transformation( [ 3, 5, 4, 2, 6, 3 ] ) ] );;
Size( T );;
DP := DirectProduct( S, T );;
Size( DP );;
# ShowEggBoxDiagram( DP );
# ShowEggBoxDiagram( CatalanMonoid( 4 ) );
ShowEggBoxDiagram(
SingularTransformationSemigroup( 5 ),
rec(
ToString := x -> String( ListTransformation( x ) )#,
#NrDClassesIncluded := 2,
#NrRClassesIncludedPerDClass := 2,
#NrLClassesIncludedPerRClass := 2,
#NrElementsIncludedPerHClass := 2
)
);
# Sm := Semigroup( [
# Transformation( [ 1, 1, 1 ] ),
# Transformation( [ 1, 2, 2 ] )
# ] );
# Print( EggBoxDiagramRecord( Sm, rec(
# ToString := x -> String( ListTransformation( x ) ),
# NrDClassesIncluded := 0,
# NrRClassesIncludedPerDClass := 0,
# NrLClassesIncludedPerRClass := 0,
# NrElementsIncludedPerHClass := 0
# ) ), "\n" );