MCPcopy Index your code
hub / github.com/deepnote/deepnote / buildNodeMap

Function buildNodeMap

packages/cli/src/commands/dag.ts:225–231  ·  view source on GitHub ↗

* Build a map of node ID -> DagNode.

(dag: BlockDependencyDag)

Source from the content-addressed store, hash-verified

223 * Build a map of node ID -> DagNode.
224 */
225function buildNodeMap(dag: BlockDependencyDag): Map<string, DagNode> {
226 const map = new Map<string, DagNode>()
227 for (const node of dag.nodes) {
228 map.set(node.id, node)
229 }
230 return map
231}
232
233/**
234 * Find root nodes (nodes with no incoming edges).

Callers 2

outputDagShowFunction · 0.85
findRootNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected