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

Function edgeHash

packages/effect/src/Graph.ts:331–334  ·  view source on GitHub ↗
(type: Kind, edge: Edge<any>)

Source from the content-addressed store, hash-verified

329
330/** @internal */
331const edgeHash = (type: Kind, edge: Edge<any>): number =>
332 type === "directed"
333 ? Hash.hash(edge)
334 : Hash.optimize(Hash.hash(edge.data) ^ (Hash.hash(edge.source) + Hash.hash(edge.target)))
335
336/** @internal */
337const ProtoGraph = {

Callers 1

[Hash.symbol]Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected