Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __init__
Method
__init__
graphs/breadth_first_search.py:11–12 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
9
10
class
Graph:
11
def
__init__(self) -> None:
12
self.vertices: dict[int, list[int]] = {}
13
14
def
print_graph(self) -> None:
15
""
"
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected