class_docstr: A pairing heap.
class_docstr_tok: ["A","pairing","heap","."]
docstr: Link two nodes, making the one with the smaller value the parent of
  the other.
docstr_tok: ["Link","two","nodes",",","making","the","one","with","the","smaller","value","the","parent","of","the","other","."]
code: def _link(self, root, other):
      """Link two nodes, making the one with the smaller value the parent of
      the other.
      """
      if other.value < root.value:
          root, other = other, root
      next = root.left
      other.next = next
      if next is not None:
          next.prev = other
      other.prev = None
      root.left = other
      other.parent = root
      return root
  
imports: from heapq import heappop, heappush
  from itertools import count
  import networkx
label_desc: Use image node_id 6 for calling the PairingHeap obj's underlying member method code with example usage: obj._link(root, other) and returns: root