Class equation of a group
Is there any command for getting the class equation of a permutation group in SAGE?
Note that I am able to write a function for this. I am just wondering if there is any inbuilt function which serves my purpose.
If
G
is your group, you could do[X.cardinality() for X in G.conjugacy_classes()]
. Is that the information you want? I guess that splits the center into different pieces instead of collecting those together, but it's close to what you're asking for.