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

Method connect_nodes

core/src/workflow.rs:80–87  ·  view source on GitHub ↗

Connect two nodes with an edge

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

Source from the content-addressed store, hash-verified

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<()> {

Callers 6

connectMethod · 0.80
connectMethod · 0.80

Calls 1

add_edgeMethod · 0.80