Skip to content

Commit 89dbee0

Browse files
committed
Merge branch 'stable-1.5'
2 parents d783a6d + 8a497ec commit 89dbee0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

gap/grahom.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function(D, n)
107107
fi;
108108
fi;
109109

110-
# Only the null D with 0 vertices can be coloured with 0 colours
110+
# Only the null digraph with 0 vertices can be coloured with 0 colours
111111
if n = 0 then
112112
if DigraphHasNoVertices(D) then
113113
return IdentityTransformation;

src/digraphs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Obj FuncOutNeighbours(Obj self, Obj D) {
8686
if (!RNamOutNeighbours) {
8787
RNamOutNeighbours = RNamName("OutNeighbours");
8888
}
89-
if (!CALL_1ARGS(IsDigraph, D)) {
89+
if (CALL_1ARGS(IsDigraph, D) != True) {
9090
ErrorQuit("expected a digraph, not a %s", (Int) TNAM_OBJ(D), 0L);
9191
} else if (IsbPRec(D, RNamOutNeighbours)) {
9292
return ElmPRec(D, RNamOutNeighbours);

tst/standard/digraph.tst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,10 @@ false
18731873
gap> "brinkmann" in ListNamedDigraphs("man", 1000);
18741874
true
18751875

1876+
# OutNeighbours
1877+
gap> OutNeighbours(OutNeighbours);
1878+
Error, expected a digraph, not a function
1879+
18761880
# DIGRAPHS_UnbindVariables
18771881
gap> Unbind(G);
18781882
gap> Unbind(adj);

0 commit comments

Comments
 (0)