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

Method __len__

graphs/minimum_spanning_tree_boruvka.py:110–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 self.rank = {}
109
110 def __len__(self):
111 return len(self.parent)
112
113 def make_set(self, item):
114 if item in self.parent:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected