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

Function twoNodeGraph

packages/effect/test/Hash.test.ts:54–59  ·  view source on GitHub ↗
(type: Graph.Kind, first: number, second: number)

Source from the content-addressed store, hash-verified

52}
53
54const twoNodeGraph = (type: Graph.Kind, first: number, second: number) =>
55 Graph.make(type)<number, number>((mutable) => {
56 Graph.addNode(mutable, first)
57 Graph.addNode(mutable, second)
58 Graph.addEdge(mutable, 0, 1, 0)
59 })
60
61describe("Hash", () => {
62 describe("collision resistance", () => {

Callers 1

Hash.test.tsFile · 0.85

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected