141 CPPADCG_ASSERT_UNKNOWN(this->depth_ > 0);
143 if(paths_ !=
nullptr) {
144 const auto&
paths = *paths_;
145 for (
size_t i = 0;
i <
paths.size(); ++
i) {
146 size_t d = this->depth_ - 1;
147 if (isOnPath(*
paths[
i])) {
150 auto*
r = (*(*replaceOnPath_)[
i])[
d];
154 return Super::evalOperation(node);
160 if(pathGraph_ !=
nullptr) {
162 if (
egdes !=
nullptr) {
163 auto it = replaceOnGraph_->find(
egdes);
164 if (
it != replaceOnGraph_->end()) {
167 return Super::evalOperation(node);
172 if (clone_ !=
nullptr) {
173 if (clone_->find(&node) != clone_->end()) {
174 return Super::evalOperation(node);
178 if (replaceArgument_ !=
nullptr) {
179 size_t d = this->depth_ - 1;
181 auto it = replaceArgument_->find(this->path_[
d - 1]);
182 if (
it != replaceArgument_->end()) {