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

Method __repr__

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

Source from the content-addressed store, hash-verified

92 return self.elements
93
94 def __repr__(self) -> str:
95 return str(self.heap)
96
97 def is_empty(self) -> bool:
98 # Check if the priority queue is empty

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected