Commit 51b648f4 authored by Guillaume Sabbagh's avatar Guillaume Sabbagh
Browse files

Correction bug init Catégorie fleurie

parent fd9307af
......@@ -27,11 +27,13 @@ class CategorieFleurieAbstraite(Categorie):
self.cat_cones_cocones[self.diagrammes_constants[couple[1]]]["cat_cones"],self.cat_cones_cocones[self.diagrammes_constants[couple[0]]]["cat_cocones"],
self.cat_cones_cocones[self.diagrammes_constants[couple[1]]]["cat_cocones"])
for b in bouquets.bouquets:
self.ajouter_morphisme(b)
self.ajouter_morphisme(b)
if b.is_identite:
self.remplacer_identite(b)
for couple in itertools.product(self.objets,repeat=2):
for morph1 in self.fleches_elem(couple[0],couple[1],False):
for obj in categorie.objets:
for obj in self.objets:
for morph2 in self.fleches_elem(couple[1],obj,False):
composee = CompositionBouquets(morph1,morph2)
for fleche in self.morphismes:
......@@ -54,12 +56,12 @@ def main():
import CategorieAleatoire
import random
random.seed(1234642)
random.seed(1918652)
cat = CategorieAleatoire.CategorieAleaPreOrdre()
cat.transformer_graphviz(afficher_identites=True)
cat_f = CategorieFleurieAbstraite(cat)
cat_f.transformer_graphviz()
cat_f.transformer_graphviz(complet=True)
if __name__ == '__main__':
main()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment