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. """