Searched refs:nodesToVisit (Results 1 – 5 of 5) sorted by relevance
293 var nodesToVisit = [this.root_];294 while (nodesToVisit.length > 0) {295 var node = nodesToVisit.shift();300 nodesToVisit.push(node.left);301 nodesToVisit.push(node.right);
277 var nodesToVisit = [this.root_];278 while (nodesToVisit.length > 0) {279 var node = nodesToVisit.shift();284 nodesToVisit.push(node.left);285 nodesToVisit.push(node.right);
884 var nodesToVisit = new Uint32Array(this.nodeCount);896 nodesToVisit[nodesToVisitLength++] = node.nodeIndex;900 this._bfs(nodesToVisit, nodesToVisitLength, distances);905 this._bfs(nodesToVisit, nodesToVisitLength, distances);915 _bfs: function(nodesToVisit, nodesToVisitLength, distances) argument931 var nodeIndex = nodesToVisit[index++]; // shift generates too much garbage.945 nodesToVisit[nodesToVisitLength++] = childNodeIndex;1095 var nodesToVisit = new Uint32Array(nodeCount);1104 nodesToVisit[nodesToVisitLength++] = rootNodeOrdinal;1108 var nodeOrdinal = nodesToVisit[nodesToVisitLength - 1];[all …]
348 var nodesToVisit = new Uint32Array(nodesCount);365 nodesToVisit[nodesToVisitLength++] = nodeOrdinal;370 var nodeOrdinal = nodesToVisit[--nodesToVisitLength];383 nodesToVisit[nodesToVisitLength++] = childNodeOrdinal;