Matrix Multiplication & Shortest Path

Enter two matrices (up to 4x4) to compute their product, or use min-plus multiplication to find shortest paths.

x
x
If checked, matrix multiplication uses min and plus instead of sum and product.