class_docstr: Base class for min-heaps.
  
  A MinHeap stores a collection of key-value pairs ordered by their values.
  It supports querying the minimum pair, inserting a new pair, decreasing the
  value in an existing pair and deleting the minimum pair.
class_docstr_tok: ["Base","class","for","min-heaps",".","A","MinHeap","stores","a","collection","of","key-value","pairs","ordered","by","their","values",".","It","supports","querying","the","minimum","pair",",","inserting","a","new","pair",",","decreasing","the","value","in","an","existing","pair","and","deleting","the","minimum","pair","."]
docstr: Insert a new key-value pair or modify the value in an existing
  pair.
  
  Parameters
  ----------
  key : hashable object
      The key.
  
  value : object comparable with existing values.
      The value.
  
  allow_increase : bool
      Whether the value is allowed to increase. If False, attempts to
      increase an existing value have no effect. Default value: False.
  
  Returns
  -------
  decreased : bool
      True if a pair is inserted or the existing value is decreased.
docstr_tok: ["Insert","a","new","key-value","pair","or","modify","the","value","in","an","existing","pair",".","Parameters","--","--","--","--","--","key",":","hashable","object","The","key",".","value",":","object","comparable","with","existing","values",".","The","value",".","allow_increase",":","bool","Whether","the","value","is","allowed","to","increase",".","If","False",",","attempts","to","increase","an","existing","value","have","no","effect",".","Default","value",":","False",".","Returns","--","--","--","-","decreased",":","bool","True","if","a","pair","is","inserted","or","the","existing","value","is","decreased","."]
code: def insert(self, key, value, allow_increase=False):
      """Insert a new key-value pair or modify the value in an existing
      pair.
  
      Parameters
      ----------
      key : hashable object
          The key.
  
      value : object comparable with existing values.
          The value.
  
      allow_increase : bool
          Whether the value is allowed to increase. If False, attempts to
          increase an existing value have no effect. Default value: False.
  
      Returns
      -------
      decreased : bool
          True if a pair is inserted or the existing value is decreased.
      """
      raise NotImplementedError
  
imports: from heapq import heappop, heappush
  from itertools import count
  import networkx
label_desc: Use image node_id 5 for calling the MinHeap obj's underlying member method code with example usage: obj.insert(key, value, allow_increase) without return types