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

Function nodeCount

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

Source from the content-addressed store, hash-verified

1582 * @since 3.18.0
1583 */
1584export const nodeCount = <N, E, T extends Kind = "directed">(
1585 graph: Graph<N, E, T> | MutableGraph<N, E, T>
1586): number => graphImpl(graph).nodes.size
1587
1588/**
1589 * Finds the first node that matches the given predicate.

Callers

nothing calls this directly

Calls 1

graphImplFunction · 0.85

Tested by

no test coverage detected