Пример #1
0
 public void linkup(LeftHeapNode v) {
   if ((this.getParent() != null) && (v != null)) {
     final LeftHeapNode tmp = this.getParent();
     v.setRight(this);
     this.setParent(v);
     v.setParent(tmp);
     v.getParent().setRight(v);
   }
 }
Пример #2
0
 public LeftHeapNode(LeftHeapNode v) {
   this(v.D, v.getKey(), v.x, v.y);
 }