https://vtuupdates.com/pyqs/warshalls-algorithm-to-compute-transitive-closure-for-the-graph/
Apply Warshall’s algorithm to compute transitive closure for the graph below.