fix: vertex_id is now set correctly when it is a group flow

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-25 19:09:18 -03:00
commit 6564d04206

View file

@ -1208,6 +1208,7 @@ class Graph:
except ValueError:
stop_or_start_vertex = self.get_root_of_group_node(vertex_id)
stack = [stop_or_start_vertex.id]
vertex_id = stop_or_start_vertex.id
stop_predecessors = [pre.id for pre in stop_or_start_vertex.predecessors]
# DFS to collect all vertices that can reach the specified vertex
while stack: