Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lacoin Achille
PAO_Semestre7
Commits
b54b664c
Commit
b54b664c
authored
Mar 24, 2019
by
Lacoin Achille
Browse files
refactor: tri des imports
parent
b0a43c3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pao/cluster/cha.py
View file @
b54b664c
...
...
@@ -38,6 +38,7 @@ def cha(reseau: Reseau, type_distance: str = "min") -> ArbreBinaire:
# On sélectionne la distance maximale
distance_max
=
max
(
liste_distance
,
key
=
lambda
x
:
x
[
2
])
# On retire les deux clusters dans le bon ordre pour ne pas modifier l'indice
cluster_a
,
cluster_b
=
(
liste_arbre
.
pop
(
max
(
distance_max
[
0
],
distance_max
[
1
])),
liste_arbre
.
pop
(
min
(
distance_max
[
0
],
distance_max
[
1
])),
...
...
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