Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
*/
166
export
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
set
Method · 0.65
Tested by
no test coverage detected