fix(workflow): remove edges for unreachable nodes in graph
This commit is contained in:
@@ -390,6 +390,8 @@ class GraphBuilder:
|
|||||||
for edge in self.edges:
|
for edge in self.edges:
|
||||||
source = edge.get("source")
|
source = edge.get("source")
|
||||||
target = edge.get("target")
|
target = edge.get("target")
|
||||||
|
if source not in self.reachable_nodes or target not in self.reachable_nodes:
|
||||||
|
continue
|
||||||
condition = edge.get("condition")
|
condition = edge.get("condition")
|
||||||
edge_type = edge.get("type")
|
edge_type = edge.get("type")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user