Skip to content

Commit

Permalink
Added IsOrderFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
zljlzljlz committed Oct 9, 2024
1 parent bc224d1 commit d29873a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions gap/oper.gd
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ DeclareOperation("DigraphShortestPathSpanningTree", [IsDigraph, IsPosInt]);
DeclareOperation("VerticesReachableFrom", [IsDigraph, IsPosInt]);
DeclareOperation("VerticesReachableFrom", [IsDigraph, IsList]);
DeclareOperation("IsOrderIdeal", [IsDigraph, IsList]);
DeclareOperation("IsOrderFilter", [IsDigraph, IsList]);
DeclareOperation("Dominators", [IsDigraph, IsPosInt]);
DeclareOperation("DominatorTree", [IsDigraph, IsPosInt]);
DeclareOperation("DigraphCycleBasis", [IsDigraph]);
Expand Down
5 changes: 5 additions & 0 deletions gap/oper.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2076,6 +2076,11 @@ function(D, roots)

end);

InstallMethod(IsOrderFilter, "for a digraph and a list of vertices", [IsDigraph, IsList],
function(D, roots)
return IsOrderIdeal(DigraphReverse(D), roots);
end);

InstallMethod(DominatorTree, "for a digraph and a vertex",
[IsDigraph, IsPosInt],
function(D, root)
Expand Down

0 comments on commit d29873a

Please sign in to comment.