Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ Node
Class
Node
recipes/Python/577225_UnionFind/recipe-577225.py:39–43 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
37
import
itertools
38
39
class
Node:
40
def
__init__ (self, label):
41
self.label = label
42
def
__str__(self):
43
return
self.label
44
45
l = [Node(ch)
for
ch in
"abcdefg"
]
#list of seven objects with distinct labels
46
print
""
Callers
1
recipe-577225.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected