@@ -175,8 +175,7 @@ function(arg)
175
175
ErrorNoReturn(" at least 1 argument is required," );
176
176
elif not IsDigraph(arg[ 1 ] ) then
177
177
ErrorNoReturn(" the 1st argument must be a digraph," );
178
- fi ;
179
- if not IsBound (arg[ 2 ] )
178
+ elif not IsBound (arg[ 2 ] )
180
179
and HasDigraphMaximalIndependentSetsRepsAttr(arg[ 1 ] ) then
181
180
return DigraphMaximalIndependentSetsRepsAttr(arg[ 1 ] );
182
181
fi ;
@@ -203,8 +202,7 @@ function(arg)
203
202
ErrorNoReturn(" at least 1 argument is required," );
204
203
elif not IsDigraph(arg[ 1 ] ) then
205
204
ErrorNoReturn(" the 1st argument must be a digraph," );
206
- fi ;
207
- if not IsBound (arg[ 2 ] )
205
+ elif not IsBound (arg[ 2 ] )
208
206
and HasDigraphMaximalIndependentSetsAttr(arg[ 1 ] ) then
209
207
return DigraphMaximalIndependentSetsAttr(arg[ 1 ] );
210
208
fi ;
@@ -552,9 +550,7 @@ function(digraph, hook, user_param, limit, include, exclude, max, size, reps)
552
550
553
551
if not IsDigraph(digraph) then
554
552
ErrorNoReturn(" the 1st argument <D> must be a digraph," );
555
- fi ;
556
-
557
- if hook <> fail then
553
+ elif hook <> fail then
558
554
if not (IsFunction(hook) and NumberArgumentsFunction(hook) = 2 ) then
559
555
ErrorNoReturn(" the 2nd argument <hook> must be fail, or a " ,
560
556
" function with 2 arguments," );
@@ -584,14 +580,10 @@ function(digraph, hook, user_param, limit, include, exclude, max, size, reps)
584
580
585
581
if not max in [ true , false ] then
586
582
ErrorNoReturn(" the 7th argument <max> must be true or false," );
587
- fi ;
588
-
589
- if size <> fail and not IsPosInt(size) then
583
+ elif size <> fail and not IsPosInt(size) then
590
584
ErrorNoReturn(" the 8th argument <size> must be fail, or a " ,
591
585
" positive integer," );
592
- fi ;
593
-
594
- if not reps in [ true , false ] then
586
+ elif not reps in [ true , false ] then
595
587
ErrorNoReturn(" the 9th argument <reps> must be true or false," );
596
588
fi ;
597
589
0 commit comments