Connect two nodes
(
mut self,
from: NodeId,
to: NodeId,
edge: crate::graph::WorkflowEdge,
)
| 125 | |
| 126 | /// Connect two nodes |
| 127 | pub fn connect( |
| 128 | mut self, |
| 129 | from: NodeId, |
| 130 | to: NodeId, |
| 131 | edge: crate::graph::WorkflowEdge, |
| 132 | ) -> GraphBitResult<Self> { |
| 133 | self.workflow.connect_nodes(from, to, edge)?; |
| 134 | Ok(self) |
| 135 | } |
| 136 | |
| 137 | /// Add metadata |
| 138 | pub fn metadata(mut self, key: String, value: serde_json::Value) -> Self { |