Add tests.  Reverse edges to min and from max in acyclic