From 6b4f3a446b9c9a3c00143b763d5d442aae6382a0 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 4 Mar 2024 00:12:21 -0300 Subject: [PATCH] Update graph vertices and edges --- src/backend/langflow/graph/graph/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/langflow/graph/graph/base.py b/src/backend/langflow/graph/graph/base.py index 8b47ebe85..8f544fc0c 100644 --- a/src/backend/langflow/graph/graph/base.py +++ b/src/backend/langflow/graph/graph/base.py @@ -296,6 +296,8 @@ class Graph: for vertex_id in new_vertex_ids: new_vertex = other.get_vertex(vertex_id) self._update_edges(new_vertex) + # Graph is set at the end because the edges come from the graph + # and the other graph is where the new edges and vertices come from new_vertex.graph = self # Update existing vertices that have changed