Add a node to the workflow
(&mut self, node: WorkflowNode)
| 71 | |
| 72 | /// Add a node to the workflow |
| 73 | pub fn add_node(&mut self, node: WorkflowNode) -> GraphBitResult<NodeId> { |
| 74 | let node_id = node.id.clone(); |
| 75 | self.graph.add_node(node)?; |
| 76 | Ok(node_id) |
| 77 | } |
| 78 | |
| 79 | /// Connect two nodes with an edge |
| 80 | pub fn connect_nodes( |