(nodeConfigs: DAGNodeFactoryOptions[])
| 121 | * ``` |
| 122 | */ |
| 123 | export 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. |
nothing calls this directly
no test coverage detected