結果 : find transitive closure of a relation using warshall algorithm