MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / add_node

Method add_node

graphs/markov_chain.py:15–16  ·  view source on GitHub ↗
(self, node: str)

Source from the content-addressed store, hash-verified

13 self.connections = {}
14
15 def add_node(self, node: str) -> None:
16 self.connections[node] = {}
17
18 def add_transition_probability(
19 self, node1: str, node2: str, probability: float

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected