MCPcopy Index your code
hub / github.com/simstudioai/sim / createDAGFromNodes

Function createDAGFromNodes

packages/testing/src/factories/dag.factory.ts:123–134  ·  view source on GitHub ↗
(nodeConfigs: DAGNodeFactoryOptions[])

Source from the content-addressed store, hash-verified

121 * ```
122 */
123export function createDAGFromNodes(nodeConfigs: DAGNodeFactoryOptions[]): DAG {
124 const nodes = new Map<string, DAGNode>()
125 for (const config of nodeConfigs) {
126 const node = createDAGNode(config)
127 nodes.set(node.id, node)
128 }
129 return {
130 nodes,
131 loopConfigs: new Map(),
132 parallelConfigs: new Map(),
133 }
134}
135
136/**
137 * Creates a linear DAG where each node connects to the next.

Callers

nothing calls this directly

Calls 2

createDAGNodeFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected