Remove and return the item with the lowest priority. Returns: The data of the lowest-priority node.
(self)
| 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 |
no outgoing calls