Skip to content

Commit

Permalink
Fix even more syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPointon committed Feb 6, 2024
1 parent e2fe1f5 commit 017d6e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gap/oper.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,7 @@ InstallMethod(VerticesReachableFrom, "for a digraph and a vertex",
[IsDigraph, IsList],
function(D, roots)
local N, index, current, succ, visited, prev, n, i, parent,
have_visited_root, queue, root;
have_visited_root, queue, root, element;
N := DigraphNrVertices(D);
visited := BlistList([1 .. N], []);
# if 0 = root or root > N then
Expand All @@ -2019,9 +2019,9 @@ function(D, roots)
Add(queue, root); # TODO: Structure differently for complexity reasons
od;

index = 0;
index := 0;
while index <= Length(queue) do
element = queue[index]
element := queue[index];
neighbours := OutNeighbors(element);
for neighbour in neighbours do
visited[neighbours] = 1;
Expand Down

0 comments on commit 017d6e3

Please sign in to comment.