mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-27 00:46:43 +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]]] = {}
|
self.graph: dict[str, list[tuple[str, int]]] = {}
|
||||||
|
|
||||||
# add vertices for a graph
|
# 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.
|
Adds a vertex `u` to the graph with an empty adjacency list.
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user