Skip to content
Snippets Groups Projects
Commit 51cba922 authored by TheVroum's avatar TheVroum
Browse files

qs

parent 1e7dd217
No related branches found
No related tags found
No related merge requests found
import heapq import heapq
from pprint import pprint
from collections import defaultdict from collections import defaultdict
from functools import cache from functools import cache
from typing import Callable from typing import Callable
from a import E, V
from input import E, V
type Sommet = str type Sommet = str
...@@ -57,5 +60,5 @@ def plus_courts_chemins( ...@@ -57,5 +60,5 @@ def plus_courts_chemins(
return prédécesseurs, distance return prédécesseurs, distance
print(plus_courts_chemins((V, E), lambda x: 1.0, "A")) pprint(plus_courts_chemins((V, E), lambda x: 1.0, "A"))
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment