MCPcopy Create free account
hub / github.com/Effect-TS/effect / graphNodeLabels

Function graphNodeLabels

packages/effect/test/Graph.test.ts:61–62  ·  view source on GitHub ↗
(graph: Graph.Graph<SetNode, E, T>)

Source from the content-addressed store, hash-verified

59 new Set(Array.from(graph, ([, node]) => node.id))
60
61const graphNodeLabels = <E, T extends Graph.Kind>(graph: Graph.Graph<SetNode, E, T>) =>
62 new Map(Array.from(graph, ([, node]) => [node.id, node.label]))
63
64const graphEdgeKeys = <E, T extends Graph.Kind>(graph: Graph.Graph<SetNode, E, T>) => {
65 const nodeIds = new Map(Array.from(graph, ([index, node]) => [index, node.id]))

Callers 1

Graph.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected