From 017d6e3bb94aad48bce7075e882008cc38ddf94e Mon Sep 17 00:00:00 2001 From: Daniel Pointon Date: Tue, 6 Feb 2024 15:17:36 +0000 Subject: [PATCH] Fix even more syntax errors --- gap/oper.gi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gap/oper.gi b/gap/oper.gi index af80bc997..5bff00599 100644 --- a/gap/oper.gi +++ b/gap/oper.gi @@ -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 @@ -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;