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

Method connect

core/src/workflow.rs:127–135  ·  view source on GitHub ↗

Connect two nodes

(
        mut self,
        from: NodeId,
        to: NodeId,
        edge: crate::graph::WorkflowEdge,
    )

Source from the content-addressed store, hash-verified

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 {

Calls 1

connect_nodesMethod · 0.80