Consider the following directed graph G. You will compute the transitive closure, G*, of G using the
No answer yet for this question.
Ask a Tutor
Question:
Consider the following directed graph G. You will compute the transitive closure, G*, of G using the Floyd-Warshall algorithm for k = 1,2,3.
(a) Draw the graphs G1, G2, and G3, generated by the Floyd-Warshall algorithm after the first 3 iterations. (i.e. G1 includes paths through vertex 1, G2 includes paths through vertex 2, etc.)
(b) We do not always need to run the outermost loop n times with the Floyd-Warshall algorithm. Why is that?
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date: