(self, max_size: int = 512)
| 460 | """Keep only the top k objects according to their values.""" |
| 461 | |
| 462 | def __init__(self, max_size: int = 512): |
| 463 | self.queue = [] |
| 464 | self.max_size = max_size |
| 465 | |
| 466 | def add(self, node: object, val: float) -> None: |
| 467 | """Add a new node to this queue.""" |
nothing calls this directly
no outgoing calls
no test coverage detected