Finding the Minimum Weight Path Through a Matrix Consider a matrix of integers (ie [[3, 1, 4], [1, 5, 9], [2, 6, 5]]). For a better visual, we can draw this matrix like so: | 3 1 4 | | 1 5 9 | | 2 6 5 |