gabrielEdges
function gabrielEdges(ldIn, strategy?): [number, number][];Defined in: metrics/geometric.ts:131
The Gabriel graph of the projection: which points a viewer reads as adjacent.
"auto" (the default) picks an O(N log N) algorithm, falling back to the
O(N²) definition when coincident points make the triangulation degenerate.
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
ldIn | PointsInput | undefined |
strategy | GabrielStrategy | "auto" |
Returns
Section titled “Returns”[number, number][]
Example
Section titled “Example”import { gabrielEdges } from "@saehrimnir/sickle";
// 2-D only — throws otherwise.const edges = gabrielEdges(projection);edges.length; // 351 for these 200 pointsedges[0]; // [101, 145] — a pair of point indices