effect-io-ai

Package: effect
Module: Graph

Graph.DirectedGraph

Immutable graph type for source-to-target relationships.

When to use

Use as the immutable graph type when edge direction is part of the model and traversal or neighbor queries should follow source-to-target edges.

Details

DirectedGraph<N, E> is a Graph<N, E, "directed"> with node data of type N and edge data of type E.

See

Signature

type DirectedGraph<N, E> = Graph<N, E, "directed">

Source

Since v3.18.0