effect-io-ai

Package: effect
Module: Graph

Graph.successors

Returns the outgoing neighbor node indices for a node in a directed graph.

Throws a GraphError when used with an undirected graph.

Signature

declare const successors: <N, E>(graph: Graph<N, E, "directed"> | MutableGraph<N, E, "directed">, nodeIndex: NodeIndex) => Array<NodeIndex>

Source

Since v3.22.0