small fixes to GAPGroups

This commit is contained in:
kalmarek 2018-08-08 19:38:22 +02:00
parent 87658ea46e
commit 97f64fdee3
3 changed files with 8 additions and 8 deletions

View File

@ -11,14 +11,14 @@ function group(G::HigmanGroup)
a,b,c,d = gens(higman_group) a,b,c,d = gens(higman_group)
relations = [ relations = [
b^-1*Comm(b,a), b*Comm(b,a),
c^-1*Comm(c,b), c*Comm(c,b),
d^-1*Comm(d,c), d*Comm(d,c),
a^-1*Comm(a,d) a*Comm(a,d)
]; ];
relations = [relations; [inv(rel) for rel in relations]] relations = [relations; [inv(rel) for rel in relations]]
Groups.add_rels!(higman_group, Dict(rel => HigmanGr() for rel in relations)) Groups.add_rels!(higman_group, Dict(rel => higman_group() for rel in relations))
return higman_group return higman_group
end end

View File

@ -3,12 +3,12 @@ struct MappingClassGroup <: GAPGroup
end end
function name(G::MappingClassGroup) function name(G::MappingClassGroup)
N = G.args["N"] N = G.args["MCG"]
return "MCG($(N))" return "MCG($(N))"
end end
function group(G::MappingClassGroup) function group(G::MappingClassGroup)
N = G.args["N"] N = G.args["MCG"]
if N < 2 if N < 2
throw("Genus must be at least 2!") throw("Genus must be at least 2!")
elseif N == 2 elseif N == 2

View File

@ -106,7 +106,7 @@ function main(Gr::GAPGroup)
radius, tol, iterations, upper_bound, warm = params(Gr) radius, tol, iterations, upper_bound, warm = params(Gr)
groupdir = groupname(Gr) groupdir = "$(PropertyTGroups.name(Gr))_r$radius"
isdir(groupdir) || mkdir(groupdir) isdir(groupdir) || mkdir(groupdir)
logger = PropertyT.setup_logging(joinpath(groupdir, "$(upper_bound)"), :fulllog) logger = PropertyT.setup_logging(joinpath(groupdir, "$(upper_bound)"), :fulllog)