(a) Run the Floyd-Warshall algorithm on the weighted, directed graph given in Figure 4. Show the matrix D(k) that results for EACH iteration of the outer loop. [15 points]
Figure 4
(b) Use Johnson's algorithm to find the shortest paths between all pairs of vertices in Figure 4. Show the values of h and wp computed by the algorithm in a tabular form. [15 points]