effect-io-ai

Package: effect
Module: Graph

Graph.NodeIndex

Node index for node identification using plain numbers.

When to use

Use when storing or passing the stable identifier of a graph node between Graph operations.

Details

addNode allocates node identifiers from the graph’s next node index.

Gotchas

A NodeIndex is an identifier, not an array offset. Removed node identifiers are not reused.

See

Signature

type NodeIndex = number

Source

Since v3.18.0