def draw_dijkstra(dijkstra,path):
	for _y in range(dijkstra['y_range'][0],dijkstra['y_range'][1]):
		y = _y-dijkstra['y_range'][0]
		
		for _x in range(dijkstra['x_range'][0],dijkstra['x_range'][1]):
			x = _x-dijkstra['x_range'][0]
			
			#if _x == 20:
			#	continue
			
			#print _x,dijkstra['x_range']#,_y#,dijkstra['x_range'][1],dijkstra['y_range'][1]
			_score = clip(int(abs(dijkstra['map'][y,x])),0,9)
			#_score = int(dijkstra['map'][y,x])
			
			if (_x,_y,0) in path:
				_score = 'O '
			elif _score == -1:
				_score = 'x '
			else:
				_score = '. '
				#_score = _score
			
			print '%s' % _score,
		
		print
dataset/ETHPy150Open flags/Reactor-3/numbers.py/draw_dijkstra/original