public void _insertnode(HeapNode node) { if (minnode == null) { minnode = node; } else { minnode.insert(node); if (node.key < minnode.key) { minnode = node; } } }
public void addchild(HeapNode node) { if (child == null) { child = node; } else { child.insert(node); } node.parent = this; node.mark = false; degree++; }