neighbors function
Neighbors of every node, in the order the links were written.
import { neighbors } from '@dioramajs/data/graph'function neighbors(n: number, edges: readonly GraphEdge[]): number[][]Parameters
| Name | Type | Description |
|---|---|---|
n | number | |
edges | readonly GraphEdge[] |
Defined in packages/data/src/graph.ts.