Connect two nodes with an edge
(
&mut self,
from: NodeId,
to: NodeId,
edge: crate::graph::WorkflowEdge,
)
| 78 | |
| 79 | /// Connect two nodes with an edge |
| 80 | pub fn connect_nodes( |
| 81 | &mut self, |
| 82 | from: NodeId, |
| 83 | to: NodeId, |
| 84 | edge: crate::graph::WorkflowEdge, |
| 85 | ) -> GraphBitResult<()> { |
| 86 | self.graph.add_edge(from, to, edge) |
| 87 | } |
| 88 | |
| 89 | /// Validate the workflow |
| 90 | pub fn validate(&self) -> GraphBitResult<()> { |