🔀 refactor(base.py): process graph data before building the graph to ensure consistency and correctness

🔀 refactor(base.py): update nodes and edges after processing graph data to reflect changes in the graph structure
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-21 14:51:13 -03:00
commit 0555c6a371

View file

@ -25,6 +25,10 @@ class Graph:
) -> None:
self._nodes = nodes
self._edges = edges
self._graph_data = {"nodes": nodes, "edges": edges}
self._graph_data = process_flow(self._graph_data)
self._nodes = self._graph_data["nodes"]
self._edges = self._graph_data["edges"]
self._build_graph()
@classmethod