(nodeIds: string[])
| 97 | * ``` |
| 98 | */ |
| 99 | export 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. |
nothing calls this directly
no test coverage detected