fix: vertex_id is now set correctly when it is a group flow
This commit is contained in:
parent
2ed4d54f99
commit
8ea8c7e836
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