Fix vertex_id assignment for group flows (#2362)

Vertex Id was not being set correctly when sorting group nodes. Now it
should be.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-26 11:49:58 +00:00 committed by GitHub
commit 383a98082d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: