generate

Undocumented in source. Be warned that the author may not have intended to support it.
version(unittest)
@safe pure nothrow
void
generate
()

Examples

FibonacciHeap!int h;

h.insert(4); assert(h.minimum == 4);
h.insert(3); assert(h.minimum == 3);
h.insert(2); assert(h.minimum == 2);
h.insert(1); assert(h.minimum == 1);

h.removeMinimum; assert(h.minimum == 2);
h.removeMinimum; assert(h.minimum == 3);

h.insert(0); assert(h.minimum == 0);

h.removeMinimum; assert(h.minimum == 3);
h.removeMinimum; assert(h.minimum == 4);
h.removeMinimum; assert(h.empty);
FibonacciHeap!int h;
generate(h);

h.dumpDot();

Meta