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:
commit
383a98082d
1 changed files with 1 additions and 0 deletions
|
|
@ -1208,6 +1208,7 @@ class Graph:
|
||||||
except ValueError:
|
except ValueError:
|
||||||
stop_or_start_vertex = self.get_root_of_group_node(vertex_id)
|
stop_or_start_vertex = self.get_root_of_group_node(vertex_id)
|
||||||
stack = [stop_or_start_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]
|
stop_predecessors = [pre.id for pre in stop_or_start_vertex.predecessors]
|
||||||
# DFS to collect all vertices that can reach the specified vertex
|
# DFS to collect all vertices that can reach the specified vertex
|
||||||
while stack:
|
while stack:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue