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

Method __len__

graphs/minimum_spanning_tree_prims2.py:91–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 self.elements: int = 0
90
91 def __len__(self) -> int:
92 return self.elements
93
94 def __repr__(self) -> str:
95 return str(self.heap)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected