MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / add_node

Method add_node

core/src/workflow.rs:73–77  ·  view source on GitHub ↗

Add a node to the workflow

(&mut self, node: WorkflowNode)

Source from the content-addressed store, hash-verified

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(

Calls 1

cloneMethod · 0.80