answered 0 years ago
To obtain (representatives of conjugacy classes of) subgroups of low index ⩽k you can do [G.subgroup(gap_group=H) for H in G.gap().LowIndexSubgroups(k)].
[G.subgroup(gap_group=H) for H in G.gap().LowIndexSubgroups(k)]