Commit b54b664c authored by Lacoin Achille's avatar Lacoin Achille
Browse files

refactor: tri des imports

parent b0a43c3f
......@@ -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])),
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