Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ get_direction
Function
get_direction
Python/dijkstra.py:30–31 ·
view source on GitHub ↗
(index)
Source
from the content-addressed store, hash-verified
28
return
[2, 3, 0, 1][index]
29
30
def
get_direction(index):
31
return
[
"north"
,
"east"
,
"south"
,
"west"
][index]
32
33
# the "closed list"
34
def
create_unavailable_grid(height, width):
Callers
1
escape_route
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected