/** * @license * Copyright Daniel Imms * Released under MIT license. See LICENSE in the project root for details. */ import { INode } from '@tyriar/fibonacci-heap'; export class Node implements INode { public key: K; public value: V | undefined; public prev: Node; public next: Node; public parent: Node | null = null; public child: Node | null = null; public degree: number = 0; public isMarked: boolean = false; constructor(key: K, value?: V) { this.key = key; this.value = value; this.prev = this; this.next = this; } }