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

Function edgeEquals

packages/effect/src/Graph.ts:323–328  ·  view source on GitHub ↗
(type: Kind, self: Edge<any>, that: Edge<any>)

Source from the content-addressed store, hash-verified

321
322/** @internal */
323const edgeEquals = (type: Kind, self: Edge<any>, that: Edge<any>): boolean =>
324 (type === "directed"
325 ? self.source === that.source && self.target === that.target
326 : (self.source === that.source && self.target === that.target) ||
327 (self.source === that.target && self.target === that.source)) &&
328 Equal.equals(self.data, that.data)
329
330/** @internal */
331const edgeHash = (type: Kind, edge: Edge<any>): number =>

Callers 1

[Equal.symbol]Function · 0.85

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected