How to get the Galois group as a permutation group
I was trying to convert a Galois group of a number field as a permutation group. I did this:
G=graphs.CycleGraph(5)
L=G.spectrum()
a = L
K, a_in_K, hom = number_field_elements_from_algebraics(a, minimal=True)
K.galois_group()
X.as_permutation_group()
However the last command returns error. Please help
Try
PermutationGroup(X.gens())instead.