MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / disconnect

Method disconnect

crates/firewheel-graph/src/context.rs:1207–1214  ·  view source on GitHub ↗

Remove connections (edges) between two nodes from the graph. `src_node` - The ID of the source node. `dst_node` - The ID of the destination node. `ports_src_dst` - The port indices for each connection to make, where the first value in a tuple is the output port on `src_node`, and the second value in that tuple is the input port on `dst_node`. Returns the list of edges that were successfully remo

(
        &mut self,
        src_node: NodeID,
        dst_node: NodeID,
        ports_src_dst: &[(PortIdx, PortIdx)],
    )

Source from the content-addressed store, hash-verified

1205 ///
1206 /// * `src_node` - The ID of the source node.
1207 /// * `dst_node` - The ID of the destination node.
1208 /// * `ports_src_dst` - The port indices for each connection to make,
1209 /// where the first value in a tuple is the output port on `src_node`,
1210 /// and the second value in that tuple is the input port on `dst_node`.
1211 ///
1212 /// Returns the list of edges that were successfully removed.
1213 pub fn disconnect(
1214 &mut self,
1215 src_node: NodeID,
1216 dst_node: NodeID,
1217 ports_src_dst: &[(PortIdx, PortIdx)],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected