Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPointon committed Feb 13, 2024
1 parent a4faf94 commit a1fd666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gap/oper.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2068,11 +2068,11 @@ function(D, roots)
ErrorNoReturn("the 1st argument (a digraph) must be a partial order digraph");
fi;

N := Length(roots);
N := DigraphNrVertices(D);
vertex_in_subset := BlistList([1 .. N], roots);
reachable_vertices := VerticesReachableFrom(D, roots);

return Length(reachable_vertices) = Length(roots) and not ForAny(reachable_vertices, x -> vertex_in_subset[x]);
return Length(reachable_vertices) = Length(roots) and ForAll(reachable_vertices, x -> vertex_in_subset[x]);

end);

Expand Down

0 comments on commit a1fd666

Please sign in to comment.