MCPcopy Index your code
hub / github.com/Effect-TS/effect / hasNode

Function hasNode

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

Source from the content-addressed store, hash-verified

525 * @category getters
526 */
527export const hasNode = <N, E, T extends Kind = "directed">(
528 graph: Graph<N, E, T> | MutableGraph<N, E, T>,
529 nodeIndex: NodeIndex
530): boolean => graph.nodes.has(nodeIndex)
531
532/**
533 * Returns the number of nodes in the graph.

Callers 4

dfsFunction · 0.85
bfsFunction · 0.85
topoFunction · 0.85
dfsPostOrderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected