Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPointon committed Feb 7, 2024
1 parent 40a2252 commit a1dfdb1
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 @@ -2021,7 +2021,7 @@ InstallMethod(VerticesReachableFrom, "for a digraph and a list of vertices",
function(D, roots)
local N, index, visited, prev, n, i, parent, queue_tail,
have_visited_root, queue, root, element, neighbour, visited_as_ints,
all_neighbors, node_neighbours;
graph_out_neighbors, node_neighbours;
N := DigraphNrVertices(D);
visited := BlistList([1 .. N], []);

Expand All @@ -2033,7 +2033,7 @@ function(D, roots)
fi;
od;

all_neighbors := OutNeighbors(D);
graph_out_neighbors := OutNeighbors(D);
queue := ListWithIdenticalEntries(N, -1);
queue_tail := 0;
for root in roots do
Expand All @@ -2045,7 +2045,7 @@ function(D, roots)
index := 1;
while index <= Length(queue) and queue[index] > 0 do
element := queue[index];
node_neighbours := all_neighbors[element];
node_neighbours := graph_out_neighbors[element];
for neighbour in node_neighbours do
if not visited[neighbour] then;
visited[neighbour] := true;
Expand Down

0 comments on commit a1dfdb1

Please sign in to comment.