Skip to content

Commit

Permalink
Merge branch 'stable-1.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfwilson committed Nov 25, 2021
2 parents d783a6d + 8a497ec commit 89dbee0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gap/grahom.gi
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function(D, n)
fi;
fi;

# Only the null D with 0 vertices can be coloured with 0 colours
# Only the null digraph with 0 vertices can be coloured with 0 colours
if n = 0 then
if DigraphHasNoVertices(D) then
return IdentityTransformation;
Expand Down
2 changes: 1 addition & 1 deletion src/digraphs.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Obj FuncOutNeighbours(Obj self, Obj D) {
if (!RNamOutNeighbours) {
RNamOutNeighbours = RNamName("OutNeighbours");
}
if (!CALL_1ARGS(IsDigraph, D)) {
if (CALL_1ARGS(IsDigraph, D) != True) {
ErrorQuit("expected a digraph, not a %s", (Int) TNAM_OBJ(D), 0L);
} else if (IsbPRec(D, RNamOutNeighbours)) {
return ElmPRec(D, RNamOutNeighbours);
Expand Down
4 changes: 4 additions & 0 deletions tst/standard/digraph.tst
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,10 @@ false
gap> "brinkmann" in ListNamedDigraphs("man", 1000);
true

# OutNeighbours
gap> OutNeighbours(OutNeighbours);
Error, expected a digraph, not a function

# DIGRAPHS_UnbindVariables
gap> Unbind(G);
gap> Unbind(adj);
Expand Down

0 comments on commit 89dbee0

Please sign in to comment.