Distributed Dijkstra to compute every shortest path in a graph provided as a matrix.