Shorten conditional edge names

This commit is contained in:
Nuno Campos
2024-04-12 09:29:27 -07:00
parent dfec700da8
commit f3ae555b91
5 changed files with 622 additions and 586 deletions
-1
View File
@@ -355,7 +355,6 @@ class CompiledGraph(Pregel):
graph.add_edge(start_nodes[start], end_nodes[end])
for start, branches in self.graph.branches.items():
for name, branch in branches.items():
name = f"{start}_{name}"
cond = graph.add_node(branch.condition, name)
graph.add_edge(start_nodes[start], cond)
ends = branch.ends or {