Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ Node
Class
Node
data_structures/disjoint_set/disjoint_set.py:7–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5
6
7
class
Node:
8
def
__init__(self, data: int) -> None:
9
self.data = data
10
self.rank: int
11
self.parent: Node
12
13
14
def
make_set(x: Node) -> None:
Callers
1
test_disjoint_set
Function · 0.70
Calls
no outgoing calls
Tested by
1
test_disjoint_set
Function · 0.56