MCPcopy
hub / github.com/simstudioai/sim / addNodeToDAG

Function addNodeToDAG

packages/testing/src/factories/dag.factory.ts:166–169  ·  view source on GitHub ↗
(dag: DAG, node: DAGNode)

Source from the content-addressed store, hash-verified

164 * Adds a node to an existing DAG.
165 */
166export function addNodeToDAG(dag: DAG, node: DAGNode): DAG {
167 dag.nodes.set(node.id, node)
168 return dag
169}
170
171/**
172 * Connects two nodes in a DAG with an edge.

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected