There was an error while loading. Please reload this page.
1 parent 2eeb150 commit db16116Copy full SHA for db16116
1 file changed
graphs/travelling_salesman_problem.py
@@ -40,7 +40,9 @@ def validate_graph(graph_points: dict[str, list[float]]) -> None:
40
:raises InvalidGraphError: If the graph points are not valid
41
42
>>> validate_graph({"A": [10, 20], "B": [30, 21], "C": [15, 35]}) # Valid graph
43
- >>> validate_graph({"A": [10, 20], "B": [30, "invalid"], "C": [15, 35]}). # doctest: +IGNORE_EXCEPTION_DETAIL
+ >>> validate_graph( # doctest: +IGNORE_EXCEPTION_DETAIL
44
+ ... {"A": [10, 20], "B": [30, "invalid"], "C": [15, 35]}
45
+ ... )
46
Traceback (most recent call last):
47
...
48
InvalidGraphError: Each node must have a valid 2D coordinate [x, y]
0 commit comments