Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ get_nodes
Method
get_nodes
graphs/markov_chain.py:27–28 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
25
self.connections[node1][node2] = probability
26
27
def
get_nodes(self) -> list[str]:
28
return
list(self.connections)
29
30
def
transition(self, node: str) -> str:
31
current_probability = 0
Callers
1
get_transitions
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected