Skip to content

Commit 7d7e3bc

Browse files
fingolfinwilfwilson
authored andcommitted
Fix compatibility with grape
When starting GAP with `-A`, then first loading digraphs and afterwards loading grape, the following error was produced: Error, variable `Vertices' is not bound to an operation at GAPROOT/lib/oper.g:940 called from <function "DeclareOperation">( <arguments> ) called from read-eval loop at GAPROOT/pkg/grape-4.8.5/lib/grape.g:566 you can 'quit;' to quit to outer loop, or you can 'return;' to continue
1 parent 0ecef08 commit 7d7e3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if not IsBound(IsGraph) then
3232
IsGraph := ReturnFalse;
3333
fi;
3434
if not IsBound(Vertices) then
35-
Vertices := IdFunc;
35+
DeclareOperation("Vertices", [IsRecord]);
3636
fi;
3737
if not IsBound(Adjacency) then
3838
Adjacency := IdFunc;

0 commit comments

Comments
 (0)