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

Function copyEdge

packages/effect/src/Graph.ts:254–258  ·  view source on GitHub ↗
(edge: Edge<E>)

Source from the content-addressed store, hash-verified

252
253/** @internal */
254const copyEdge = <E>(edge: Edge<E>): Edge<E> => ({
255 source: edge.source,
256 target: edge.target,
257 data: edge.data
258})
259
260/**
261 * Immutable graph type for source-to-target relationships.

Callers 2

Graph.tsFile · 0.85
nextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected