effect-io-ai

Package: effect
Module: Graph

Graph.MutableGraph

Mutable graph interface.

When to use

Use when adding, removing, or updating nodes and edges inside a graph mutation scope.

See

Signature

export interface MutableGraph<in out N, in out E, T extends Kind = "directed">
  extends Iterable<readonly [NodeIndex, N]>, Equal.Equal, Pipeable, Inspectable
{
  readonly [TypeId]: MutableGraph.Variance<N, E>
  readonly type: T
  readonly mutable: true
}

Source

Since v3.18.0