Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ __init__
Method
__init__
graphs/minimum_spanning_tree_prims.py:6–7 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
4
5
class
Heap:
6
def
__init__(self):
7
self.node_position = []
8
9
def
get_position(self, vertex):
10
return
self.node_position[vertex]
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected