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

Function createDAG

packages/testing/src/factories/dag.factory.ts:99–109  ·  view source on GitHub ↗
(nodeIds: string[])

Source from the content-addressed store, hash-verified

97 * ```
98 */
99export function createDAG(nodeIds: string[]): DAG {
100 const nodes = new Map<string, DAGNode>()
101 for (const id of nodeIds) {
102 nodes.set(id, createDAGNode({ id }))
103 }
104 return {
105 nodes,
106 loopConfigs: new Map(),
107 parallelConfigs: new Map(),
108 }
109}
110
111/**
112 * Creates a DAG from a node configuration array.

Callers

nothing calls this directly

Calls 2

createDAGNodeFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected