Added transitive reduction algorithm to the graph interface.