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

Method __init__

graphs/page_rank.py:19–22  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

17
18class Node:
19 def __init__(self, name):
20 self.name = name
21 self.inbound = []
22 self.outbound = []
23
24 def add_inbound(self, node):
25 self.inbound.append(node)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected