From 6269fd68d0d9db46c165d351ac06876b5f956c39 Mon Sep 17 00:00:00 2001 From: Joelkurien Date: Mon, 28 Oct 2024 13:46:41 +1100 Subject: [PATCH] Handled type annotation --- graphs/johnson_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphs/johnson_graph.py b/graphs/johnson_graph.py index 68029271a..cc8600f6d 100644 --- a/graphs/johnson_graph.py +++ b/graphs/johnson_graph.py @@ -14,7 +14,7 @@ class JohnsonGraph: self.graph: dict[str, list[tuple[str, int]]] = {} # add vertices for a graph - def add_vertices(self, u: int) -> None: + def add_vertices(self, u: str) -> None: """ Adds a vertex `u` to the graph with an empty adjacency list. """