Skip to content

Commit

Permalink
Added IsOrderFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
zljlzljlz authored and mtorpey committed Nov 27, 2024
1 parent c0a8e1b commit 6de8243
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 @@ -142,6 +142,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 @@ -2312,6 +2312,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 6de8243

Please sign in to comment.