Skip to content

Commit

Permalink
Switch to using Append()
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPointon authored Mar 11, 2024
1 parent 6cae53f commit 4929908
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions gap/oper.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2036,11 +2036,9 @@ function(D, roots)

graph_out_neighbors := OutNeighbors(D);
queue := EmptyPlist(N);
queue_tail := 0;
for root in roots do
queue_tail := queue_tail + 1;
queue[queue_tail] := root;
od;
Append(queue, roots);

queue_tail := Length(roots);

index := 1;
while IsBound(queue[index]) do
Expand Down

0 comments on commit 4929908

Please sign in to comment.