🔀 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:
parent
aaaa21b5cb
commit
0555c6a371
1 changed files with 4 additions and 0 deletions
|
|
@ -25,6 +25,10 @@ class Graph:
|
||||||
) -> None:
|
) -> None:
|
||||||
self._nodes = nodes
|
self._nodes = nodes
|
||||||
self._edges = edges
|
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()
|
self._build_graph()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue