-
Notifications
You must be signed in to change notification settings - Fork 8
/
init.g
56 lines (41 loc) · 1.41 KB
/
init.g
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
##
## Datastructures: GAP package providing common datastructures.
##
## Copyright (C) 2015-2017 The datastructures team.
## For list of the team members, please refer to the COPYRIGHT file.
##
## This package is licensed under the GPL 2 or later, please refer
## to the COPYRIGHT.md and LICENSE files for details.
##
##
#R Read the declaration files.
##
if not LoadKernelExtension("datastructures") then
Error("failed to load the datastructures package kernel extension");
fi;
# interface definitions
ReadPackage("datastructures", "gap/queue.gd");
ReadPackage("datastructures", "gap/heap.gd");
ReadPackage("datastructures", "gap/ordered.gd");
# deque implemented using a circular buffer
ReadPackage("datastructures", "gap/plistdeque.gd");
# doubly linked list
#ReadPackage("datastructures", "gap/dllist.gd"); # TODO: disabled for now
# Binary heap
ReadPackage("datastructures", "gap/binaryheap.gd");
# Pairing heaps
ReadPackage("datastructures", "gap/pairingheap.gd");
# hash maps
ReadPackage("datastructures", "gap/hashmap.gd");
# hash sets
ReadPackage("datastructures", "gap/hashset.gd");
# Slices
ReadPackage("datastructures", "gap/slice.gd");
# Stacks
ReadPackage("datastructures", "gap/stack.gd");
# Hash functions
ReadPackage("datastructures", "gap/hashfunctions.gd");
# Union-find
ReadPackage("datastructures", "gap/union-find.gd");
# Memoising functions
ReadPackage("datastructures", "gap/memoize.gd");