MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / __init__

Method __init__

Graphs/dijkstra_algorithm.py:13–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11class PriorityQueue:
12 # Based on Min Heap
13 def __init__(self):
14 self.cur_size = 0
15 self.array = []
16 self.pos = {} # To store the pos of node in array
17
18 def isEmpty(self):
19 return self.cur_size == 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected