Rebuild the graph structure from serialized data This must be called after deserialization since `graph` and `node_map` are not serialized
(&mut self)
| 148 | /// Rebuild the graph structure from serialized data |
| 149 | /// This must be called after deserialization since `graph` and `node_map` are not serialized |
| 150 | pub fn rebuild_graph(&mut self) -> GraphBitResult<()> { |
| 151 | self.rebuild_petgraph_and_id_maps()?; |
| 152 | self.refresh_adjacency_from_edges(); |
| 153 | self.rebuild_name_map_from_nodes(); |
| 154 | self.invalidate_caches(); |
| 155 | Ok(()) |
| 156 | } |
| 157 | |
| 158 | /// Add a node to the graph |
| 159 | pub fn add_node(&mut self, node: WorkflowNode) -> GraphBitResult<()> { |