| 585 | |
| 586 | namespace { |
| 587 | const Edge* FindEdge(const Node* dst, int index) { |
| 588 | for (const Edge* e : dst->in_edges()) { |
| 589 | if (e->dst_input() == index) return e; |
| 590 | } |
| 591 | return nullptr; |
| 592 | } |
| 593 | } // namespace |
| 594 | |
| 595 | Status Graph::UpdateEdge(Node* new_src, int new_src_index, Node* dst, |