[GAP Forum] Easy problem - but I can't do it!

Sven Reichard sven.reichard at freenet.de
Wed Apr 27 16:22:51 BST 2005


Gordon,

see my comment below.

Gordon Royle wrote:
> Hello all..
> 
> I have an easy problem, but for some reason I keep getting an error...
> 
<snip>
> 
> and then the appropriate orbits, which come out fine as sets of sets...
> 
> gap> gorb := Orbits(g,edges,OnSets);
> [ [ [ 1, 2 ], [ 3, 4 ], [ 2, 3 ], [ 1, 4 ] ], [ [ 1, 3 ], [ 2, 4 ] ],
>   [ [ 1, 5 ], [ 3, 7 ], [ 2, 6 ], [ 4, 8 ] ],
> 
<snip>

These are not sets, as far as GAP is concerned - they are not sorted. 
Try inserting the command

gap> gorb := List(gorb, Set);

This should solve the problem.

Cheers,
Sven.




More information about the Forum mailing list