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

Function removeNode

packages/effect/src/Graph.ts:2700–2708  ·  view source on GitHub ↗
(
  mutable: MutableGraph<N, E, T>,
  nodeIndex: NodeIndex
)

Source from the content-addressed store, hash-verified

2698 * @since 3.18.0
2699 */
2700export const removeNode = <N, E, T extends Kind = "directed">(
2701 mutable: MutableGraph<N, E, T>,
2702 nodeIndex: NodeIndex
2703): void => {
2704 const impl = getMutableImplForMutation(mutable)
2705 if (removeNodeInternal(impl, nodeIndex)) {
2706 invalidateCycleFlagOnRemoval(impl)
2707 }
2708}
2709
2710/**
2711 * Removes multiple nodes and all their incident edges from a mutable graph.

Callers

nothing calls this directly

Calls 3

removeNodeInternalFunction · 0.85

Tested by

no test coverage detected