Show Path with Arrows in a Matrix
Easily style vertices, edges, and their labels, and apply interesting functions. For a small increase in code sophistication, you gain quite an advantage.
Define the edge shape function:
A different approach uses GridGraph
with the GraphHighlight
Add arrows to indicate the path direction: