class_docstr: A pairing heap.
class_docstr_tok: ["A","pairing","heap","."]
docstr: Cut a node from its parent.
docstr_tok: ["Cut","a","node","from","its","parent","."]
code: def _cut(self, node):
      """Cut a node from its parent."""
      prev = node.prev
      next = node.next
      if prev is not None:
          prev.next = next
      else:
          node.parent.left = next
      node.prev = None
      if next is not None:
          next.prev = prev
          node.next = None
      node.parent = None
  
imports: from heapq import heappop, heappush
  from itertools import count
  import networkx
label_desc: Use image node_id 8 for calling the PairingHeap obj's underlying member method code with example usage: obj._cut(node) without return types