Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fibonacci Heap `isEmpty()` returns opposite of expected #929
var math = require('mathjs'); console.log('test'); var fib = new math.type.FibonacciHeap(); console.log(fib); console.log(fib.isEmpty()); fib.insert(1, 1); console.log(); console.log(fib); console.log(fib._minimum); console.log(!fib._minimum); console.log(!!fib._minimum); console.log(); console.log(fib.isEmpty());
Ah. For many uses of a Fibonacci heap, (Astar, for example), you need to be able to decrease the key of an existing object in the heap. How does one do that with this API? Thanks!…
On Thu, Aug 24, 2017 at 3:02 AM Jos de Jong ***@***.***> wrote: _decreaseKey is an internal function used by FibbonacciHeap, it's not part of the public API. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#929 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AIhRRfuvRZYhjZRYF1IRMbHjsuEfqlyaks5sbR_3gaJpZM4O8ogg> .