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

Function getPosition

Graphs/minimum_spanning_tree_prims.py:7–8  ·  view source on GitHub ↗
(vertex)

Source from the content-addressed store, hash-verified

5
6 nodePosition = []
7 def getPosition(vertex):
8 return nodePosition[vertex]
9
10 def setPosition(vertex, pos):
11 nodePosition[vertex] = pos

Callers 2

topToBottomFunction · 0.85
PrimsAlgorithmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected