Skip to content

Commit

Permalink
Improve rank to fix issue when both Semigroups and Digraphs are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
reiniscirpons committed Aug 29, 2024
1 parent 9762d43 commit 87b3ff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gap/attr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ InstallMethod(SparseIntKey, "for an object and digraph",
# To make orb package use DigraphHash
InstallMethod(ChooseHashFunction, "for a digraph and positive integer",
[IsDigraph, IsInt],
2,
{D, hashlen} -> rec(func := {x, data} -> 1 + (DigraphHash(x) mod data[1]),
data := [hashlen])
);
Expand Down

0 comments on commit 87b3ff5

Please sign in to comment.