MCPcopy 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

37import itertools
38
39class Node:
40 def __init__ (self, label):
41 self.label = label
42 def __str__(self):
43 return self.label
44
45l = [Node(ch) for ch in "abcdefg"] #list of seven objects with distinct labels
46print ""

Callers 1

recipe-577225.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected