mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-19 00:37:02 +00:00
Handled type annotation
This commit is contained in:
parent
32b9b8f6b4
commit
6269fd68d0
|
@ -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.
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user