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

Function makeSingleEdgeGraph

packages/effect/test/Graph.test.ts:22–27  ·  view source on GitHub ↗
(weight: number)

Source from the content-addressed store, hash-verified

20 })
21
22const makeSingleEdgeGraph = (weight: number) =>
23 Graph.directed<string, number>((mutable) => {
24 const source = Graph.addNode(mutable, "source")
25 const target = Graph.addNode(mutable, "target")
26 Graph.addEdge(mutable, source, target, weight)
27 })
28
29const unsupportedEdgeWeights = [NaN, -Infinity] as const
30

Callers 1

Graph.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected