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

Method __init__

data_structures/disjoint_set/disjoint_set.py:8–11  ·  view source on GitHub ↗
(self, data: int)

Source from the content-addressed store, hash-verified

6
7class Node:
8 def __init__(self, data: int) -> None:
9 self.data = data
10 self.rank: int
11 self.parent: Node
12
13
14def make_set(x: Node) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected