Skip to content

Commit d81d4e1

Browse files
james-d-mitchellwilfwilson
authored andcommitted
Fix issue 251
1 parent d836ca0 commit d81d4e1

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

gap/grahom.gi

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function(arg)
8080
DigraphWelshPowellOrder(D));
8181

8282
if (limit = infinity or Length(gens) < limit_arg) and IsImmutableDigraph(D)
83-
then
83+
and colours = fail then
8484
SetGeneratorsOfEndomorphismMonoidAttr(D, out);
8585
fi;
8686
return out;

tst/standard/grahom.tst

+17-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ gap> gr := CompleteDigraph(5);;
193193
gap> GeneratorsOfEndomorphismMonoid(gr, [1, 2, 3, 4, 5]);
194194
[ IdentityTransformation ]
195195
gap> GeneratorsOfEndomorphismMonoid(gr);
196-
[ IdentityTransformation ]
196+
[ Transformation( [ 2, 3, 4, 5, 1 ] ), Transformation( [ 2, 1 ] ),
197+
IdentityTransformation ]
197198
gap> GeneratorsOfEndomorphismMonoid(gr, [1, 1, 1, 2, 2]);
198199
[ Transformation( [ 1, 2, 3, 5, 4 ] ), Transformation( [ 1, 3, 2 ] ),
199200
Transformation( [ 2, 1 ] ), IdentityTransformation ]
@@ -2124,6 +2125,21 @@ gap> D2 := DigraphFromGraph6String("E}h_");
21242125
gap> mono := MonomorphismsDigraphs(D1, D2);
21252126
[ ]
21262127

2128+
# Issue 251
2129+
gap> gr := CompleteDigraph(5);
2130+
<immutable complete digraph with 5 vertices>
2131+
gap> GeneratorsOfEndomorphismMonoid(gr);
2132+
[ Transformation( [ 2, 3, 4, 5, 1 ] ), Transformation( [ 2, 1 ] ),
2133+
IdentityTransformation ]
2134+
gap> gr := CompleteDigraph(5);
2135+
<immutable complete digraph with 5 vertices>
2136+
gap> GeneratorsOfEndomorphismMonoid(gr, [1, 1, 1, 2, 3]);
2137+
[ Transformation( [ 1, 3, 2 ] ), Transformation( [ 2, 1 ] ),
2138+
IdentityTransformation ]
2139+
gap> GeneratorsOfEndomorphismMonoid(gr);
2140+
[ Transformation( [ 2, 3, 4, 5, 1 ] ), Transformation( [ 2, 1 ] ),
2141+
IdentityTransformation ]
2142+
21272143
# DIGRAPHS_UnbindVariables
21282144
gap> Unbind(edges);
21292145
gap> Unbind(epis);

0 commit comments

Comments
 (0)