def __init__(self, numNodes=0): # Call the constructor of the base class : Heap.__init__(self) # Initialize the indices of all vertices in the Graph to Infinity: self.indList = [] for idx in range(numNodes): self.indList.append(np.Inf)
def __init__(self): Heap.__init__(self, "MIN_MERGE_HEAP")