breaking out of while, for loops.
Actually, my problem is to get all new representatives.
But I think it is only an algorithmic problem to me.
My consideration is following:
Abe a group and
i=i+1and the list
Lof all subgroups with index
Make empty list
Bis not conjugate to any group in
Repthen add to
Repand add to
Newelse do nothing.
Newis empty then return
Newempty list and go to STEP 2.
How can I do this in SAGE....
I cannot give a simple example. :(
In my problem,
A=[1,x,x^2], Rep=[A], i=0 (A is a generator of the rank 3 Z-module in Z[x])
i=i+1, L : the list of all submodule of A with index 2^i.
For B in L, [ For C in Rep, t=False, if B~C then t=true. ] If t=False then Rep=Rep+[B] and New=New+[B]
If len(New)==0 then return Rep else New= and go to STEP 2.
If you have some question I WILL answer as soon as possible. :)