Skip to content

Commit

Permalink
Disallow the transitive group of degree 1, as it is not clear whether…
Browse files Browse the repository at this point in the history
… it is of

degree 1 or 0.
This fixes gap-system#797
  • Loading branch information
hulpke committed May 31, 2016
1 parent caf0757 commit 5bde204
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trans/trans.grp
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ local l;
end);

InstallGlobalFunction(NrTransitiveGroups, function(deg)
if deg=1 then
return 0;
fi;
if not(deg in [1..TRANSDEGREES]) then
return fail;
fi;
Expand All @@ -342,6 +345,9 @@ InstallGlobalFunction( TransitiveGroup, function(deg,num)
if not(deg in [1..TRANSDEGREES]) then
Error("degree must be in [1..",TRANSDEGREES,"]");
fi;
if deg=1 then
return fail;
fi;
if not IsBound(TRANSLENGTHS[deg]) then
TransGrpLoad(deg,num);
fi;
Expand Down

0 comments on commit 5bde204

Please sign in to comment.