Refactor - Reduce the parameters to UpdateDependencyGraph