Very fast bidirectional search for links

This commit is contained in:
Ian Gulliver
2019-07-07 22:47:23 +00:00
parent 6790bf06fd
commit 119f879479
2 changed files with 30 additions and 21 deletions

View File

@@ -46,7 +46,7 @@ class MinHeap {
// Find the minimum value of the current node and its two children
for (let child of children) {
if (this.data_[child] != undefined &&
if (this.data_[child] != undefined &&
this.valueFunc_(this.data_[child]) <
this.valueFunc_(this.data_[toSwap])) {
toSwap = child;