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

Function graphImpl

packages/effect/src/Graph.ts:227–229  ·  view source on GitHub ↗
(
  graph: Graph<N, E, T> | MutableGraph<N, E, T>
)

Source from the content-addressed store, hash-verified

225
226/** @internal */
227const graphImpl = <N, E, T extends Kind = "directed">(
228 graph: Graph<N, E, T> | MutableGraph<N, E, T>
229): GraphImpl<N, E, T> => graph as unknown as GraphImpl<N, E, T>
230
231/** @internal */
232const cloneAdjacency = (adjacency: Map<NodeIndex, Array<EdgeIndex>>): Map<NodeIndex, Array<EdgeIndex>> => {

Callers 15

[Equal.symbol]Function · 0.85
beginMutationFunction · 0.85
endMutationFunction · 0.85
buildNodeMapsFunction · 0.85
buildEdgeMapFunction · 0.85
Graph.tsFile · 0.85
copyIntoFunction · 0.85
addNodeFunction · 0.85
nodeCountFunction · 0.85
updateNodeFunction · 0.85
updateEdgeFunction · 0.85
mapNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected