@tyriar/fibonacci-heap
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -185,2 +185,3 @@ 'use strict'; | ||
var NodeListIterator = function (start) { | ||
this.index = -1; | ||
this.items = []; | ||
@@ -195,15 +196,13 @@ var current = start; | ||
/** | ||
* @private | ||
* @return {boolean} Whether there is a next node in the iterator. | ||
*/ | ||
NodeListIterator.prototype.hasNext = function () { | ||
return this.items.length > 0; | ||
return this.index < this.items.length - 1; | ||
}; | ||
/** | ||
* @private | ||
* @return {Node} The next node. | ||
*/ | ||
NodeListIterator.prototype.next = function () { | ||
return this.items.shift(); | ||
return this.items[++this.index]; | ||
}; | ||
@@ -210,0 +209,0 @@ |
{ | ||
"name": "@tyriar/fibonacci-heap", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "An implementation of the Fibonacci heap data structure", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,6 +0,6 @@ | ||
# js-fibonacci-heap [![NPM version](https://img.shields.io/npm/v/@tyriar/fibonacci-heap.svg?style=flat)](https://www.npmjs.org/package/@tyriar/fibonacci-heap) | ||
# js-fibonacci-heap | ||
[![Build Status](https://api.travis-ci.org/gwtw/js-fibonacci-heap.svg?branch=master)](http://travis-ci.org/gwtw/js-fibonacci-heap) | ||
[![Coverage Status](https://coveralls.io/repos/github/gwtw/js-fibonacci-heap/badge.svg?branch=master)](https://coveralls.io/github/gwtw/js-fibonacci-heap?branch=master) | ||
[![Build Status](http://img.shields.io/travis/gwtw/js-fibonacci-heap.svg?style=flat)](http://travis-ci.org/gwtw/js-fibonacci-heap) | ||
[![Coverage Status](https://img.shields.io/coveralls/gwtw/js-fibonacci-heap.svg?branch=master&service=github)](https://coveralls.io/github/gwtw/js-fibonacci-heap?branch=master) | ||
A JavaScript implementation of the [Fibonacci heap](http://www.growingwiththeweb.com/2014/06/fibonacci-heap.html) data structure. | ||
@@ -7,0 +7,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28109
743