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

Function valid

Graphs/multi_hueristic_astar.py:120–125  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

118 quit()
119
120def valid(p):
121 if p[0] < 0 or p[0] > n-1:
122 return False
123 if p[1] < 0 or p[1] > n-1:
124 return False
125 return True
126
127def expand_state(s, j, visited, g_function, close_list_anchor, close_list_inad, open_list, back_pointer):
128 for itera in range(n_hueristic):

Callers 1

expand_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected