MCPcopy Index your code
hub / github.com/keon/algorithms / pop

Method pop

algorithms/data_structures/priority_queue.py:103–109  ·  view source on GitHub ↗

Remove and return the item with the lowest priority. Returns: The data of the lowest-priority node.

(self)

Source from the content-addressed store, hash-verified

101 self.priority_queue_list.append(node)
102
103 def pop(self) -> Any:
104 """Remove and return the item with the lowest priority.
105
106 Returns:
107 The data of the lowest-priority node.
108 """
109 return self.priority_queue_list.pop().data

Callers 1

test_priority_queueMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_priority_queueMethod · 0.76