I have a problem in comparing subgroups.
I'm building a list of all cyclic subgroups of a group, but I can't
seem to do a simple "in" look up to see if I've already generated a
particular subgroups.

So, I'm wondering what is the better way to compare two subgroups.

This is some test code to figure out what is going on.

G = SymmetricGroup(4)
H = G.subgroup([G((1,2,3))])
K = G.subgroup([G((2,3,1))])

print H
# Subgroup of SymmetricGroup(4) generated by [(1,2,3)]
print K
# Subgroup of SymmetricGroup(4) generated by [(1,2,3)]

# Yet the following returns false
print H == K
# And this one returns true
print H.list() == K.list()

# As well both the following are true
print H.is_subgroup(K)
print K.is_subgroup(H)
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to