MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / get_position

Method get_position

graphs/minimum_spanning_tree_prims.py:9–10  ·  view source on GitHub ↗
(self, vertex)

Source from the content-addressed store, hash-verified

7 self.node_position = []
8
9 def get_position(self, vertex):
10 return self.node_position[vertex]
11
12 def set_position(self, vertex, pos):
13 self.node_position[vertex] = pos

Callers 2

top_to_bottomMethod · 0.95
prisms_algorithmFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected