estimating transitive reduction of an adjacency matrix