Skip to content

Commit f059c36

Browse files
Remove 'HashSet' variable, as it clashes with Datastructures
1 parent 6ffcd1e commit f059c36

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

lib/autGraphs.gd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
#Y St. Andrews, Fife KY16 9SS, Scotland
2323
##
2424

25-
#############################################################################
26-
##
27-
#V HashSet
28-
##
29-
DeclareGlobalVariable("HashSet");
30-
3125
#############################################################################
3226
##
3327
#F GraphToAut(g,innode,outnode)

lib/autGraphs.gi

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
#Y St. Andrews, Fife KY16 9SS, Scotland
1919
##
2020

21-
#############################################################################
22-
##
23-
#V HashSet
24-
##
25-
InstallValue(HashSet, s->HashKeyBag(s,57,0,4+4*Length(s)));
26-
2721
#############################################################################
2822
##
2923
#F GraphToAut(g,innode,outnode)
@@ -35,7 +29,7 @@ InstallGlobalFunction(GraphToAut, function(g,innode,outnode)
3529
he, x, init, a;
3630

3731
states := [[]];
38-
ht := SparseHashTable(HashSet);
32+
ht := SparseHashTable( s->HashKeyBag(s,57,0,4+4*Length(s)) );
3933
AddHashEntry(ht,[],1);
4034
tm := List([1..Length(g)], x-> [[]]);
4135
ins := g[innode];
@@ -131,7 +125,7 @@ InstallGlobalFunction(ConstrainedGraphToAut, function(g,innode,outnode,capacity)
131125
he, x, init, a;
132126

133127
states := [[]];
134-
ht := SparseHashTable(HashSet);
128+
ht := SparseHashTable( s->HashKeyBag(s,57,0,4+4*Length(s)) );
135129
AddHashEntry(ht,[],1);
136130
tm := List([1..Length(g)], x-> [[]]);
137131
ins := g[innode];

0 commit comments

Comments
 (0)