Minimize workflow dependency graph.