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

Function edgeCount

packages/effect/src/Graph.ts:2619–2621  ·  view source on GitHub ↗
(
  graph: Graph<N, E, T> | MutableGraph<N, E, T>
)

Source from the content-addressed store, hash-verified

2617 * @since 3.18.0
2618 */
2619export const edgeCount = <N, E, T extends Kind = "directed">(
2620 graph: Graph<N, E, T> | MutableGraph<N, E, T>
2621): number => graphImpl(graph).edges.size
2622
2623const getDirectedNeighbors = <N, E>(
2624 graph: Graph<N, E, "directed"> | MutableGraph<N, E, "directed">,

Callers

nothing calls this directly

Calls 1

graphImplFunction · 0.85

Tested by

no test coverage detected