effect-io-ai

Package: effect
Module: Graph

Graph.NeighborhoodConfig

Configuration for selecting a graph neighborhood.

Details

radius limits the edge distance from the center node and defaults to 1. direction controls how directed edges are traversed and defaults to "outgoing".

Signature

export interface NeighborhoodConfig {
  readonly radius?: number
  readonly direction?: TraversalDirection
}

Source

Since v4.0.0