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