(heap, node)
| 2415 | var frameYieldMs = 5; |
| 2416 | |
| 2417 | function push(heap, node) { |
| 2418 | var index = heap.length; |
| 2419 | heap.push(node); |
| 2420 | siftUp(heap, node, index); |
| 2421 | } |
| 2422 | function peek(heap) { |
| 2423 | return heap.length === 0 ? null : heap[0]; |
| 2424 | } |
no test coverage detected
searching dependent graphs…