Skip to content

Commit

Permalink
Update gap/oper.gi
Browse files Browse the repository at this point in the history
Co-authored-by: James Mitchell <james-d-mitchell@users.noreply.github.com>
  • Loading branch information
DanielPointon and james-d-mitchell authored Feb 13, 2024
1 parent 6c715e6 commit afc524f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gap/oper.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2026,7 +2026,7 @@ function(D, roots)
visited := BlistList([1 .. N], []);

for root in roots do
if 0 = root or root > N then
if not IsPosInt(N) or 0 = root or root > N then
ErrorNoReturn("an element of the 2nd argument ",
"(roots) is not a vertex of the 1st ",
"argument (a digraph)");
Expand Down

0 comments on commit afc524f

Please sign in to comment.