Commit 9a723972 authored by COILHAC's avatar COILHAC
Browse files

Update main.py : erreur dans l'exemple de la docstring de: def chemin_long_3(dictionnaire, start)

parent ff62d201
Pipeline #179179 passed with stage
in 1 minute and 18 seconds
......@@ -123,7 +123,7 @@ def chemin_long_3(dictionnaire, start):
Ce dictionnaire est cree par la fonction cree_dict_classe_liste(dict_amis_numeros)
Postcondition : retourne une liste de listes de chemins
Par exemple : pour le sommet 0 et le dictionnaire complet, on obtient:
[[0, 20, 25], [0, 20, 18], [0, 15, 19], [0, 15, 5]]
[[0, 20, 25, 18], [0, 20, 25, 20], [0, 20, 18, 25], [0, 20, 18, 23], [0, 15, 19, 5], [0, 15, 19, 14], [0, 15, 5, 19], [0, 15, 5, 14]]
Test :
>>> chemin_long_3({0: [20, 15], 1: [18, 13], 2: [17, 7], 3: [24, 7], \
4: [18, 11], 5: [19, 14], 6: [4, 13], 7: [24, 3], 8: [26, 23], 9: [25, 20], \
......
Markdown is supported
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