transitive reduction algorithm: pseudocode?
See Harry Hsu. “An algorithm for finding a minimal equivalent graph of a digraph.”, Journal of the ACM, 22(1):11-16, January 1975. The simple cubic algorithm below (using an N x N path matrix) suffices for DAGs, but Hsu generalizes it to cyclic graphs. // reflexive reduction for (int i = 0; i < N; ++i) … Read more