Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guillaume Sabbagh
Modification de categories
Commits
51b648f4
Commit
51b648f4
authored
May 05, 2021
by
Guillaume Sabbagh
Browse files
Correction bug init Catégorie fleurie
parent
fd9307af
Changes
1
Hide whitespace changes
Inline
Side-by-side
CategorieFleurie.py
View file @
51b648f4
...
...
@@ -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
(
1
23464
2
)
random
.
seed
(
1
91865
2
)
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment