Transitive Closure

Definition Define the transitive closure of as the graph

, where

  • A solution: assign to each edge and run Floyd-Warshall algorithm.
  • Substitute and for and operations in Floyd-Warshall algorithm.
  • , space efficient