1 | initial version |
Here is a tentative
def filtre_iso(liste_posets):
from collections import defaultdict
table = defaultdict(list)
for po in liste_posets:
dp = po.degree_polynomial()
connus = table[dp]
if not any(q.is_isomorphic(po) for q in connus):
table[dp].append(po)
return table