-
-
Notifications
You must be signed in to change notification settings - Fork 656
Open
Labels
Description
Steps To Reproduce
Hi, I am using Set to check equality of groups by making Sets of the permutations. It should be true for all x 0-9 inclusive and gives true for 1-8 but false for 0 and 9 despite the fact that all the elements are there.
pete = graphs.PetersenGraph()
autpete = pete.automorphism_group()
pointstabilizers = [[g for g in autpete if g(x) == x] for x in pete.vertices()]
subgroup_check = [PermutationGroup(pointstabilizers[i]) for i in range(len(pointstabilizers))]
for i in range(10):
print(Set(subgroup_check[i]) == Set(pointstabilizers[i]), all([u in Set(subgroup_check[i]) for u in Set(pointstabilizers[i])]))
returns
False True
True True
True True
True True
True True
True True
True True
True True
True True
False True
Expected Behavior
equality
Actual Behavior
only sometimes
Additional Information
No response
Environment
- OS: WSL2 ubuntu 22
- Sage Version: 10.4
Checklist
- I have searched the existing issues for a bug report that matches the one I want to file, without success.
- I have read the documentation and troubleshoot guide