MCPcopy Create free account
hub / github.com/effect-app/libs / assertSomeEdge

Function assertSomeEdge

repos/effect/packages/effect/test/Graph.test.ts:5–10  ·  view source on GitHub ↗
(edge: Option.Option<Graph.Edge<E>>)

Source from the content-addressed store, hash-verified

3
4const directed = <N, E>(
5 nodes: ReadonlyArray<N>,
6 edges: ReadonlyArray<readonly [Graph.NodeIndex, Graph.NodeIndex, E]>
7) =>
8 Graph.directed<N, E>((mutable) => {
9 for (const node of nodes) Graph.addNode(mutable, node)
10 for (const [source, target, data] of edges) Graph.addEdge(mutable, source, target, data)
11 })
12
13const undirected = <N, E>(

Callers 1

Graph.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…