From 87b3ff5671343f160bcea25e8c5d54e7dbd62065 Mon Sep 17 00:00:00 2001 From: reiniscirpons Date: Thu, 29 Aug 2024 16:45:09 +0100 Subject: [PATCH] Improve rank to fix issue when both Semigroups and Digraphs are loaded --- gap/attr.gi | 1 + 1 file changed, 1 insertion(+) diff --git a/gap/attr.gi b/gap/attr.gi index 420358e9f..c2fde5582 100644 --- a/gap/attr.gi +++ b/gap/attr.gi @@ -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]) );