MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / right

Method right

Graphs/dijkstra_algorithm.py:54–56  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

52 return 2 * i + 1
53
54 def right(self, i):
55 # returns the index of right child
56 return 2 * i + 2
57
58 def par(self, i):
59 # returns the index of parent

Callers 1

min_heapifyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected