This does look like a Hill Climbing algorithm to me but it doesn't look like a very good Hill Climbing algorithm. What you wrote is a "Greedy Hill Climbing" algorithm which isn't very good for two reasons:
1) It could get stuck in local maxima.
2) It doesn't always find the best (shortest) path. (I assume you're writing this to solve the salesperson problem)
I think you should look into Stochastic hill climbing instead of basic Hill Climbing if you want a more optimized Hill Climber that finds the shortest route and doesn't get stuck.
Try looking into Simulated Annealing (SA). It's a more optimized version and it is very easy to implement (it's about 10 lines of code total).