This commit is contained in:
ma3oun 2024-12-05 17:31:54 +01:00
parent 88e7042b41
commit 59b72d9156

View File

@ -348,9 +348,9 @@ class Graph:
to_node_tuple[0], to_node_tuple[1] + 1
):
if from_node_id not in self.nodes:
self.add_node(Node(from_node_id, model=self.model))
self.add_node(Node(from_node_id, model=self.model,config=self.config))
if to_node_id not in self.nodes:
self.add_node(Node(to_node_id, model=self.model))
self.add_node(Node(to_node_id, model=self.model,config=self.config))
self.add_edge(from_node_id, to_node_id)
self.input_layer = self.get_input_layer()
self.output_layer = self.get_output_layer()