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

Function graphNodeIds

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

Source from the content-addressed store, hash-verified

56}
57
58const graphNodeIds = <E, T extends Graph.Kind>(graph: Graph.Graph<SetNode, E, T>) =>
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]))

Callers 1

Graph.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected