egraph 6.0.0-alpha.3 → 6.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -139
- package/package.json +41 -25
- package/pkg/README.md +163 -0
- package/pkg/egraph_wasm.d.ts +2900 -0
- package/pkg/egraph_wasm.js +10126 -0
- package/pkg/egraph_wasm.node.js +12 -0
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +3316 -0
- package/pkg/index.js +415 -0
- package/dist/bundler/README.md +0 -161
- package/dist/no-modules/LICENSE +0 -21
- package/dist/no-modules/README.md +0 -161
- package/dist/nodejs/LICENSE +0 -21
- package/dist/nodejs/README.md +0 -161
- package/dist/web/LICENSE +0 -21
- package/dist/web/README.md +0 -161
- package/umd/egraph.js +0 -2771
- package/umd/egraph_bg.wasm +0 -0
- /package/{dist/bundler → pkg}/LICENSE +0 -0
package/pkg/index.d.ts
ADDED
|
@@ -0,0 +1,3316 @@
|
|
|
1
|
+
/// <reference lib="esnext.disposable" />
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Output of `coarsenGraph`.
|
|
7
|
+
*/
|
|
8
|
+
export type SolverStatus = "initialized" | "running" | "converged" | "completed";
|
|
9
|
+
export type ManifoldKind = "hyperbolic" | "spherical" | "torus";
|
|
10
|
+
export type TsNetBackend = "exact" | "barnes_hut" | "fft" | "linear_fft";
|
|
11
|
+
export type SgdScheduleKind = "exponential" | "linear" | "quadratic" | "reciprocal" | "constant" | "squared";
|
|
12
|
+
export type BarrierSymmetry = "sym_max" | "sym_avg";
|
|
13
|
+
export type FieldRepulsionBackend = "ibfft" | "barnes_hut" | "exact";
|
|
14
|
+
export type LayeringMethod = "longestPath" | "longest_path" | "networkSimplex" | "network_simplex";
|
|
15
|
+
export type LayoutAxis = 0 | 1 | "x" | "y";
|
|
16
|
+
|
|
17
|
+
export interface TsNetOptions {
|
|
18
|
+
backend?: TsNetBackend | null;
|
|
19
|
+
iterationsStage1?: number | null;
|
|
20
|
+
iterationsStage2?: number | null;
|
|
21
|
+
iterationsStage3?: number | null;
|
|
22
|
+
learningRate?: number | null;
|
|
23
|
+
perplexityC?: number | null;
|
|
24
|
+
minPerplexity?: number | null;
|
|
25
|
+
maxPerplexity?: number | null;
|
|
26
|
+
exaggeration?: number | null;
|
|
27
|
+
lambdaCStage1?: number | null;
|
|
28
|
+
lambdaCStage2?: number | null;
|
|
29
|
+
lambdaCStage3?: number | null;
|
|
30
|
+
lambdaRStage3?: number | null;
|
|
31
|
+
momentum?: number | null;
|
|
32
|
+
epsilonR?: number | null;
|
|
33
|
+
theta?: number | null;
|
|
34
|
+
power?: number | null;
|
|
35
|
+
sigmaIters?: number | null;
|
|
36
|
+
sigmaTolerance?: number | null;
|
|
37
|
+
rowNormalize?: boolean | null;
|
|
38
|
+
ibfftOrder?: "bilinear" | "cubic" | 1 | 3 | null;
|
|
39
|
+
ibfftIntervals?: number | null;
|
|
40
|
+
ibfftMinGridDim?: number | null;
|
|
41
|
+
ibfftMaxGridDim?: number | null;
|
|
42
|
+
intervals?: number | null;
|
|
43
|
+
interpolationOrder?: "bilinear" | "cubic" | 1 | 3 | null;
|
|
44
|
+
minGridDim?: number | null;
|
|
45
|
+
maxGridDim?: number | null;
|
|
46
|
+
seed?: number | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface TsNetRowNormalizedOptions extends TsNetOptions {
|
|
50
|
+
w2?: number | null;
|
|
51
|
+
max2hopPerNode?: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface SgdScheduleOptions {
|
|
55
|
+
tMax?: number | null;
|
|
56
|
+
eps?: number | null;
|
|
57
|
+
kind?: SgdScheduleKind | null;
|
|
58
|
+
stepScale?: number | null;
|
|
59
|
+
seed?: number | null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface RandomPairSgdOptions extends SgdScheduleOptions {
|
|
63
|
+
pairsPerNode?: number | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface OmegaSgdOptions extends SgdScheduleOptions {
|
|
67
|
+
k?: number | null;
|
|
68
|
+
minDist?: number | null;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface StreamingNegativeOptions extends SgdScheduleOptions {
|
|
72
|
+
negativesPerNode?: number | null;
|
|
73
|
+
targetDistance?: number | null;
|
|
74
|
+
weight?: number | null;
|
|
75
|
+
hingeOnly?: boolean | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface SparseBarrierOptions extends SgdScheduleOptions {
|
|
79
|
+
max2hopPerNode?: number | null;
|
|
80
|
+
hingeRepulsion?: boolean | null;
|
|
81
|
+
deltaRel?: number | null;
|
|
82
|
+
barrierSym?: BarrierSymmetry | null;
|
|
83
|
+
omega1?: number | null;
|
|
84
|
+
omega2?: number | null;
|
|
85
|
+
gammaNon2?: number | null;
|
|
86
|
+
htRepulsion?: boolean | null;
|
|
87
|
+
minRatio?: number | null;
|
|
88
|
+
epsDist?: number | null;
|
|
89
|
+
negPerNode?: number | null;
|
|
90
|
+
numPivots?: number | null;
|
|
91
|
+
corePivots?: boolean | null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface SparseBarrierDogOptions extends SparseBarrierOptions {
|
|
95
|
+
degree?: number | null;
|
|
96
|
+
numLandmarks?: number | null;
|
|
97
|
+
minDegree?: number | null;
|
|
98
|
+
jlDim?: number | null;
|
|
99
|
+
degreeNormalize?: boolean | null;
|
|
100
|
+
pExp?: number | null;
|
|
101
|
+
epsPsd?: number | null;
|
|
102
|
+
tCoarse?: number | null;
|
|
103
|
+
t1?: number | null;
|
|
104
|
+
t2?: number | null;
|
|
105
|
+
alpha?: number | null;
|
|
106
|
+
betaFloor?: number | null;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface GuMapOptions {
|
|
110
|
+
nEpochs?: number | null;
|
|
111
|
+
negativeSampleRate?: number | null;
|
|
112
|
+
learningRate?: number | null;
|
|
113
|
+
minDist?: number | null;
|
|
114
|
+
spread?: number | null;
|
|
115
|
+
a?: number | null;
|
|
116
|
+
b?: number | null;
|
|
117
|
+
sigmaIters?: number | null;
|
|
118
|
+
sigmaTolerance?: number | null;
|
|
119
|
+
seed?: number | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface GuMapDogOptions extends GuMapOptions {
|
|
123
|
+
max2hopPerNode?: number | null;
|
|
124
|
+
degree?: number | null;
|
|
125
|
+
numLandmarks?: number | null;
|
|
126
|
+
minDegree?: number | null;
|
|
127
|
+
jlDim?: number | null;
|
|
128
|
+
degreeNormalize?: boolean | null;
|
|
129
|
+
pExp?: number | null;
|
|
130
|
+
epsPsd?: number | null;
|
|
131
|
+
tCoarse?: number | null;
|
|
132
|
+
t1?: number | null;
|
|
133
|
+
t2?: number | null;
|
|
134
|
+
alpha?: number | null;
|
|
135
|
+
betaFloor?: number | null;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface GuMapLandmarksOptions extends GuMapOptions {
|
|
139
|
+
max2hopPerNode?: number | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface SpatialRefinerOptions {
|
|
143
|
+
rounds?: number | null;
|
|
144
|
+
kCap?: number | null;
|
|
145
|
+
marginScale?: number | null;
|
|
146
|
+
wAnchor?: number | null;
|
|
147
|
+
wAnchor2?: number | null;
|
|
148
|
+
wFn?: number | null;
|
|
149
|
+
wFp?: number | null;
|
|
150
|
+
fnShrink?: number | null;
|
|
151
|
+
roundDecay?: number | null;
|
|
152
|
+
kCapDecay?: number | null;
|
|
153
|
+
kCapMin?: number | null;
|
|
154
|
+
tMax?: number | null;
|
|
155
|
+
eps?: number | null;
|
|
156
|
+
hingeFp?: boolean | null;
|
|
157
|
+
seed?: number | null;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface StressMajorizationOptions {
|
|
161
|
+
epsilon?: number | null;
|
|
162
|
+
maxIterations?: number | null;
|
|
163
|
+
pcgTolerance?: number | null;
|
|
164
|
+
pcgMaxIterations?: number | null;
|
|
165
|
+
minNorm?: number | null;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface KamadaKawaiOptions {
|
|
169
|
+
eps?: number | null;
|
|
170
|
+
maxInnerIters?: number | null;
|
|
171
|
+
maxOuterIters?: number | null;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface TFdpOptions {
|
|
175
|
+
backend?: FieldRepulsionBackend | string | null;
|
|
176
|
+
totalIterations?: number | null;
|
|
177
|
+
learningRate?: number | null;
|
|
178
|
+
momentum?: number | null;
|
|
179
|
+
theta?: number | null;
|
|
180
|
+
alpha?: number | null;
|
|
181
|
+
gamma?: number | null;
|
|
182
|
+
rhoStart?: number | null;
|
|
183
|
+
rhoEnd?: number | null;
|
|
184
|
+
rhoPower?: number | null;
|
|
185
|
+
ibfftOrder?: "bilinear" | "cubic" | 1 | 3 | null;
|
|
186
|
+
ibfftIntervals?: number | null;
|
|
187
|
+
ibfftMinGridDim?: number | null;
|
|
188
|
+
ibfftMaxGridDim?: number | null;
|
|
189
|
+
seed?: number | null;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface IbUmapOptions {
|
|
193
|
+
max2hopPerNode?: number | null;
|
|
194
|
+
backend?: FieldRepulsionBackend | string | null;
|
|
195
|
+
nEpochs?: number | null;
|
|
196
|
+
learningRate?: number | null;
|
|
197
|
+
minDist?: number | null;
|
|
198
|
+
spread?: number | null;
|
|
199
|
+
a?: number | null;
|
|
200
|
+
b?: number | null;
|
|
201
|
+
cK?: number | null;
|
|
202
|
+
tauScale?: number | null;
|
|
203
|
+
hubDamping?: boolean | null;
|
|
204
|
+
theta?: number | null;
|
|
205
|
+
sigmaIters?: number | null;
|
|
206
|
+
sigmaTolerance?: number | null;
|
|
207
|
+
degrees?: Uint32Array | number[] | null;
|
|
208
|
+
ibfftOrder?: "bilinear" | "cubic" | 1 | 3 | null;
|
|
209
|
+
ibfftIntervals?: number | null;
|
|
210
|
+
ibfftMinGridDim?: number | null;
|
|
211
|
+
ibfftMaxGridDim?: number | null;
|
|
212
|
+
degree?: number | null;
|
|
213
|
+
numLandmarks?: number | null;
|
|
214
|
+
minDegree?: number | null;
|
|
215
|
+
jlDim?: number | null;
|
|
216
|
+
degreeNormalize?: boolean | null;
|
|
217
|
+
pExp?: number | null;
|
|
218
|
+
epsPsd?: number | null;
|
|
219
|
+
tCoarse?: number | null;
|
|
220
|
+
t1?: number | null;
|
|
221
|
+
t2?: number | null;
|
|
222
|
+
alpha?: number | null;
|
|
223
|
+
betaFloor?: number | null;
|
|
224
|
+
seed?: number | null;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface SnapTFdpOptions {
|
|
228
|
+
iterations?: number | null;
|
|
229
|
+
negativesPerEdge?: number | null;
|
|
230
|
+
learningRate?: number | null;
|
|
231
|
+
alpha?: number | null;
|
|
232
|
+
repulsionScale?: number | null;
|
|
233
|
+
rhoStart?: number | null;
|
|
234
|
+
rhoEnd?: number | null;
|
|
235
|
+
rhoPower?: number | null;
|
|
236
|
+
seed?: number | null;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface PacmapGraphOptions {
|
|
240
|
+
nNeighbors?: number | null;
|
|
241
|
+
mnRatio?: number | null;
|
|
242
|
+
fpRatio?: number | null;
|
|
243
|
+
phase1Iters?: number | null;
|
|
244
|
+
phase2Iters?: number | null;
|
|
245
|
+
phase3Iters?: number | null;
|
|
246
|
+
learningRate?: number | null;
|
|
247
|
+
keepAll1hop?: boolean | null;
|
|
248
|
+
seed?: number | null;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface Sgd2Options {
|
|
252
|
+
tMax?: number | null;
|
|
253
|
+
eps?: number | null;
|
|
254
|
+
stepScale?: number | null;
|
|
255
|
+
batchSize?: number | null;
|
|
256
|
+
damping?: number | null;
|
|
257
|
+
seed?: number | null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface ForceAtlas2Options {
|
|
261
|
+
iterations?: number | null;
|
|
262
|
+
theta?: number | null;
|
|
263
|
+
useBarnesHut?: boolean | null;
|
|
264
|
+
linlogMode?: boolean | null;
|
|
265
|
+
strongGravity?: boolean | null;
|
|
266
|
+
gravity?: number | null;
|
|
267
|
+
scalingRatio?: number | null;
|
|
268
|
+
edgeWeightInfluence?: number | null;
|
|
269
|
+
outboundAttractionDistribution?: boolean | null;
|
|
270
|
+
jitterTolerance?: number | null;
|
|
271
|
+
seed?: number | null;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface YifanHuOptions {
|
|
275
|
+
maxIterationsPerLevel?: number | null;
|
|
276
|
+
stepSize?: number | null;
|
|
277
|
+
stepRatio?: number | null;
|
|
278
|
+
relativeStrength?: number | null;
|
|
279
|
+
optimalDistance?: number | null;
|
|
280
|
+
theta?: number | null;
|
|
281
|
+
minCoarsenSize?: number | null;
|
|
282
|
+
minCoarsenRatio?: number | null;
|
|
283
|
+
convergenceTolerance?: number | null;
|
|
284
|
+
seed?: number | null;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface PrismOptions {
|
|
288
|
+
maxIterations?: number | null;
|
|
289
|
+
maxScaleFactor?: number | null;
|
|
290
|
+
cgMaxIters?: number | null;
|
|
291
|
+
cgTolerance?: number | null;
|
|
292
|
+
padding?: number | null;
|
|
293
|
+
seed?: number | null;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface SeparationConstraintLike {
|
|
297
|
+
left: number;
|
|
298
|
+
right: number;
|
|
299
|
+
gap: number;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export interface FdebOptions {
|
|
303
|
+
cycles?: number | null;
|
|
304
|
+
s0?: number | null;
|
|
305
|
+
i0?: number | null;
|
|
306
|
+
sStep?: number | null;
|
|
307
|
+
iStep?: number | null;
|
|
308
|
+
springK?: number | null;
|
|
309
|
+
minimumEdgeCompatibility?: number | null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export interface ProgressiveSolverLike<TLayout = Layout2d> {
|
|
313
|
+
readonly isFinished: boolean;
|
|
314
|
+
readonly iteration: number;
|
|
315
|
+
readonly totalIterations: number;
|
|
316
|
+
readonly status: SolverStatus | string;
|
|
317
|
+
step(layout: TLayout): SolverStatus | string;
|
|
318
|
+
runSteps?(layout: TLayout, steps: number): SolverStatus | string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface ProgressiveFrameContext<TLayout = Layout2d> {
|
|
322
|
+
iteration: number;
|
|
323
|
+
totalIterations: number;
|
|
324
|
+
status: SolverStatus | string;
|
|
325
|
+
layout: TLayout;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface RunProgressiveOptions {
|
|
329
|
+
frameBudgetMs?: number;
|
|
330
|
+
maxStepsPerFrame?: number;
|
|
331
|
+
stepsPerYield?: number;
|
|
332
|
+
signal?: AbortSignal;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Runs a cooperative iterative solver progressively within a per-frame time budget,
|
|
337
|
+
* yielding back to the browser event loop via `requestAnimationFrame` (or `setTimeout`
|
|
338
|
+
* in Node.js) between batches.
|
|
339
|
+
*/
|
|
340
|
+
export function runProgressive<TLayout = Layout2d>(
|
|
341
|
+
solver: ProgressiveSolverLike<TLayout>,
|
|
342
|
+
layout: TLayout,
|
|
343
|
+
onFrame?: ((ctx: ProgressiveFrameContext<TLayout>) => void) | null,
|
|
344
|
+
options?: RunProgressiveOptions | null,
|
|
345
|
+
): Promise<ProgressiveFrameContext<TLayout>>;
|
|
346
|
+
|
|
347
|
+
export class CoarsenedGraphResult {
|
|
348
|
+
private constructor();
|
|
349
|
+
free(): void;
|
|
350
|
+
[Symbol.dispose](): void;
|
|
351
|
+
/**
|
|
352
|
+
* Returns the number of original vertices assigned to each coarse node (`Uint32Array`).
|
|
353
|
+
*/
|
|
354
|
+
coarseSizes(): Uint32Array;
|
|
355
|
+
/**
|
|
356
|
+
* Returns a cloned handle to the weighted undirected coarsened `CsrGraph`.
|
|
357
|
+
*/
|
|
358
|
+
graph(): CsrGraph;
|
|
359
|
+
/**
|
|
360
|
+
* Returns the compacted `0..numClusters` cluster ID for each original vertex (`Uint32Array`).
|
|
361
|
+
*/
|
|
362
|
+
nodeToCoarse(): Uint32Array;
|
|
363
|
+
/**
|
|
364
|
+
* Returns the number of distinct compacted clusters.
|
|
365
|
+
*/
|
|
366
|
+
readonly numClusters: number;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Non-adjacent crossing edge pair details returned by `crossingEdges`.
|
|
371
|
+
*/
|
|
372
|
+
export class CrossingPair {
|
|
373
|
+
private constructor();
|
|
374
|
+
free(): void;
|
|
375
|
+
[Symbol.dispose](): void;
|
|
376
|
+
readonly angleRad: number | undefined;
|
|
377
|
+
readonly cosSq: number;
|
|
378
|
+
readonly edgeA: number;
|
|
379
|
+
readonly edgeB: number;
|
|
380
|
+
readonly u1: number;
|
|
381
|
+
readonly u2: number;
|
|
382
|
+
readonly v1: number;
|
|
383
|
+
readonly v2: number;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Exact edge-crossing count and angle statistics returned by `crossingSummary`.
|
|
388
|
+
*/
|
|
389
|
+
export class CrossingSummary {
|
|
390
|
+
private constructor();
|
|
391
|
+
free(): void;
|
|
392
|
+
[Symbol.dispose](): void;
|
|
393
|
+
readonly angleCosSqSum: number;
|
|
394
|
+
readonly count: number;
|
|
395
|
+
readonly minAngleRad: number | undefined;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
|
|
400
|
+
*/
|
|
401
|
+
/**
|
|
402
|
+
* Options controlling CSR / edge-list graph construction.
|
|
403
|
+
*/
|
|
404
|
+
export interface CsrGraphOptions {
|
|
405
|
+
directed?: boolean;
|
|
406
|
+
sanitize?: boolean;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export class CsrGraph {
|
|
410
|
+
private constructor();
|
|
411
|
+
free(): void;
|
|
412
|
+
[Symbol.dispose](): void;
|
|
413
|
+
/**
|
|
414
|
+
* Returns the degree (outgoing degree for directed graphs) of vertex `u`.
|
|
415
|
+
*/
|
|
416
|
+
degree(u: number): number;
|
|
417
|
+
/**
|
|
418
|
+
* Constructs a `CsrGraph` from CSR `indptr`, `indices`, and optional `weights`.
|
|
419
|
+
*
|
|
420
|
+
* The optional trailing parameters accept either `(directed, sanitize)` booleans or an
|
|
421
|
+
* options object `{ directed?: boolean, sanitize?: boolean }`. Defaults are
|
|
422
|
+
* `directed = false` and `sanitize = true`.
|
|
423
|
+
*/
|
|
424
|
+
static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | CsrGraphOptions | null, sanitize?: boolean | null): CsrGraph;
|
|
425
|
+
/**
|
|
426
|
+
* Constructs a `CsrGraph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
|
|
427
|
+
* and optional `weights`.
|
|
428
|
+
*/
|
|
429
|
+
static fromEdgeList(numNodes: number, edges: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | CsrGraphOptions | null, sanitize?: boolean | null): CsrGraph;
|
|
430
|
+
/**
|
|
431
|
+
* Returns a copy of the flat CSR `indices` neighbor array.
|
|
432
|
+
*/
|
|
433
|
+
indices(): Uint32Array;
|
|
434
|
+
/**
|
|
435
|
+
* Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
|
|
436
|
+
*/
|
|
437
|
+
indptr(): Uint32Array;
|
|
438
|
+
/**
|
|
439
|
+
* Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
|
|
440
|
+
*/
|
|
441
|
+
inducedSubgraph(nodes: Uint32Array | number[]): CsrGraph;
|
|
442
|
+
/**
|
|
443
|
+
* Returns `true` if the graph is directed.
|
|
444
|
+
*/
|
|
445
|
+
isDirected(): boolean;
|
|
446
|
+
/**
|
|
447
|
+
* Returns `true` if explicit edge weights are stored.
|
|
448
|
+
*/
|
|
449
|
+
isWeighted(): boolean;
|
|
450
|
+
/**
|
|
451
|
+
* Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
|
|
452
|
+
*/
|
|
453
|
+
largestConnectedComponent(): LargestConnectedComponentResult;
|
|
454
|
+
/**
|
|
455
|
+
* Returns a copy of the neighbor indices adjacent to vertex `u`.
|
|
456
|
+
*/
|
|
457
|
+
neighbors(u: number): Uint32Array;
|
|
458
|
+
/**
|
|
459
|
+
* Returns the number of stored CSR half-edge entries (`indices().length`).
|
|
460
|
+
*/
|
|
461
|
+
nnz(): number;
|
|
462
|
+
/**
|
|
463
|
+
* Returns the number of logical edges in the graph.
|
|
464
|
+
*/
|
|
465
|
+
numEdges(): number;
|
|
466
|
+
/**
|
|
467
|
+
* Returns the number of vertices in the graph.
|
|
468
|
+
*/
|
|
469
|
+
numNodes(): number;
|
|
470
|
+
/**
|
|
471
|
+
* Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
|
|
472
|
+
*/
|
|
473
|
+
weights(): Float32Array | undefined;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Deterministic 2D Delaunay triangulation result returned by `delaunayTriangulation`.
|
|
478
|
+
*/
|
|
479
|
+
export class DelaunayResult {
|
|
480
|
+
private constructor();
|
|
481
|
+
free(): void;
|
|
482
|
+
[Symbol.dispose](): void;
|
|
483
|
+
/**
|
|
484
|
+
* Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical undirected edges (`u < v`).
|
|
485
|
+
*/
|
|
486
|
+
edges(): Uint32Array;
|
|
487
|
+
/**
|
|
488
|
+
* Returns a flat `[a0, b0, c0, a1, b1, c1, ...]` `Uint32Array` of canonical Delaunay triangles.
|
|
489
|
+
*/
|
|
490
|
+
triangles(): Uint32Array;
|
|
491
|
+
/**
|
|
492
|
+
* Returns the number of vertices in the triangulated layout.
|
|
493
|
+
*/
|
|
494
|
+
readonly numNodes: number;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Regularized DoG Varadhan landmark diagnostics returned by `SgdSolver.dogStats()`.
|
|
499
|
+
*/
|
|
500
|
+
export class DogStats {
|
|
501
|
+
private constructor();
|
|
502
|
+
free(): void;
|
|
503
|
+
[Symbol.dispose](): void;
|
|
504
|
+
readonly alpha: number;
|
|
505
|
+
readonly betaAuto: number;
|
|
506
|
+
readonly betaEff: number;
|
|
507
|
+
readonly degree: number;
|
|
508
|
+
readonly deltaPsd: number;
|
|
509
|
+
readonly hMin: number;
|
|
510
|
+
readonly kMed: number;
|
|
511
|
+
readonly kMin: number;
|
|
512
|
+
readonly momentStats: SpectralMomentStats;
|
|
513
|
+
readonly numLandmarks: number;
|
|
514
|
+
readonly t1: number;
|
|
515
|
+
readonly t2: number;
|
|
516
|
+
readonly tCoarse: number;
|
|
517
|
+
readonly usedCoarseScaffold: boolean;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Precomputed regularized DoG Varadhan landmark tables and R1/R2 regularization diagnostics.
|
|
522
|
+
*/
|
|
523
|
+
export class DogVaradhanLandmarks {
|
|
524
|
+
private constructor();
|
|
525
|
+
free(): void;
|
|
526
|
+
[Symbol.dispose](): void;
|
|
527
|
+
/**
|
|
528
|
+
* Evaluates landmark ALT lower-bound distances for pairs `(u[i], v[i])`.
|
|
529
|
+
*/
|
|
530
|
+
altDistances(u: Uint32Array | number[], v: Uint32Array | number[]): Float64Array;
|
|
531
|
+
/**
|
|
532
|
+
* Returns a flat row-major `(numNodes, numLandmarks)` coarse scaffold table, or `undefined`.
|
|
533
|
+
*/
|
|
534
|
+
coarseTable(): Float64Array | undefined;
|
|
535
|
+
/**
|
|
536
|
+
* Returns a copy of the selected landmark vertex IDs (`Uint32Array`).
|
|
537
|
+
*/
|
|
538
|
+
landmarks(): Uint32Array;
|
|
539
|
+
/**
|
|
540
|
+
* Returns a flat row-major `(numNodes, numLandmarks)` `Float64Array` Varadhan distance table.
|
|
541
|
+
*/
|
|
542
|
+
table(): Float64Array;
|
|
543
|
+
/**
|
|
544
|
+
* Returns the effective DoG attenuation $\alpha$.
|
|
545
|
+
*/
|
|
546
|
+
readonly alpha: number;
|
|
547
|
+
/**
|
|
548
|
+
* Returns the parameter-free automatic positivity floor `betaAuto`.
|
|
549
|
+
*/
|
|
550
|
+
readonly betaAuto: number;
|
|
551
|
+
/**
|
|
552
|
+
* Returns the effective rank-1 positivity floor `betaEff`.
|
|
553
|
+
*/
|
|
554
|
+
readonly betaEff: number;
|
|
555
|
+
/**
|
|
556
|
+
* Returns the R2 PSD projection shift $\delta_{\mathrm{psd}}$.
|
|
557
|
+
*/
|
|
558
|
+
readonly deltaPsd: number;
|
|
559
|
+
/**
|
|
560
|
+
* Returns the number of landmark columns.
|
|
561
|
+
*/
|
|
562
|
+
readonly numLandmarks: number;
|
|
563
|
+
/**
|
|
564
|
+
* Returns the number of vertices in the graph.
|
|
565
|
+
*/
|
|
566
|
+
readonly numNodes: number;
|
|
567
|
+
/**
|
|
568
|
+
* Returns the effective short-range diffusion time $t_1$.
|
|
569
|
+
*/
|
|
570
|
+
readonly t1: number;
|
|
571
|
+
/**
|
|
572
|
+
* Returns the effective long-range diffusion time $t_2$.
|
|
573
|
+
*/
|
|
574
|
+
readonly t2: number;
|
|
575
|
+
/**
|
|
576
|
+
* Returns `true` if a coarse diffusive scaffold table was computed.
|
|
577
|
+
*/
|
|
578
|
+
readonly usedCoarseScaffold: boolean;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Smallest nontrivial eigenpairs of the symmetric normalized Laplacian $L_{\mathrm{sym}}$.
|
|
583
|
+
*/
|
|
584
|
+
export class EigenResult {
|
|
585
|
+
private constructor();
|
|
586
|
+
free(): void;
|
|
587
|
+
[Symbol.dispose](): void;
|
|
588
|
+
/**
|
|
589
|
+
* Returns the $D^{-1/2}$ inverse square-root degree vector (`length === numNodes`).
|
|
590
|
+
*/
|
|
591
|
+
invSqrtDeg(): Float64Array;
|
|
592
|
+
/**
|
|
593
|
+
* Returns the ascending nontrivial eigenvalues (`length === numModes`).
|
|
594
|
+
*/
|
|
595
|
+
lambdas(): Float64Array;
|
|
596
|
+
/**
|
|
597
|
+
* Returns the flat row-major `(numNodes, numModes)` orthonormal eigenvectors.
|
|
598
|
+
*/
|
|
599
|
+
vectors(): Float64Array;
|
|
600
|
+
/**
|
|
601
|
+
* Returns the number of returned nontrivial eigenmodes.
|
|
602
|
+
*/
|
|
603
|
+
readonly numModes: number;
|
|
604
|
+
/**
|
|
605
|
+
* Returns the number of vertices in the graph.
|
|
606
|
+
*/
|
|
607
|
+
readonly numNodes: number;
|
|
608
|
+
/**
|
|
609
|
+
* Returns `true` when the dense Jacobi eigensolver fallback path was used.
|
|
610
|
+
*/
|
|
611
|
+
readonly usedDenseFallback: boolean;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Cooperative Force-Directed Edge Bundling (`FDEB`) solver (`f32`) storing flat edge
|
|
616
|
+
* polyline buffers without `serde` or consuming input `Layout2d` handles.
|
|
617
|
+
*/
|
|
618
|
+
export class FdebSolver {
|
|
619
|
+
free(): void;
|
|
620
|
+
[Symbol.dispose](): void;
|
|
621
|
+
/**
|
|
622
|
+
* Returns CSR-style polyline point offsets of length `numEdges + 1` (`Uint32Array`).
|
|
623
|
+
*/
|
|
624
|
+
edgeOffsets(): Uint32Array;
|
|
625
|
+
/**
|
|
626
|
+
* Constructs an `FdebSolver` from `graph` and `layout` by shared reference.
|
|
627
|
+
*/
|
|
628
|
+
constructor(graph: CsrGraph, layout: Layout2d, options?: FdebOptions | null);
|
|
629
|
+
/**
|
|
630
|
+
* Returns all bundled polyline control points packed as flat interleaved `[x0, y0, ...]` (`Float32Array`).
|
|
631
|
+
*/
|
|
632
|
+
points(): Float32Array;
|
|
633
|
+
/**
|
|
634
|
+
* Executes up to `steps` FDEB iterations and returns the updated solver status string.
|
|
635
|
+
*/
|
|
636
|
+
runSteps(steps: number): string;
|
|
637
|
+
/**
|
|
638
|
+
* Runs FDEB edge bundling to completion and returns the final solver status string.
|
|
639
|
+
*/
|
|
640
|
+
run(): string;
|
|
641
|
+
/**
|
|
642
|
+
* Executes one FDEB iteration and returns the updated solver status string.
|
|
643
|
+
*/
|
|
644
|
+
step(): string;
|
|
645
|
+
/**
|
|
646
|
+
* Returns `true` when edge bundling has converged or completed.
|
|
647
|
+
*/
|
|
648
|
+
readonly isFinished: boolean;
|
|
649
|
+
/**
|
|
650
|
+
* Returns the number of iterations executed so far.
|
|
651
|
+
*/
|
|
652
|
+
readonly iteration: number;
|
|
653
|
+
/**
|
|
654
|
+
* Returns the number of edges being bundled.
|
|
655
|
+
*/
|
|
656
|
+
readonly numEdges: number;
|
|
657
|
+
/**
|
|
658
|
+
* Returns the solver lifecycle status string.
|
|
659
|
+
*/
|
|
660
|
+
readonly status: string;
|
|
661
|
+
/**
|
|
662
|
+
* Returns the total scheduled iterations across all subdivision cycles.
|
|
663
|
+
*/
|
|
664
|
+
readonly totalIterations: number;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* FFT field telemetry counters returned by `TsNetSolver.lastFftStats()`.
|
|
669
|
+
*/
|
|
670
|
+
export class FitFieldStats {
|
|
671
|
+
private constructor();
|
|
672
|
+
free(): void;
|
|
673
|
+
[Symbol.dispose](): void;
|
|
674
|
+
/**
|
|
675
|
+
* Number of inverse 2D FFTs executed.
|
|
676
|
+
*/
|
|
677
|
+
readonly inverseFfts: number;
|
|
678
|
+
/**
|
|
679
|
+
* Number of forward 2D FFTs executed on kernel grids.
|
|
680
|
+
*/
|
|
681
|
+
readonly kernelForwardFfts: number;
|
|
682
|
+
/**
|
|
683
|
+
* Number of forward 2D FFTs executed on particle charge grids.
|
|
684
|
+
*/
|
|
685
|
+
readonly particleForwardFfts: number;
|
|
686
|
+
/**
|
|
687
|
+
* Total `fft_2d` calls (`particleForwardFfts + kernelForwardFfts + inverseFfts`).
|
|
688
|
+
*/
|
|
689
|
+
readonly totalFft2dCalls: number;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Cooperative ForceAtlas2 force-directed layout solver (`f32`).
|
|
694
|
+
*/
|
|
695
|
+
export class ForceAtlas2Solver {
|
|
696
|
+
free(): void;
|
|
697
|
+
[Symbol.dispose](): void;
|
|
698
|
+
/**
|
|
699
|
+
* Constructs a `ForceAtlas2Solver` from `graph` and optional `ForceAtlas2Options`.
|
|
700
|
+
*/
|
|
701
|
+
constructor(graph: CsrGraph, options?: ForceAtlas2Options | null);
|
|
702
|
+
/**
|
|
703
|
+
* Executes up to `steps` ForceAtlas2 iterations on `layout` in place.
|
|
704
|
+
*/
|
|
705
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
706
|
+
/**
|
|
707
|
+
* Runs ForceAtlas2 to completion on `layout` in place.
|
|
708
|
+
*/
|
|
709
|
+
run(layout: Layout2d): string;
|
|
710
|
+
/**
|
|
711
|
+
* Executes one ForceAtlas2 iteration on `layout` in place.
|
|
712
|
+
*/
|
|
713
|
+
step(layout: Layout2d): string;
|
|
714
|
+
/**
|
|
715
|
+
* Returns `true` when the solver has converged or completed.
|
|
716
|
+
*/
|
|
717
|
+
readonly isFinished: boolean;
|
|
718
|
+
/**
|
|
719
|
+
* Returns the number of iterations executed so far.
|
|
720
|
+
*/
|
|
721
|
+
readonly iteration: number;
|
|
722
|
+
/**
|
|
723
|
+
* Returns the expected vertex count.
|
|
724
|
+
*/
|
|
725
|
+
readonly numNodes: number;
|
|
726
|
+
/**
|
|
727
|
+
* Returns the solver lifecycle status string.
|
|
728
|
+
*/
|
|
729
|
+
readonly status: string;
|
|
730
|
+
/**
|
|
731
|
+
* Returns the scheduled iteration count.
|
|
732
|
+
*/
|
|
733
|
+
readonly totalIterations: number;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Cooperative Graph UMAP (`GuMap`) layout solver (`f32`).
|
|
738
|
+
*/
|
|
739
|
+
export class GuMapSolver {
|
|
740
|
+
private constructor();
|
|
741
|
+
free(): void;
|
|
742
|
+
[Symbol.dispose](): void;
|
|
743
|
+
/**
|
|
744
|
+
* Constructs a `GuMapSolver` directly from a fuzzy simplicial set `SparseProbabilities`.
|
|
745
|
+
*/
|
|
746
|
+
static fromFuzzySet(probs: SparseProbabilities, nEpochsOrOptions?: number | GuMapOptions | null, negativeSampleRate?: number | null, learningRate?: number | null, minDist?: number | null, spread?: number | null, a?: number | null, b?: number | null, seed?: number | null, sigmaIters?: number | null, sigmaTolerance?: number | null): GuMapSolver;
|
|
747
|
+
/**
|
|
748
|
+
* Constructs a `GuMapSolver` from a `CsrGraph` using 1+2-hop pairs and DoG Varadhan landmarks.
|
|
749
|
+
*/
|
|
750
|
+
static fromGraphDog(graph: CsrGraph, max2hopOrOptions?: number | GuMapDogOptions | null, nEpochsOrOptions?: number | GuMapDogOptions | null, negativeSampleRate?: number | null, learningRate?: number | null, minDist?: number | null, spread?: number | null, a?: number | null, b?: number | null, sigmaIters?: number | null, sigmaTolerance?: number | null, seed?: number | null, degree?: number | null, numLandmarks?: number | null, degreeNormalize?: boolean | null, pExp?: number | null, epsPsd?: number | null, tCoarse?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, betaFloor?: number | null, minDegree?: number | null, jlDim?: number | null): GuMapSolver;
|
|
751
|
+
/**
|
|
752
|
+
* Constructs a `GuMapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
|
|
753
|
+
*/
|
|
754
|
+
static fromKnn(knn: KnnGraph, nEpochsOrOptions?: number | GuMapOptions | null, negativeSampleRate?: number | null, learningRate?: number | null, minDist?: number | null, spread?: number | null, a?: number | null, b?: number | null, sigmaIters?: number | null, sigmaTolerance?: number | null, seed?: number | null): GuMapSolver;
|
|
755
|
+
/**
|
|
756
|
+
* Constructs a `GuMapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop priority CSR.
|
|
757
|
+
*/
|
|
758
|
+
static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options?: GuMapLandmarksOptions | null): GuMapSolver;
|
|
759
|
+
static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max2hopPerNode?: number | null, options?: GuMapOptions | null): GuMapSolver;
|
|
760
|
+
/**
|
|
761
|
+
* Executes up to `steps` epochs on `layout` in place.
|
|
762
|
+
*/
|
|
763
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
764
|
+
/**
|
|
765
|
+
* Runs GuMap optimization to completion on `layout` in place.
|
|
766
|
+
*/
|
|
767
|
+
run(layout: Layout2d): string;
|
|
768
|
+
/**
|
|
769
|
+
* Executes one epoch on `layout` in place.
|
|
770
|
+
*/
|
|
771
|
+
step(layout: Layout2d): string;
|
|
772
|
+
/**
|
|
773
|
+
* Returns the resolved UMAP curve parameter `a`.
|
|
774
|
+
*/
|
|
775
|
+
readonly a: number;
|
|
776
|
+
/**
|
|
777
|
+
* Returns the resolved UMAP curve parameters `[a, b]`.
|
|
778
|
+
*/
|
|
779
|
+
readonly ab: Float64Array;
|
|
780
|
+
/**
|
|
781
|
+
* Returns the resolved UMAP curve parameter `b`.
|
|
782
|
+
*/
|
|
783
|
+
readonly b: number;
|
|
784
|
+
/**
|
|
785
|
+
* Returns `true` when the solver has converged or completed.
|
|
786
|
+
*/
|
|
787
|
+
readonly isFinished: boolean;
|
|
788
|
+
/**
|
|
789
|
+
* Returns the number of epochs executed so far.
|
|
790
|
+
*/
|
|
791
|
+
readonly iteration: number;
|
|
792
|
+
/**
|
|
793
|
+
* Returns the number of directed positive attractive edges stored.
|
|
794
|
+
*/
|
|
795
|
+
readonly numEdges: number;
|
|
796
|
+
/**
|
|
797
|
+
* Returns the expected vertex count.
|
|
798
|
+
*/
|
|
799
|
+
readonly numNodes: number;
|
|
800
|
+
/**
|
|
801
|
+
* Returns the solver lifecycle status string.
|
|
802
|
+
*/
|
|
803
|
+
readonly status: string;
|
|
804
|
+
/**
|
|
805
|
+
* Returns the total scheduled epoch count (`nEpochs`).
|
|
806
|
+
*/
|
|
807
|
+
readonly totalIterations: number;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Hybrid 1+2-hop + 2-stage reranked `KnnGraph` and diagnostics returned by `buildHybridAdaptiveKnn`.
|
|
812
|
+
*/
|
|
813
|
+
export class HybridKnnResult {
|
|
814
|
+
private constructor();
|
|
815
|
+
free(): void;
|
|
816
|
+
[Symbol.dispose](): void;
|
|
817
|
+
/**
|
|
818
|
+
* Returns a cloned hybrid adaptive `KnnGraph`.
|
|
819
|
+
*/
|
|
820
|
+
knn(): KnnGraph;
|
|
821
|
+
/**
|
|
822
|
+
* Returns the mean 1-hop degree across all vertices.
|
|
823
|
+
*/
|
|
824
|
+
readonly avgDeg1: number;
|
|
825
|
+
/**
|
|
826
|
+
* Returns the mean 1+2-hop neighborhood size across all vertices.
|
|
827
|
+
*/
|
|
828
|
+
readonly avgDeg2: number;
|
|
829
|
+
/**
|
|
830
|
+
* Returns the mean output row degree in the constructed `KnnGraph`.
|
|
831
|
+
*/
|
|
832
|
+
readonly avgRowK: number;
|
|
833
|
+
/**
|
|
834
|
+
* Returns the number of rows augmented with non-2-hop residual candidates.
|
|
835
|
+
*/
|
|
836
|
+
readonly nFilledResidual: number;
|
|
837
|
+
/**
|
|
838
|
+
* Returns the number of rows composed solely of 1-hop and 2-hop neighbors.
|
|
839
|
+
*/
|
|
840
|
+
readonly nPure2hopRows: number;
|
|
841
|
+
/**
|
|
842
|
+
* Returns the total number of stored neighbor entries.
|
|
843
|
+
*/
|
|
844
|
+
readonly nnz: number;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Cooperative interpolation-based batch Graph UMAP (`ibUMAP`) solver (`f32`).
|
|
849
|
+
*/
|
|
850
|
+
export class IbUmapSolver {
|
|
851
|
+
free(): void;
|
|
852
|
+
[Symbol.dispose](): void;
|
|
853
|
+
/**
|
|
854
|
+
* Constructs an `IbUmapSolver` directly from a fuzzy simplicial set `SparseProbabilities`
|
|
855
|
+
* and optional per-node `degrees` for inverse-degree hub damping.
|
|
856
|
+
*/
|
|
857
|
+
static fromFuzzySet(probs: SparseProbabilities, degreesOrOptions?: Uint32Array | number[] | IbUmapOptions | null, options?: IbUmapOptions | null): IbUmapSolver;
|
|
858
|
+
/**
|
|
859
|
+
* Constructs an `IbUmapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
|
|
860
|
+
*/
|
|
861
|
+
static fromKnn(knn: KnnGraph, options?: IbUmapOptions | null): IbUmapSolver;
|
|
862
|
+
/**
|
|
863
|
+
* Constructs an `IbUmapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop pairs.
|
|
864
|
+
*/
|
|
865
|
+
static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options?: IbUmapOptions | null): IbUmapSolver;
|
|
866
|
+
static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max2hopPerNode?: number | null, options?: IbUmapOptions | null): IbUmapSolver;
|
|
867
|
+
/**
|
|
868
|
+
* Constructs an `IbUmapSolver` from a `CsrGraph` using $O(|E|)$ 1+2-hop pairs and
|
|
869
|
+
* regularized DoG Varadhan landmark ALT distances.
|
|
870
|
+
*/
|
|
871
|
+
constructor(graph: CsrGraph, options?: IbUmapOptions | null);
|
|
872
|
+
/**
|
|
873
|
+
* Executes up to `steps` `ibUMAP` epochs on `layout` in place.
|
|
874
|
+
*/
|
|
875
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
876
|
+
/**
|
|
877
|
+
* Runs `ibUMAP` optimization to completion on `layout` in place.
|
|
878
|
+
*/
|
|
879
|
+
run(layout: Layout2d): string;
|
|
880
|
+
/**
|
|
881
|
+
* Executes one `ibUMAP` epoch on `layout` in place.
|
|
882
|
+
*/
|
|
883
|
+
step(layout: Layout2d): string;
|
|
884
|
+
/**
|
|
885
|
+
* Returns the resolved UMAP curve parameter `a`.
|
|
886
|
+
*/
|
|
887
|
+
readonly a: number;
|
|
888
|
+
/**
|
|
889
|
+
* Returns the resolved UMAP curve parameters `[a, b]`.
|
|
890
|
+
*/
|
|
891
|
+
readonly ab: Float64Array;
|
|
892
|
+
/**
|
|
893
|
+
* Returns the resolved UMAP curve parameter `b`.
|
|
894
|
+
*/
|
|
895
|
+
readonly b: number;
|
|
896
|
+
/**
|
|
897
|
+
* Returns `1.0` (constant unit schedule compatibility getter).
|
|
898
|
+
*/
|
|
899
|
+
readonly currentRho: number;
|
|
900
|
+
/**
|
|
901
|
+
* Returns `true` when the solver has converged or completed.
|
|
902
|
+
*/
|
|
903
|
+
readonly isFinished: boolean;
|
|
904
|
+
/**
|
|
905
|
+
* Returns the number of epochs executed so far.
|
|
906
|
+
*/
|
|
907
|
+
readonly iteration: number;
|
|
908
|
+
/**
|
|
909
|
+
* Returns the number of directed positive attraction edges stored.
|
|
910
|
+
*/
|
|
911
|
+
readonly numEdges: number;
|
|
912
|
+
/**
|
|
913
|
+
* Returns the expected vertex count.
|
|
914
|
+
*/
|
|
915
|
+
readonly numNodes: number;
|
|
916
|
+
/**
|
|
917
|
+
* Returns the solver lifecycle status string.
|
|
918
|
+
*/
|
|
919
|
+
readonly status: string;
|
|
920
|
+
/**
|
|
921
|
+
* Returns the cumulative number of `fft_2d` calls executed across all steps.
|
|
922
|
+
*/
|
|
923
|
+
readonly totalFft2dCalls: number;
|
|
924
|
+
/**
|
|
925
|
+
* Returns the total scheduled epoch count (`nEpochs`).
|
|
926
|
+
*/
|
|
927
|
+
readonly totalIterations: number;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Output of `kmeansPlusPlus`.
|
|
932
|
+
*/
|
|
933
|
+
export class KMeansResult {
|
|
934
|
+
private constructor();
|
|
935
|
+
free(): void;
|
|
936
|
+
[Symbol.dispose](): void;
|
|
937
|
+
/**
|
|
938
|
+
* Returns flat row-major `(k, dims)` cluster centroids (`Float64Array`).
|
|
939
|
+
*/
|
|
940
|
+
centroids(): Float64Array;
|
|
941
|
+
/**
|
|
942
|
+
* Returns canonical cluster labels in `0..k` (`Uint32Array`).
|
|
943
|
+
*/
|
|
944
|
+
labels(): Uint32Array;
|
|
945
|
+
/**
|
|
946
|
+
* Returns `true` if the centroid movement converged within `tol`.
|
|
947
|
+
*/
|
|
948
|
+
readonly converged: boolean;
|
|
949
|
+
/**
|
|
950
|
+
* Returns the feature dimensionality `dims`.
|
|
951
|
+
*/
|
|
952
|
+
readonly dims: number;
|
|
953
|
+
/**
|
|
954
|
+
* Returns the total within-cluster sum of squared Euclidean distances.
|
|
955
|
+
*/
|
|
956
|
+
readonly inertia: number;
|
|
957
|
+
/**
|
|
958
|
+
* Returns the number of Lloyd iterations executed in the winning trial.
|
|
959
|
+
*/
|
|
960
|
+
readonly iterations: number;
|
|
961
|
+
/**
|
|
962
|
+
* Returns the number of clusters `k`.
|
|
963
|
+
*/
|
|
964
|
+
readonly k: number;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* Cooperative Kamada-Kawai (1989) spring layout solver (`f32`).
|
|
969
|
+
*/
|
|
970
|
+
export class KamadaKawaiSolver {
|
|
971
|
+
private constructor();
|
|
972
|
+
free(): void;
|
|
973
|
+
[Symbol.dispose](): void;
|
|
974
|
+
/**
|
|
975
|
+
* Constructs a `KamadaKawaiSolver` from a flat row-major `(numNodes, numNodes)` distance matrix.
|
|
976
|
+
*/
|
|
977
|
+
static fromDistanceMatrix(numNodes: number, distsFlat: Float64Array | number[], epsOrOptions?: number | KamadaKawaiOptions | null, maxInnerIters?: number | null, maxOuterIters?: number | null): KamadaKawaiSolver;
|
|
978
|
+
/**
|
|
979
|
+
* Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
|
|
980
|
+
*/
|
|
981
|
+
static fromGraph(graph: CsrGraph, epsOrOptions?: number | KamadaKawaiOptions | null, maxInnerIters?: number | null, maxOuterIters?: number | null): KamadaKawaiSolver;
|
|
982
|
+
/**
|
|
983
|
+
* Executes up to `steps` outer steps on `layout` in place.
|
|
984
|
+
*/
|
|
985
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
986
|
+
/**
|
|
987
|
+
* Runs Kamada-Kawai optimization to convergence or `maxOuterIters` on `layout` in place.
|
|
988
|
+
*/
|
|
989
|
+
run(layout: Layout2d): string;
|
|
990
|
+
/**
|
|
991
|
+
* Executes one outer node-selection Newton-Raphson step on `layout` in place.
|
|
992
|
+
*/
|
|
993
|
+
step(layout: Layout2d): string;
|
|
994
|
+
/**
|
|
995
|
+
* Returns `true` when the solver has converged or completed.
|
|
996
|
+
*/
|
|
997
|
+
readonly isFinished: boolean;
|
|
998
|
+
/**
|
|
999
|
+
* Returns the number of outer steps executed so far.
|
|
1000
|
+
*/
|
|
1001
|
+
readonly iteration: number;
|
|
1002
|
+
/**
|
|
1003
|
+
* Returns the expected vertex count.
|
|
1004
|
+
*/
|
|
1005
|
+
readonly numNodes: number;
|
|
1006
|
+
/**
|
|
1007
|
+
* Returns the solver lifecycle status string.
|
|
1008
|
+
*/
|
|
1009
|
+
readonly status: string;
|
|
1010
|
+
/**
|
|
1011
|
+
* Returns the outer step cap.
|
|
1012
|
+
*/
|
|
1013
|
+
readonly totalIterations: number;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Variable-length Compressed Sparse Row (CSR) $k$-nearest-neighbor graph in `f64`.
|
|
1018
|
+
*/
|
|
1019
|
+
export class KnnGraph {
|
|
1020
|
+
private constructor();
|
|
1021
|
+
free(): void;
|
|
1022
|
+
[Symbol.dispose](): void;
|
|
1023
|
+
/**
|
|
1024
|
+
* Returns a copy of the flat `Float64Array` distances (`length === nnz`).
|
|
1025
|
+
*/
|
|
1026
|
+
distances(): Float64Array;
|
|
1027
|
+
/**
|
|
1028
|
+
* Constructs a validated `KnnGraph` from CSR `numNodes`, `indptr`, `indices`, and `distances`.
|
|
1029
|
+
*/
|
|
1030
|
+
static fromCsr(numNodes: number, indptr: Uint32Array | number[], indices: Uint32Array | number[], distances: Float64Array | number[]): KnnGraph;
|
|
1031
|
+
/**
|
|
1032
|
+
* Returns a copy of the flat `Uint32Array` neighbor indices (`length === nnz`).
|
|
1033
|
+
*/
|
|
1034
|
+
indices(): Uint32Array;
|
|
1035
|
+
/**
|
|
1036
|
+
* Returns a copy of the CSR `indptr` row-offset array (`length === numNodes + 1`).
|
|
1037
|
+
*/
|
|
1038
|
+
indptr(): Uint32Array;
|
|
1039
|
+
/**
|
|
1040
|
+
* Returns the total number of stored neighbor entries.
|
|
1041
|
+
*/
|
|
1042
|
+
readonly nnz: number;
|
|
1043
|
+
/**
|
|
1044
|
+
* Returns the number of vertices in the $k$-NN graph.
|
|
1045
|
+
*/
|
|
1046
|
+
readonly numNodes: number;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Largest connected component result returned by `CsrGraph.largestConnectedComponent()`.
|
|
1051
|
+
*/
|
|
1052
|
+
export class LargestConnectedComponentResult {
|
|
1053
|
+
private constructor();
|
|
1054
|
+
free(): void;
|
|
1055
|
+
[Symbol.dispose](): void;
|
|
1056
|
+
/**
|
|
1057
|
+
* Returns a cloned handle to the induced `CsrGraph` of the largest connected component.
|
|
1058
|
+
*/
|
|
1059
|
+
graph(): CsrGraph;
|
|
1060
|
+
/**
|
|
1061
|
+
* Alias for `originalNodeIds()`.
|
|
1062
|
+
*/
|
|
1063
|
+
nodeIds(): Uint32Array;
|
|
1064
|
+
/**
|
|
1065
|
+
* Returns the sorted original vertex IDs (`Uint32Array`) corresponding to compact vertices `0..k`.
|
|
1066
|
+
*/
|
|
1067
|
+
originalNodeIds(): Uint32Array;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Contiguous interleaved `[x0, y0, x1, y1, ...]` 2D node coordinate buffer (`f32`)
|
|
1072
|
+
* suitable for zero-copy `Float32Array` linear-memory views via `coordsView()`.
|
|
1073
|
+
*/
|
|
1074
|
+
export class Layout2d {
|
|
1075
|
+
private constructor();
|
|
1076
|
+
free(): void;
|
|
1077
|
+
[Symbol.dispose](): void;
|
|
1078
|
+
/**
|
|
1079
|
+
* Returns the total scalar length of the interleaved buffer (`2 * len()`).
|
|
1080
|
+
*/
|
|
1081
|
+
coordsLen(): number;
|
|
1082
|
+
/**
|
|
1083
|
+
* Returns the byte offset of the interleaved `f32` buffer in WebAssembly linear memory.
|
|
1084
|
+
*/
|
|
1085
|
+
coordsPtr(): number;
|
|
1086
|
+
/**
|
|
1087
|
+
* Returns a zero-copy `Float32Array` view over the interleaved `[x0, y0, ...]`
|
|
1088
|
+
* coordinates in WebAssembly linear memory, automatically refreshing the view
|
|
1089
|
+
* whenever `memory.grow` detaches the underlying `ArrayBuffer`.
|
|
1090
|
+
*/
|
|
1091
|
+
coordsView(): Float32Array;
|
|
1092
|
+
/**
|
|
1093
|
+
* Returns a freshly allocated `Float32Array` copy of `[x0, y0, ...]` coordinates.
|
|
1094
|
+
*/
|
|
1095
|
+
copyCoords(): Float32Array;
|
|
1096
|
+
/**
|
|
1097
|
+
* Creates a `Layout2d` from an even-length interleaved `[x0, y0, ...]` array.
|
|
1098
|
+
*/
|
|
1099
|
+
static fromCoords(coords: Float32Array | number[]): Layout2d;
|
|
1100
|
+
/**
|
|
1101
|
+
* Creates a deterministically initialized `Layout2d` for `n` vertices using `seed` (default `42`).
|
|
1102
|
+
*/
|
|
1103
|
+
static init(n: number, seed?: number | null): Layout2d;
|
|
1104
|
+
/**
|
|
1105
|
+
* Returns `true` if every coordinate in the buffer is finite (`!NaN && !Inf`).
|
|
1106
|
+
*/
|
|
1107
|
+
isAllFinite(): boolean;
|
|
1108
|
+
/**
|
|
1109
|
+
* Returns `true` if the layout contains zero vertices.
|
|
1110
|
+
*/
|
|
1111
|
+
isEmpty(): boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* Returns the number of vertices in the layout.
|
|
1114
|
+
*/
|
|
1115
|
+
len(): number;
|
|
1116
|
+
/**
|
|
1117
|
+
* Centers coordinates at zero mean and scales isotropically to `targetStd` (default `1.0`).
|
|
1118
|
+
*/
|
|
1119
|
+
normalizeStd(target_std?: number | null): void;
|
|
1120
|
+
/**
|
|
1121
|
+
* Sets the `x` coordinate of vertex `index`.
|
|
1122
|
+
*/
|
|
1123
|
+
setX(index: number, value: number): void;
|
|
1124
|
+
/**
|
|
1125
|
+
* Sets the `y` coordinate of vertex `index`.
|
|
1126
|
+
*/
|
|
1127
|
+
setY(index: number, value: number): void;
|
|
1128
|
+
/**
|
|
1129
|
+
* Returns the `x` coordinate of vertex `index`.
|
|
1130
|
+
*/
|
|
1131
|
+
x(index: number): number;
|
|
1132
|
+
/**
|
|
1133
|
+
* Returns the `y` coordinate of vertex `index`.
|
|
1134
|
+
*/
|
|
1135
|
+
y(index: number): number;
|
|
1136
|
+
/**
|
|
1137
|
+
* Creates a zero-initialized `Layout2d` for `n` vertices.
|
|
1138
|
+
*/
|
|
1139
|
+
static zeros(n: number): Layout2d;
|
|
1140
|
+
/**
|
|
1141
|
+
* Returns the number of vertices in the layout.
|
|
1142
|
+
*/
|
|
1143
|
+
readonly numNodes: number;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
/**
|
|
1147
|
+
* Contiguous row-major `(numNodes * dim)` $d$-dimensional node coordinate buffer (`f32`)
|
|
1148
|
+
* suitable for zero-copy `Float32Array` linear-memory views via `coordsView()`.
|
|
1149
|
+
*/
|
|
1150
|
+
export class LayoutNd {
|
|
1151
|
+
private constructor();
|
|
1152
|
+
free(): void;
|
|
1153
|
+
[Symbol.dispose](): void;
|
|
1154
|
+
/**
|
|
1155
|
+
* Returns the total scalar length of the row-major buffer (`numNodes * dim`).
|
|
1156
|
+
*/
|
|
1157
|
+
coordsLen(): number;
|
|
1158
|
+
/**
|
|
1159
|
+
* Returns the byte offset of the row-major `f32` buffer in WebAssembly linear memory.
|
|
1160
|
+
*/
|
|
1161
|
+
coordsPtr(): number;
|
|
1162
|
+
/**
|
|
1163
|
+
* Returns a zero-copy `Float32Array` view over the interleaved `[c0, c1, ...]`
|
|
1164
|
+
* coordinates in WebAssembly linear memory, automatically refreshing the view
|
|
1165
|
+
* whenever `memory.grow` detaches the underlying `ArrayBuffer`.
|
|
1166
|
+
*/
|
|
1167
|
+
coordsView(): Float32Array;
|
|
1168
|
+
/**
|
|
1169
|
+
* Returns a freshly allocated `Float32Array` copy of the row-major coordinate buffer.
|
|
1170
|
+
*/
|
|
1171
|
+
copyCoords(): Float32Array;
|
|
1172
|
+
/**
|
|
1173
|
+
* Creates a `LayoutNd` from flat row-major coordinates of length `n * dim`.
|
|
1174
|
+
*/
|
|
1175
|
+
static fromCoords(n: number, dim: number, coords: Float32Array | number[]): LayoutNd;
|
|
1176
|
+
/**
|
|
1177
|
+
* Returns `true` if every coordinate in the buffer is finite (`!NaN && !Inf`).
|
|
1178
|
+
*/
|
|
1179
|
+
isAllFinite(): boolean;
|
|
1180
|
+
/**
|
|
1181
|
+
* Returns `true` if the layout contains zero vertices.
|
|
1182
|
+
*/
|
|
1183
|
+
isEmpty(): boolean;
|
|
1184
|
+
/**
|
|
1185
|
+
* Returns the number of vertices in the layout.
|
|
1186
|
+
*/
|
|
1187
|
+
len(): number;
|
|
1188
|
+
/**
|
|
1189
|
+
* Creates a zero-initialized `dim`-dimensional layout for `n` vertices.
|
|
1190
|
+
*/
|
|
1191
|
+
static zeros(n: number, dim: number): LayoutNd;
|
|
1192
|
+
/**
|
|
1193
|
+
* Returns the dimensionality of the embedding space.
|
|
1194
|
+
*/
|
|
1195
|
+
readonly dim: number;
|
|
1196
|
+
/**
|
|
1197
|
+
* Returns the number of vertices in the layout.
|
|
1198
|
+
*/
|
|
1199
|
+
readonly numNodes: number;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Output of `louvainCommunities`.
|
|
1204
|
+
*/
|
|
1205
|
+
export class LouvainResult {
|
|
1206
|
+
private constructor();
|
|
1207
|
+
free(): void;
|
|
1208
|
+
[Symbol.dispose](): void;
|
|
1209
|
+
/**
|
|
1210
|
+
* Returns canonical community labels in `0..numCommunities` (`Uint32Array`).
|
|
1211
|
+
*/
|
|
1212
|
+
labels(): Uint32Array;
|
|
1213
|
+
/**
|
|
1214
|
+
* Returns the resolution-weighted modularity $Q_\gamma$.
|
|
1215
|
+
*/
|
|
1216
|
+
readonly modularity: number;
|
|
1217
|
+
/**
|
|
1218
|
+
* Returns the number of distinct non-empty communities detected.
|
|
1219
|
+
*/
|
|
1220
|
+
readonly numCommunities: number;
|
|
1221
|
+
/**
|
|
1222
|
+
* Returns the number of multi-level aggregation passes committed.
|
|
1223
|
+
*/
|
|
1224
|
+
readonly passes: number;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Non-Euclidean 2D node layout (`f32`) constrained to `"hyperbolic"`, `"spherical"`, or `"torus"`.
|
|
1229
|
+
*/
|
|
1230
|
+
export class ManifoldLayout2d {
|
|
1231
|
+
private constructor();
|
|
1232
|
+
free(): void;
|
|
1233
|
+
[Symbol.dispose](): void;
|
|
1234
|
+
/**
|
|
1235
|
+
* Advances vertex `i` along the geodesic defined by tangent vector `(vx, vy)`.
|
|
1236
|
+
*/
|
|
1237
|
+
applyTangentStep(i: number, vx: number, vy: number): void;
|
|
1238
|
+
/**
|
|
1239
|
+
* Returns a flat interleaved `[x0, y0, ...]` `Float32Array` copy of all coordinates.
|
|
1240
|
+
*/
|
|
1241
|
+
coords(): Float32Array;
|
|
1242
|
+
/**
|
|
1243
|
+
* Creates a `ManifoldLayout2d` from flat interleaved `[x0, y0, ...]` coordinates, projecting onto `kind`.
|
|
1244
|
+
*/
|
|
1245
|
+
static fromCoords(kind: string, coords: Float32Array | number[]): ManifoldLayout2d;
|
|
1246
|
+
/**
|
|
1247
|
+
* Creates a `ManifoldLayout2d` from a Euclidean `Layout2d`, projecting points onto `kind`.
|
|
1248
|
+
*/
|
|
1249
|
+
static fromLayout(kind: string, layout: Layout2d): ManifoldLayout2d;
|
|
1250
|
+
/**
|
|
1251
|
+
* Computes the exact geodesic distance between vertices `i` and `j`.
|
|
1252
|
+
*/
|
|
1253
|
+
geodesicDistance(i: number, j: number): number;
|
|
1254
|
+
/**
|
|
1255
|
+
* Creates a zero-initialized Poincaré disk `ManifoldLayout2d` for `n` vertices.
|
|
1256
|
+
*/
|
|
1257
|
+
static hyperbolicPoincare(n: number): ManifoldLayout2d;
|
|
1258
|
+
/**
|
|
1259
|
+
* Returns `true` if every coordinate in the manifold layout is finite.
|
|
1260
|
+
*/
|
|
1261
|
+
isAllFinite(): boolean;
|
|
1262
|
+
/**
|
|
1263
|
+
* Returns `true` if the manifold layout contains zero vertices.
|
|
1264
|
+
*/
|
|
1265
|
+
isEmpty(): boolean;
|
|
1266
|
+
/**
|
|
1267
|
+
* Returns the number of vertices in the manifold layout.
|
|
1268
|
+
*/
|
|
1269
|
+
len(): number;
|
|
1270
|
+
/**
|
|
1271
|
+
* Re-projects all coordinates onto the manifold's canonical domain after checking finiteness.
|
|
1272
|
+
*/
|
|
1273
|
+
projectAll(): void;
|
|
1274
|
+
/**
|
|
1275
|
+
* Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
|
|
1276
|
+
*/
|
|
1277
|
+
setPoint(index: number, x: number, y: number): void;
|
|
1278
|
+
/**
|
|
1279
|
+
* Creates a zero-initialized spherical `ManifoldLayout2d` for `n` vertices.
|
|
1280
|
+
*/
|
|
1281
|
+
static spherical(n: number): ManifoldLayout2d;
|
|
1282
|
+
/**
|
|
1283
|
+
* Computes the Riemannian logarithmic map `[vx, vy]` at vertex `i` pointing toward `j`.
|
|
1284
|
+
*/
|
|
1285
|
+
tangentDelta(i: number, j: number): Float32Array;
|
|
1286
|
+
/**
|
|
1287
|
+
* Converts this manifold layout to a `Layout2d` copy.
|
|
1288
|
+
*/
|
|
1289
|
+
toLayout(): Layout2d;
|
|
1290
|
+
/**
|
|
1291
|
+
* Creates a zero-initialized flat unit torus `ManifoldLayout2d` for `n` vertices.
|
|
1292
|
+
*/
|
|
1293
|
+
static torus2d(n: number): ManifoldLayout2d;
|
|
1294
|
+
/**
|
|
1295
|
+
* Returns the first coordinate (`x` or `lon`) of vertex `index`.
|
|
1296
|
+
*/
|
|
1297
|
+
x(index: number): number;
|
|
1298
|
+
/**
|
|
1299
|
+
* Returns the second coordinate (`y` or `colat`) of vertex `index`.
|
|
1300
|
+
*/
|
|
1301
|
+
y(index: number): number;
|
|
1302
|
+
/**
|
|
1303
|
+
* Creates a zero-initialized `ManifoldLayout2d` for `n` vertices on geometry `kind`.
|
|
1304
|
+
*/
|
|
1305
|
+
static zeros(kind: string, n: number): ManifoldLayout2d;
|
|
1306
|
+
/**
|
|
1307
|
+
* Returns the canonical manifold kind string: `"hyperbolic"`, `"spherical"`, or `"torus"`.
|
|
1308
|
+
*/
|
|
1309
|
+
readonly kind: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* Alias for `kind` matching `ManifoldLayout2d.manifold`.
|
|
1312
|
+
*/
|
|
1313
|
+
readonly manifold: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* Returns the number of vertices in the manifold layout.
|
|
1316
|
+
*/
|
|
1317
|
+
readonly numNodes: number;
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Canonical target identifiers and normalized aliases accepted by `evaluateMetrics`.
|
|
1322
|
+
*/
|
|
1323
|
+
export type MetricTarget =
|
|
1324
|
+
| "scaleNormalizedStress"
|
|
1325
|
+
| "sampledScaleNormalizedStress"
|
|
1326
|
+
| "crossingNumber"
|
|
1327
|
+
| "crossingAngle"
|
|
1328
|
+
| "sampledCrossingNumber"
|
|
1329
|
+
| "neighborhoodPreservation1Hop"
|
|
1330
|
+
| "neighborhoodPreservation2Hop"
|
|
1331
|
+
| "sampledNp1"
|
|
1332
|
+
| "sampledNp2"
|
|
1333
|
+
| "sampled_np1"
|
|
1334
|
+
| "sampled_np2"
|
|
1335
|
+
| "sampledNeighborhoodPreservation1Hop"
|
|
1336
|
+
| "sampledNeighborhoodPreservation2Hop"
|
|
1337
|
+
| "gabrielGraphProperty"
|
|
1338
|
+
| "nodeResolution"
|
|
1339
|
+
| "relativeNeighborhoodPreservation"
|
|
1340
|
+
| "gabrielGraphPreservation"
|
|
1341
|
+
| "aspectRatio"
|
|
1342
|
+
| "angularResolution"
|
|
1343
|
+
| "idealEdgeLengths"
|
|
1344
|
+
| "sns"
|
|
1345
|
+
| "sampled_sns"
|
|
1346
|
+
| "np1"
|
|
1347
|
+
| "np2"
|
|
1348
|
+
| "drng"
|
|
1349
|
+
| "dgg";
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Plain JavaScript record returned by `MetricReport.toRecord()`.
|
|
1353
|
+
*/
|
|
1354
|
+
export interface MetricReportRecord {
|
|
1355
|
+
scaleNormalizedStress?: number;
|
|
1356
|
+
sampledScaleNormalizedStress?: number;
|
|
1357
|
+
crossingNumber?: number;
|
|
1358
|
+
crossingAngle?: number;
|
|
1359
|
+
sampledCrossingNumber?: number;
|
|
1360
|
+
neighborhoodPreservation1Hop?: number;
|
|
1361
|
+
neighborhoodPreservation2Hop?: number;
|
|
1362
|
+
sampledNp1?: number;
|
|
1363
|
+
sampledNp2?: number;
|
|
1364
|
+
gabrielGraphProperty?: number;
|
|
1365
|
+
nodeResolution?: number;
|
|
1366
|
+
relativeNeighborhoodPreservation?: number;
|
|
1367
|
+
gabrielGraphPreservation?: number;
|
|
1368
|
+
aspectRatio?: number;
|
|
1369
|
+
angularResolution?: number;
|
|
1370
|
+
idealEdgeLengths?: number;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Selective quality metric report returned by `evaluateMetrics`.
|
|
1375
|
+
*
|
|
1376
|
+
* Unrequested metrics return `undefined` without requiring `serde` in minimal builds.
|
|
1377
|
+
*/
|
|
1378
|
+
export class MetricReport {
|
|
1379
|
+
private constructor();
|
|
1380
|
+
free(): void;
|
|
1381
|
+
[Symbol.dispose](): void;
|
|
1382
|
+
/**
|
|
1383
|
+
* Converts requested metrics into a plain JavaScript object without requiring `serde`.
|
|
1384
|
+
*/
|
|
1385
|
+
toRecord(): MetricReportRecord;
|
|
1386
|
+
/**
|
|
1387
|
+
* Returns exponential angular-resolution penalty sum, or `undefined` if not requested.
|
|
1388
|
+
*/
|
|
1389
|
+
readonly angularResolution: number | undefined;
|
|
1390
|
+
/**
|
|
1391
|
+
* Returns PCA aspect ratio, or `undefined` if not requested.
|
|
1392
|
+
*/
|
|
1393
|
+
readonly aspectRatio: number | undefined;
|
|
1394
|
+
/**
|
|
1395
|
+
* Returns exact sweep-line edge crossing-angle penalty sum, or `undefined` if not requested.
|
|
1396
|
+
*/
|
|
1397
|
+
readonly crossingAngle: number | undefined;
|
|
1398
|
+
/**
|
|
1399
|
+
* Returns exact sweep-line edge crossing count, or `undefined` if not requested.
|
|
1400
|
+
*/
|
|
1401
|
+
readonly crossingNumber: number | undefined;
|
|
1402
|
+
/**
|
|
1403
|
+
* Returns shape-based Gabriel Graph preservation (`dGG`), or `undefined` if not requested.
|
|
1404
|
+
*/
|
|
1405
|
+
readonly gabrielGraphPreservation: number | undefined;
|
|
1406
|
+
/**
|
|
1407
|
+
* Returns Gabriel graph property violation sum, or `undefined` if not requested.
|
|
1408
|
+
*/
|
|
1409
|
+
readonly gabrielGraphProperty: number | undefined;
|
|
1410
|
+
/**
|
|
1411
|
+
* Returns ideal edge-length preservation error sum, or `undefined` if not requested.
|
|
1412
|
+
*/
|
|
1413
|
+
readonly idealEdgeLengths: number | undefined;
|
|
1414
|
+
/**
|
|
1415
|
+
* Returns 1-hop neighborhood preservation (`NP1`), or `undefined` if not requested.
|
|
1416
|
+
*/
|
|
1417
|
+
readonly neighborhoodPreservation1Hop: number | undefined;
|
|
1418
|
+
/**
|
|
1419
|
+
* Returns 2-hop neighborhood preservation (`NP2`), or `undefined` if not requested.
|
|
1420
|
+
*/
|
|
1421
|
+
readonly neighborhoodPreservation2Hop: number | undefined;
|
|
1422
|
+
/**
|
|
1423
|
+
* Returns one-sided hinge node-resolution violation sum, or `undefined` if not requested.
|
|
1424
|
+
*/
|
|
1425
|
+
readonly nodeResolution: number | undefined;
|
|
1426
|
+
/**
|
|
1427
|
+
* Returns shape-based Relative Neighborhood Graph preservation (`dRNG`), or `undefined` if not requested.
|
|
1428
|
+
*/
|
|
1429
|
+
readonly relativeNeighborhoodPreservation: number | undefined;
|
|
1430
|
+
/**
|
|
1431
|
+
* Returns deterministic sampled crossing estimate, or `undefined` if not requested.
|
|
1432
|
+
*/
|
|
1433
|
+
readonly sampledCrossingNumber: number | undefined;
|
|
1434
|
+
/**
|
|
1435
|
+
* Returns deterministic vertex-sampled 1-hop neighborhood preservation (`NP1`), or `undefined` if not requested.
|
|
1436
|
+
*/
|
|
1437
|
+
readonly sampledNp1: number | undefined;
|
|
1438
|
+
/**
|
|
1439
|
+
* Returns deterministic vertex-sampled 2-hop neighborhood preservation (`NP2`), or `undefined` if not requested.
|
|
1440
|
+
*/
|
|
1441
|
+
readonly sampledNp2: number | undefined;
|
|
1442
|
+
/**
|
|
1443
|
+
* Returns pivot-sampled Scale-Normalized Stress (`SNS`), or `undefined` if not requested.
|
|
1444
|
+
*/
|
|
1445
|
+
readonly sampledScaleNormalizedStress: number | undefined;
|
|
1446
|
+
/**
|
|
1447
|
+
* Returns closed-form Scale-Normalized Stress (`SNS`), or `undefined` if not requested.
|
|
1448
|
+
*/
|
|
1449
|
+
readonly scaleNormalizedStress: number | undefined;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
|
|
1454
|
+
*/
|
|
1455
|
+
export class PrismDistortion {
|
|
1456
|
+
private constructor();
|
|
1457
|
+
free(): void;
|
|
1458
|
+
[Symbol.dispose](): void;
|
|
1459
|
+
/**
|
|
1460
|
+
* Returns the scale-, translation-, and rotation-invariant Procrustes disparity (`sigma_disp`)
|
|
1461
|
+
* lying in `[0.0, 1.0]`.
|
|
1462
|
+
*/
|
|
1463
|
+
readonly sigmaDisp: number;
|
|
1464
|
+
/**
|
|
1465
|
+
* Returns the proximity edge-length ratio coefficient of variation (`sigma_dist`).
|
|
1466
|
+
*/
|
|
1467
|
+
readonly sigmaDist: number;
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Cooperative Gansner-Hu (2010) PRISM proximity-stress overlap removal solver (`f32`).
|
|
1472
|
+
*
|
|
1473
|
+
* Uses `Delaunay2d` when compiled with `delaunay` and falls back automatically to
|
|
1474
|
+
* `StaticKdTree` $k$-NN proximity + `RectangleOverlapSweep` under `--no-default-features`.
|
|
1475
|
+
*/
|
|
1476
|
+
export class PrismOverlapRemoval {
|
|
1477
|
+
free(): void;
|
|
1478
|
+
[Symbol.dispose](): void;
|
|
1479
|
+
/**
|
|
1480
|
+
* Constructs a `PrismOverlapRemoval` solver for circular/square nodes with equal
|
|
1481
|
+
* half-width and half-height given by `radii`.
|
|
1482
|
+
*/
|
|
1483
|
+
static fromRadii(radii: Float32Array | number[], options?: PrismOptions | null): PrismOverlapRemoval;
|
|
1484
|
+
/**
|
|
1485
|
+
* Constructs a `PrismOverlapRemoval` solver from per-node `halfWidths` and `halfHeights`.
|
|
1486
|
+
*/
|
|
1487
|
+
constructor(halfWidths: Float32Array | number[], halfHeights: Float32Array | number[], options?: PrismOptions | null);
|
|
1488
|
+
/**
|
|
1489
|
+
* Executes up to `steps` PRISM rounds on `layout` in place.
|
|
1490
|
+
*/
|
|
1491
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
1492
|
+
/**
|
|
1493
|
+
* Runs PRISM overlap removal until `0` overlaps remain or `maxIterations` is reached.
|
|
1494
|
+
*/
|
|
1495
|
+
run(layout: Layout2d): string;
|
|
1496
|
+
/**
|
|
1497
|
+
* Executes one PRISM proximity-stress round on `layout` in place.
|
|
1498
|
+
*/
|
|
1499
|
+
step(layout: Layout2d): string;
|
|
1500
|
+
/**
|
|
1501
|
+
* Returns `true` when the solver has converged (`0` overlaps) or completed.
|
|
1502
|
+
*/
|
|
1503
|
+
readonly isFinished: boolean;
|
|
1504
|
+
/**
|
|
1505
|
+
* Returns the number of PRISM rounds executed so far.
|
|
1506
|
+
*/
|
|
1507
|
+
readonly iteration: number;
|
|
1508
|
+
/**
|
|
1509
|
+
* Returns the number of overlapping rectangle pairs remaining after the most recent step.
|
|
1510
|
+
*/
|
|
1511
|
+
readonly lastOverlapCount: number;
|
|
1512
|
+
/**
|
|
1513
|
+
* Returns the expected vertex count.
|
|
1514
|
+
*/
|
|
1515
|
+
readonly numNodes: number;
|
|
1516
|
+
/**
|
|
1517
|
+
* Returns the solver lifecycle status string.
|
|
1518
|
+
*/
|
|
1519
|
+
readonly status: string;
|
|
1520
|
+
/**
|
|
1521
|
+
* Returns the maximum scheduled PRISM rounds (`maxIterations`).
|
|
1522
|
+
*/
|
|
1523
|
+
readonly totalIterations: number;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* One-dimensional separation constraint enforcing `coord[left] + gap <= coord[right]`.
|
|
1528
|
+
*/
|
|
1529
|
+
export class SeparationConstraint {
|
|
1530
|
+
free(): void;
|
|
1531
|
+
[Symbol.dispose](): void;
|
|
1532
|
+
/**
|
|
1533
|
+
* Creates a new `SeparationConstraint(left, right, gap)`.
|
|
1534
|
+
*/
|
|
1535
|
+
constructor(left: number, right: number, gap: number);
|
|
1536
|
+
/**
|
|
1537
|
+
* Returns the required minimum separation gap.
|
|
1538
|
+
*/
|
|
1539
|
+
readonly gap: number;
|
|
1540
|
+
/**
|
|
1541
|
+
* Returns the constrained left vertex index.
|
|
1542
|
+
*/
|
|
1543
|
+
readonly left: number;
|
|
1544
|
+
/**
|
|
1545
|
+
* Returns the constrained right vertex index.
|
|
1546
|
+
*/
|
|
1547
|
+
readonly right: number;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* Cooperative SoA `u32` SGD solver supporting 3-tier sparse barrier, streaming negatives,
|
|
1552
|
+
* SNAP-tFDP, PaCMAP-Graph, `(SGD)^2`, Euclidean `Layout2d` (`f32`), and non-Euclidean `ManifoldLayout2d` (`f32`).
|
|
1553
|
+
*/
|
|
1554
|
+
export class SgdSolver {
|
|
1555
|
+
private constructor();
|
|
1556
|
+
free(): void;
|
|
1557
|
+
[Symbol.dispose](): void;
|
|
1558
|
+
/**
|
|
1559
|
+
* Returns regularized DoG Varadhan landmark diagnostics `DogStats` when constructed via
|
|
1560
|
+
* `sparseBarrierDog`, or `undefined` otherwise.
|
|
1561
|
+
*/
|
|
1562
|
+
dogStats(): DogStats | undefined;
|
|
1563
|
+
/**
|
|
1564
|
+
* Constructs an `SgdSolver` combining two-sided spring pairs and one-sided hinge pairs.
|
|
1565
|
+
*/
|
|
1566
|
+
static fromPairsWithHinges(numNodes: number, springSrc: Uint32Array | number[], springTgt: Uint32Array | number[], springDij: Float32Array | number[], springDji: Float32Array | number[], springWij: Float32Array | number[], springWji: Float32Array | number[], hingeSrc: Uint32Array | number[], hingeTgt: Uint32Array | number[], hingeDij: Float32Array | number[], hingeDji: Float32Array | number[], hingeWij: Float32Array | number[], hingeWji: Float32Array | number[], tMaxOrOptions?: number | SgdScheduleOptions | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null): SgdSolver;
|
|
1567
|
+
/**
|
|
1568
|
+
* Constructs an `SgdSolver` from explicit flat SoA two-sided spring arrays.
|
|
1569
|
+
*
|
|
1570
|
+
* When `dji` is omitted, defaults to `dij`. When `wij`/`wji` are omitted, defaults to $1 / d^2$.
|
|
1571
|
+
*/
|
|
1572
|
+
static fromPairs(numNodes: number, src: Uint32Array | number[], tgt: Uint32Array | number[], dij: Float32Array | number[], dji?: Float32Array | number[] | null, wij?: Float32Array | number[] | null, wji?: Float32Array | number[] | null, tMaxOrOptions?: number | SgdScheduleOptions | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null): SgdSolver;
|
|
1573
|
+
/**
|
|
1574
|
+
* Constructs a full all-pairs shortest-path SGD solver from `graph`.
|
|
1575
|
+
*/
|
|
1576
|
+
static full(graph: CsrGraph, tMaxOrOptions?: number | SgdScheduleOptions | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null): SgdSolver;
|
|
1577
|
+
/**
|
|
1578
|
+
* Constructs an Omega SGD solver from a flat row-major `(numNodes, dims)` spectral embedding.
|
|
1579
|
+
*/
|
|
1580
|
+
static omega(graph: CsrGraph, embedding: Float64Array | number[], dims: number, kOrOptions?: number | OmegaSgdOptions | null, minDist?: number | null, tMaxOrOptions?: number | SgdScheduleOptions | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null): SgdSolver;
|
|
1581
|
+
/**
|
|
1582
|
+
* Constructs a 3-tier `PaCMAP-Graph` (`NB` / `MN` / `FP`) Adam layout solver.
|
|
1583
|
+
*/
|
|
1584
|
+
static pacmapGraph(graph: CsrGraph, options?: PacmapGraphOptions | null): SgdSolver;
|
|
1585
|
+
/**
|
|
1586
|
+
* Constructs a random-pair sparse SGD solver combining 1-hop edges with sampled random pairs.
|
|
1587
|
+
*/
|
|
1588
|
+
static randomPair(graph: CsrGraph, pairsPerNodeOrOptions?: number | RandomPairSgdOptions | null, tMaxOrOptions?: number | SgdScheduleOptions | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null): SgdSolver;
|
|
1589
|
+
/**
|
|
1590
|
+
* Runs non-Euclidean SGD optimization to completion on a `ManifoldLayout2d` in place.
|
|
1591
|
+
*/
|
|
1592
|
+
runManifold(layout: ManifoldLayout2d): string;
|
|
1593
|
+
/**
|
|
1594
|
+
* Executes up to `steps` non-Euclidean SGD iterations on a `ManifoldLayout2d` in place.
|
|
1595
|
+
*/
|
|
1596
|
+
runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
|
|
1597
|
+
/**
|
|
1598
|
+
* Executes up to `steps` Euclidean SGD iterations on `layout` in place.
|
|
1599
|
+
*/
|
|
1600
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
1601
|
+
/**
|
|
1602
|
+
* Runs Euclidean SGD optimization to completion on `layout` in place.
|
|
1603
|
+
*/
|
|
1604
|
+
run(layout: Layout2d): string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Constructs a doubly-stochastic mini-batch diagonal-preconditioned `(SGD)^2` solver.
|
|
1607
|
+
*/
|
|
1608
|
+
static sgd2(graph: CsrGraph, options?: Sgd2Options | null): SgdSolver;
|
|
1609
|
+
/**
|
|
1610
|
+
* Constructs a compact-memory edge-incident negative sampling `SNAP-tFDP` solver.
|
|
1611
|
+
*/
|
|
1612
|
+
static snapTFdp(graph: CsrGraph, options?: SnapTFdpOptions | null): SgdSolver;
|
|
1613
|
+
/**
|
|
1614
|
+
* Computes regularized Chebyshev DoG Varadhan landmarks and constructs a 3-tier Sparse Barrier SGD solver.
|
|
1615
|
+
*/
|
|
1616
|
+
static sparseBarrierDog(graph: CsrGraph, max2hopOrOptions?: number | SparseBarrierDogOptions | null, hingeRepulsion?: boolean | null, deltaRel?: number | null, barrierSym?: BarrierSymmetry | string | null, omega1?: number | null, omega2?: number | null, gammaNon2?: number | null, htRepulsion?: boolean | null, minRatio?: number | null, epsDist?: number | null, negPerNode?: number | null, numPivots?: number | null, corePivots?: boolean | null, tMax?: number | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null, degree?: number | null, numLandmarks?: number | null, degreeNormalize?: boolean | null, pExp?: number | null, epsPsd?: number | null, tCoarse?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, betaFloor?: number | null, minDegree?: number | null, jlDim?: number | null): SgdSolver;
|
|
1617
|
+
/**
|
|
1618
|
+
* Constructs a Track B 3-tier Sparse Barrier SGD solver from precomputed `DogVaradhanLandmarks`.
|
|
1619
|
+
*/
|
|
1620
|
+
static sparseBarrierFromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, pivots?: Uint32Array | number[] | null, max2hopOrOptions?: number | SparseBarrierOptions | null, hingeRepulsion?: boolean | null, deltaRel?: number | null, barrierSym?: BarrierSymmetry | string | null, omega1?: number | null, omega2?: number | null, gammaNon2?: number | null, htRepulsion?: boolean | null, minRatio?: number | null, epsDist?: number | null, negPerNode?: number | null, numPivots?: number | null, corePivots?: boolean | null, tMax?: number | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null): SgdSolver;
|
|
1621
|
+
/**
|
|
1622
|
+
* Returns `SparseBarrierStats` when constructed via `sparseBarrierFromLandmarks` or
|
|
1623
|
+
* `sparseBarrierDog`, or `undefined` otherwise.
|
|
1624
|
+
*/
|
|
1625
|
+
stats(): SparseBarrierStats | undefined;
|
|
1626
|
+
/**
|
|
1627
|
+
* Executes one non-Euclidean SGD iteration on a `ManifoldLayout2d` in place.
|
|
1628
|
+
*/
|
|
1629
|
+
stepManifold(layout: ManifoldLayout2d): string;
|
|
1630
|
+
/**
|
|
1631
|
+
* Executes one Euclidean SGD iteration on `layout` in place.
|
|
1632
|
+
*/
|
|
1633
|
+
step(layout: Layout2d): string;
|
|
1634
|
+
/**
|
|
1635
|
+
* Constructs a minimal-RAM SGD solver storing 1-hop springs and streaming non-edge negatives.
|
|
1636
|
+
*/
|
|
1637
|
+
static streamingNegatives(graph: CsrGraph, negativesOrOptions?: number | StreamingNegativeOptions | null, targetDistance?: number | null, weight?: number | null, hingeOnly?: boolean | null, tMax?: number | null, eps?: number | null, kind?: SgdScheduleKind | string | null, stepScale?: number | null, seed?: number | null): SgdSolver;
|
|
1638
|
+
/**
|
|
1639
|
+
* Returns the learning rate $\eta$ for the upcoming iteration (`0.0` once finished).
|
|
1640
|
+
*/
|
|
1641
|
+
readonly currentEta: number;
|
|
1642
|
+
/**
|
|
1643
|
+
* Returns `true` when the solver has converged or completed.
|
|
1644
|
+
*/
|
|
1645
|
+
readonly isFinished: boolean;
|
|
1646
|
+
/**
|
|
1647
|
+
* Returns the number of iterations executed so far.
|
|
1648
|
+
*/
|
|
1649
|
+
readonly iteration: number;
|
|
1650
|
+
/**
|
|
1651
|
+
* Returns the number of one-sided hinge repulsion pairs stored.
|
|
1652
|
+
*/
|
|
1653
|
+
readonly numHinges: number;
|
|
1654
|
+
/**
|
|
1655
|
+
* Returns the expected vertex count.
|
|
1656
|
+
*/
|
|
1657
|
+
readonly numNodes: number;
|
|
1658
|
+
/**
|
|
1659
|
+
* Returns the number of two-sided spring pairs stored.
|
|
1660
|
+
*/
|
|
1661
|
+
readonly numSprings: number;
|
|
1662
|
+
/**
|
|
1663
|
+
* Returns the solver lifecycle status string.
|
|
1664
|
+
*/
|
|
1665
|
+
readonly status: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Returns the scheduled maximum iteration count (`tMax`).
|
|
1668
|
+
*/
|
|
1669
|
+
readonly totalIterations: number;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Extracted canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays (`u < v`).
|
|
1674
|
+
*/
|
|
1675
|
+
export class Sparse12HopPairs {
|
|
1676
|
+
private constructor();
|
|
1677
|
+
free(): void;
|
|
1678
|
+
[Symbol.dispose](): void;
|
|
1679
|
+
/**
|
|
1680
|
+
* Returns the number of unique undirected 1-hop pairs (`u1 < v1`).
|
|
1681
|
+
*/
|
|
1682
|
+
readonly num1hop: number;
|
|
1683
|
+
/**
|
|
1684
|
+
* Returns the number of unique undirected 2-hop pairs (`u2 < v2`).
|
|
1685
|
+
*/
|
|
1686
|
+
readonly num2hop: number;
|
|
1687
|
+
/**
|
|
1688
|
+
* Returns a copy of 1-hop source vertex indices (`Uint32Array`).
|
|
1689
|
+
*/
|
|
1690
|
+
readonly u1: Uint32Array;
|
|
1691
|
+
/**
|
|
1692
|
+
* Returns a copy of 2-hop source vertex indices (`Uint32Array`).
|
|
1693
|
+
*/
|
|
1694
|
+
readonly u2: Uint32Array;
|
|
1695
|
+
/**
|
|
1696
|
+
* Returns a copy of 1-hop target vertex indices (`Uint32Array`).
|
|
1697
|
+
*/
|
|
1698
|
+
readonly v1: Uint32Array;
|
|
1699
|
+
/**
|
|
1700
|
+
* Returns a copy of 2-hop target vertex indices (`Uint32Array`).
|
|
1701
|
+
*/
|
|
1702
|
+
readonly v2: Uint32Array;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* Diagnostics emitted by `SgdSolver.sparseBarrierFromLandmarks` and `SgdSolver.sparseBarrierDog`.
|
|
1707
|
+
*/
|
|
1708
|
+
export class SparseBarrierStats {
|
|
1709
|
+
private constructor();
|
|
1710
|
+
free(): void;
|
|
1711
|
+
[Symbol.dispose](): void;
|
|
1712
|
+
/**
|
|
1713
|
+
* Returns the applied relative distance floor.
|
|
1714
|
+
*/
|
|
1715
|
+
readonly dFloor: number;
|
|
1716
|
+
/**
|
|
1717
|
+
* Returns the effective non-2-hop repulsion multiplier $\gamma_{\mathrm{eff}}$.
|
|
1718
|
+
*/
|
|
1719
|
+
readonly gammaEff: number;
|
|
1720
|
+
/**
|
|
1721
|
+
* Returns the count of Tier 1 1-hop pairs.
|
|
1722
|
+
*/
|
|
1723
|
+
readonly nPairs1hop: number;
|
|
1724
|
+
/**
|
|
1725
|
+
* Returns the count of Tier 2 2-hop pairs.
|
|
1726
|
+
*/
|
|
1727
|
+
readonly nPairs2hop: number;
|
|
1728
|
+
/**
|
|
1729
|
+
* Returns the count of one-sided hinge pairs.
|
|
1730
|
+
*/
|
|
1731
|
+
readonly nPairsHinge: number;
|
|
1732
|
+
/**
|
|
1733
|
+
* Returns the count of Tier 3 non-2-hop barrier pairs.
|
|
1734
|
+
*/
|
|
1735
|
+
readonly nPairsNon2: number;
|
|
1736
|
+
/**
|
|
1737
|
+
* Returns the count of two-sided spring pairs.
|
|
1738
|
+
*/
|
|
1739
|
+
readonly nPairsTwoSided: number;
|
|
1740
|
+
/**
|
|
1741
|
+
* Returns the per-node negative sample budget used.
|
|
1742
|
+
*/
|
|
1743
|
+
readonly perNodeNegUsed: number;
|
|
1744
|
+
/**
|
|
1745
|
+
* Returns `"adaptive_2hop"` or `"explicit"`.
|
|
1746
|
+
*/
|
|
1747
|
+
readonly perplexitySource: string;
|
|
1748
|
+
/**
|
|
1749
|
+
* Returns the adaptive or explicit perplexity value.
|
|
1750
|
+
*/
|
|
1751
|
+
readonly perplexityVal: number;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
* Canonical sorted symmetric CSR sparse joint probability matrix $P$.
|
|
1756
|
+
*/
|
|
1757
|
+
export class SparseProbabilities {
|
|
1758
|
+
private constructor();
|
|
1759
|
+
free(): void;
|
|
1760
|
+
[Symbol.dispose](): void;
|
|
1761
|
+
/**
|
|
1762
|
+
* Returns a copy of the flat `Uint32Array` neighbor column indices (`length === nnz`).
|
|
1763
|
+
*/
|
|
1764
|
+
indices(): Uint32Array;
|
|
1765
|
+
/**
|
|
1766
|
+
* Returns a copy of the CSR `indptr` row-offset array (`length === numNodes + 1`).
|
|
1767
|
+
*/
|
|
1768
|
+
indptr(): Uint32Array;
|
|
1769
|
+
/**
|
|
1770
|
+
* Returns a copy of the flat `Float64Array` symmetric probability values (`length === nnz`).
|
|
1771
|
+
*/
|
|
1772
|
+
values(): Float64Array;
|
|
1773
|
+
/**
|
|
1774
|
+
* Returns the total number of stored probability entries.
|
|
1775
|
+
*/
|
|
1776
|
+
readonly nnz: number;
|
|
1777
|
+
/**
|
|
1778
|
+
* Returns the number of vertices in the probability matrix.
|
|
1779
|
+
*/
|
|
1780
|
+
readonly numNodes: number;
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Cooperative $O(N \log N)$ `StaticKdTree` active-set spatial intruder refiner (`f32`).
|
|
1785
|
+
*/
|
|
1786
|
+
export class SpatialIntruderRefiner {
|
|
1787
|
+
free(): void;
|
|
1788
|
+
[Symbol.dispose](): void;
|
|
1789
|
+
/**
|
|
1790
|
+
* Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
|
|
1791
|
+
*/
|
|
1792
|
+
constructor(graph: CsrGraph, roundsOrOptions?: number | SpatialRefinerOptions | null, kCap?: number | null, marginScale?: number | null, wAnchor?: number | null, wFn?: number | null, wFp?: number | null, fnShrink?: number | null, roundDecay?: number | null, tMax?: number | null, eps?: number | null, hingeFp?: boolean | null, seed?: number | null, wAnchor2?: number | null, kCapDecay?: number | null, kCapMin?: number | null);
|
|
1793
|
+
/**
|
|
1794
|
+
* Executes up to `steps` refinement rounds on `layout` in place.
|
|
1795
|
+
*/
|
|
1796
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
1797
|
+
/**
|
|
1798
|
+
* Runs refinement rounds to completion or early convergence on `layout` in place.
|
|
1799
|
+
*/
|
|
1800
|
+
run(layout: Layout2d): string;
|
|
1801
|
+
/**
|
|
1802
|
+
* Updates the active-set neighborhood cap `kCap` for subsequent refinement rounds.
|
|
1803
|
+
*/
|
|
1804
|
+
setKCap(kCap: number): void;
|
|
1805
|
+
/**
|
|
1806
|
+
* Returns cumulative and per-round diagnostic statistics.
|
|
1807
|
+
*/
|
|
1808
|
+
stats(): SpatialRefinerStats;
|
|
1809
|
+
/**
|
|
1810
|
+
* Executes one active-set refinement round on `layout` in place.
|
|
1811
|
+
*/
|
|
1812
|
+
step(layout: Layout2d): string;
|
|
1813
|
+
/**
|
|
1814
|
+
* Returns the current dynamic active-set neighborhood cap `kCap`.
|
|
1815
|
+
*/
|
|
1816
|
+
readonly currentKCap: number;
|
|
1817
|
+
/**
|
|
1818
|
+
* Returns `true` when refinement has converged or completed.
|
|
1819
|
+
*/
|
|
1820
|
+
readonly isFinished: boolean;
|
|
1821
|
+
/**
|
|
1822
|
+
* Returns the number of refinement rounds completed so far.
|
|
1823
|
+
*/
|
|
1824
|
+
readonly iteration: number;
|
|
1825
|
+
/**
|
|
1826
|
+
* Returns the expected vertex count.
|
|
1827
|
+
*/
|
|
1828
|
+
readonly numNodes: number;
|
|
1829
|
+
/**
|
|
1830
|
+
* Returns the solver lifecycle status string.
|
|
1831
|
+
*/
|
|
1832
|
+
readonly status: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* Returns the maximum scheduled refinement rounds.
|
|
1835
|
+
*/
|
|
1836
|
+
readonly totalIterations: number;
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Per-round diagnostics emitted by `SpatialIntruderRefiner`.
|
|
1841
|
+
*/
|
|
1842
|
+
export class SpatialRefinerRoundStats {
|
|
1843
|
+
private constructor();
|
|
1844
|
+
free(): void;
|
|
1845
|
+
[Symbol.dispose](): void;
|
|
1846
|
+
/**
|
|
1847
|
+
* Returns the count of Tier 1 1-hop anchor pairs.
|
|
1848
|
+
*/
|
|
1849
|
+
readonly nAnchors: number;
|
|
1850
|
+
/**
|
|
1851
|
+
* Returns the count of active Tier 2 false-negative pairs.
|
|
1852
|
+
*/
|
|
1853
|
+
readonly nFn: number;
|
|
1854
|
+
/**
|
|
1855
|
+
* Returns the count of active Tier 3 spatial false-positive intruder pairs.
|
|
1856
|
+
*/
|
|
1857
|
+
readonly nFp: number;
|
|
1858
|
+
/**
|
|
1859
|
+
* Returns the total active pair count passed to the inner SGD pass.
|
|
1860
|
+
*/
|
|
1861
|
+
readonly nPairsTotal: number;
|
|
1862
|
+
/**
|
|
1863
|
+
* Returns the 1-indexed refinement round number.
|
|
1864
|
+
*/
|
|
1865
|
+
readonly round: number;
|
|
1866
|
+
/**
|
|
1867
|
+
* Returns `true` when zero intruders/stragglers were found and SGD was skipped.
|
|
1868
|
+
*/
|
|
1869
|
+
readonly skipped: boolean;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Cumulative diagnostics returned by `SpatialIntruderRefiner.stats()`.
|
|
1874
|
+
*/
|
|
1875
|
+
export class SpatialRefinerStats {
|
|
1876
|
+
private constructor();
|
|
1877
|
+
free(): void;
|
|
1878
|
+
[Symbol.dispose](): void;
|
|
1879
|
+
/**
|
|
1880
|
+
* Returns per-round diagnostic entries.
|
|
1881
|
+
*/
|
|
1882
|
+
roundStats(): SpatialRefinerRoundStats[];
|
|
1883
|
+
/**
|
|
1884
|
+
* Returns the relative distance floor applied during refinement.
|
|
1885
|
+
*/
|
|
1886
|
+
readonly dFloor: number;
|
|
1887
|
+
/**
|
|
1888
|
+
* Returns the final median 1-hop edge scale after refinement.
|
|
1889
|
+
*/
|
|
1890
|
+
readonly finalScale: number;
|
|
1891
|
+
/**
|
|
1892
|
+
* Returns `true` when Tier 3 FPs used one-sided hinge repulsion.
|
|
1893
|
+
*/
|
|
1894
|
+
readonly hingeFp: boolean;
|
|
1895
|
+
/**
|
|
1896
|
+
* Returns the initial median 1-hop edge scale before refinement.
|
|
1897
|
+
*/
|
|
1898
|
+
readonly initialScale: number;
|
|
1899
|
+
/**
|
|
1900
|
+
* Returns cumulative Tier 1 anchor pairs across executed rounds.
|
|
1901
|
+
*/
|
|
1902
|
+
readonly nAnchorsTotal: number;
|
|
1903
|
+
/**
|
|
1904
|
+
* Returns cumulative Tier 2 false-negative pairs across executed rounds.
|
|
1905
|
+
*/
|
|
1906
|
+
readonly nFnTotal: number;
|
|
1907
|
+
/**
|
|
1908
|
+
* Returns cumulative Tier 3 false-positive intruder pairs across executed rounds.
|
|
1909
|
+
*/
|
|
1910
|
+
readonly nFpTotal: number;
|
|
1911
|
+
/**
|
|
1912
|
+
* Returns cumulative total active pairs across executed rounds.
|
|
1913
|
+
*/
|
|
1914
|
+
readonly nPairsTotal: number;
|
|
1915
|
+
/**
|
|
1916
|
+
* Returns the number of active refinement rounds executed.
|
|
1917
|
+
*/
|
|
1918
|
+
readonly roundsExecuted: number;
|
|
1919
|
+
/**
|
|
1920
|
+
* Returns the ratio of final layout std to initial layout std.
|
|
1921
|
+
*/
|
|
1922
|
+
readonly scaleRatio: number;
|
|
1923
|
+
/**
|
|
1924
|
+
* Returns `true` when the hub-safe 2-hop fallback path was used.
|
|
1925
|
+
*/
|
|
1926
|
+
readonly usedHubFallback: boolean;
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* Spectral embedding output returned by `computeResistanceEmbedding` and `computeDiffusionEmbedding`.
|
|
1931
|
+
*/
|
|
1932
|
+
export class SpectralEmbeddingResult {
|
|
1933
|
+
private constructor();
|
|
1934
|
+
free(): void;
|
|
1935
|
+
[Symbol.dispose](): void;
|
|
1936
|
+
/**
|
|
1937
|
+
* Returns the flat row-major `(numNodes, dim)` `Float64Array` embedding coordinates.
|
|
1938
|
+
*/
|
|
1939
|
+
coords(): Float64Array;
|
|
1940
|
+
/**
|
|
1941
|
+
* Returns the kept nontrivial Laplacian eigenvalues (`Float64Array` of length `dim`).
|
|
1942
|
+
*/
|
|
1943
|
+
lambdas(): Float64Array;
|
|
1944
|
+
/**
|
|
1945
|
+
* Returns the effective embedding dimension (`lambdas().length`).
|
|
1946
|
+
*/
|
|
1947
|
+
readonly dim: number;
|
|
1948
|
+
/**
|
|
1949
|
+
* Returns the number of vertices.
|
|
1950
|
+
*/
|
|
1951
|
+
readonly numNodes: number;
|
|
1952
|
+
/**
|
|
1953
|
+
* Returns the effective diffusion time $t_{\mathrm{used}}$ (for `computeDiffusionEmbedding`), or `undefined`.
|
|
1954
|
+
*/
|
|
1955
|
+
readonly tUsed: number | undefined;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* Exact $O(|E|)$ spectral variance and degree distribution summary statistics of $L_{\mathrm{sym}}$.
|
|
1960
|
+
*/
|
|
1961
|
+
export class SpectralMomentStats {
|
|
1962
|
+
private constructor();
|
|
1963
|
+
free(): void;
|
|
1964
|
+
[Symbol.dispose](): void;
|
|
1965
|
+
/**
|
|
1966
|
+
* Returns the degree coefficient of variation ($\mathrm{std}(d)/\mathrm{mean}(d)$).
|
|
1967
|
+
*/
|
|
1968
|
+
readonly degCv: number;
|
|
1969
|
+
/**
|
|
1970
|
+
* Returns the fraction of vertices with degree equal to 1.
|
|
1971
|
+
*/
|
|
1972
|
+
readonly leafFraction: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* Returns the mean unweighted simple degree across all vertices.
|
|
1975
|
+
*/
|
|
1976
|
+
readonly meanDegree: number;
|
|
1977
|
+
/**
|
|
1978
|
+
* Returns the exact spectral variance $\sigma_\lambda^2$.
|
|
1979
|
+
*/
|
|
1980
|
+
readonly sigmaLambdaSq: number;
|
|
1981
|
+
/**
|
|
1982
|
+
* Returns the clamped spectral standard deviation $\sigma_\lambda$.
|
|
1983
|
+
*/
|
|
1984
|
+
readonly sigmaLambda: number;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
/**
|
|
1988
|
+
* Cooperative Gansner-Koren-North (2004) Stress Majorization layout solver (`f32`).
|
|
1989
|
+
*/
|
|
1990
|
+
export class StressMajorizationSolver {
|
|
1991
|
+
private constructor();
|
|
1992
|
+
free(): void;
|
|
1993
|
+
[Symbol.dispose](): void;
|
|
1994
|
+
/**
|
|
1995
|
+
* Evaluates weighted stress $\sum_{i < j} w_{ij} (\|x_i - x_j\| - d_{ij})^2$ for `layout`.
|
|
1996
|
+
*/
|
|
1997
|
+
computeStress(layout: Layout2d): number;
|
|
1998
|
+
/**
|
|
1999
|
+
* Constructs a `StressMajorizationSolver` from a flat row-major `(numNodes, numNodes)` distance matrix.
|
|
2000
|
+
*/
|
|
2001
|
+
static fromDistanceMatrix(numNodes: number, distsFlat: Float64Array | number[], epsilonOrOptions?: number | StressMajorizationOptions | null, maxIterations?: number | null, pcgTolerance?: number | null, pcgMaxIterations?: number | null, minNorm?: number | null): StressMajorizationSolver;
|
|
2002
|
+
/**
|
|
2003
|
+
* Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
|
|
2004
|
+
*/
|
|
2005
|
+
static fromGraph(graph: CsrGraph, epsilonOrOptions?: number | StressMajorizationOptions | null, maxIterations?: number | null, pcgTolerance?: number | null, pcgMaxIterations?: number | null, minNorm?: number | null): StressMajorizationSolver;
|
|
2006
|
+
/**
|
|
2007
|
+
* Executes up to `steps` majorization steps on `layout` in place.
|
|
2008
|
+
*/
|
|
2009
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
2010
|
+
/**
|
|
2011
|
+
* Runs majorization to completion or relative stress convergence on `layout` in place.
|
|
2012
|
+
*/
|
|
2013
|
+
run(layout: Layout2d): string;
|
|
2014
|
+
/**
|
|
2015
|
+
* Executes one majorization step on `layout` in place.
|
|
2016
|
+
*/
|
|
2017
|
+
step(layout: Layout2d): string;
|
|
2018
|
+
/**
|
|
2019
|
+
* Returns `true` when the solver has converged or completed.
|
|
2020
|
+
*/
|
|
2021
|
+
readonly isFinished: boolean;
|
|
2022
|
+
/**
|
|
2023
|
+
* Returns the number of iterations executed so far.
|
|
2024
|
+
*/
|
|
2025
|
+
readonly iteration: number;
|
|
2026
|
+
/**
|
|
2027
|
+
* Returns the stress recorded after the most recent step, or `undefined`.
|
|
2028
|
+
*/
|
|
2029
|
+
readonly lastStress: number | undefined;
|
|
2030
|
+
/**
|
|
2031
|
+
* Returns the expected vertex count.
|
|
2032
|
+
*/
|
|
2033
|
+
readonly numNodes: number;
|
|
2034
|
+
/**
|
|
2035
|
+
* Returns the solver lifecycle status string.
|
|
2036
|
+
*/
|
|
2037
|
+
readonly status: string;
|
|
2038
|
+
/**
|
|
2039
|
+
* Returns the scheduled maximum iteration count.
|
|
2040
|
+
*/
|
|
2041
|
+
readonly totalIterations: number;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
/**
|
|
2045
|
+
* Cooperative bounded Student-$t$ force-directed placement (`t-FDP`) solver (`f32`)
|
|
2046
|
+
* supporting `ibfft`, `barnes_hut`, and `exact` repulsion backends.
|
|
2047
|
+
*/
|
|
2048
|
+
export class TFdpSolver {
|
|
2049
|
+
free(): void;
|
|
2050
|
+
[Symbol.dispose](): void;
|
|
2051
|
+
/**
|
|
2052
|
+
* Constructs a `TFdpSolver` from either a `KnnGraph` instance (`fromKnn(knn, options?)`)
|
|
2053
|
+
* or raw CSR $k$-NN `indptr`, `indices`, and optional neighbor `weights`
|
|
2054
|
+
* (`fromKnn(indptr, indices, weights?, options?)`, where `weights` defaults to uniform `0.0`).
|
|
2055
|
+
*/
|
|
2056
|
+
static fromKnn(knn: KnnGraph, options?: TFdpOptions | null): TFdpSolver;
|
|
2057
|
+
static fromKnn(indptr: Uint32Array | number[], indices: Uint32Array | number[], weightsOrOptions?: Float64Array | Float32Array | number[] | TFdpOptions | null, options?: TFdpOptions | null): TFdpSolver;
|
|
2058
|
+
/**
|
|
2059
|
+
* Constructs a `TFdpSolver` directly from a `CsrGraph`.
|
|
2060
|
+
*/
|
|
2061
|
+
constructor(graph: CsrGraph, options?: TFdpOptions | null);
|
|
2062
|
+
/**
|
|
2063
|
+
* Executes up to `steps` `t-FDP` iterations on `layout` in place.
|
|
2064
|
+
*/
|
|
2065
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
2066
|
+
/**
|
|
2067
|
+
* Runs `t-FDP` optimization to completion on `layout` in place.
|
|
2068
|
+
*/
|
|
2069
|
+
run(layout: Layout2d): string;
|
|
2070
|
+
/**
|
|
2071
|
+
* Executes one `t-FDP` iteration on `layout` in place.
|
|
2072
|
+
*/
|
|
2073
|
+
step(layout: Layout2d): string;
|
|
2074
|
+
/**
|
|
2075
|
+
* Returns the current $\rho(t)$ repulsion schedule weight.
|
|
2076
|
+
*/
|
|
2077
|
+
readonly currentRho: number;
|
|
2078
|
+
/**
|
|
2079
|
+
* Returns `true` when the solver has converged or completed.
|
|
2080
|
+
*/
|
|
2081
|
+
readonly isFinished: boolean;
|
|
2082
|
+
/**
|
|
2083
|
+
* Returns the number of iterations executed so far.
|
|
2084
|
+
*/
|
|
2085
|
+
readonly iteration: number;
|
|
2086
|
+
/**
|
|
2087
|
+
* Returns the number of directed positive attraction edges stored.
|
|
2088
|
+
*/
|
|
2089
|
+
readonly numEdges: number;
|
|
2090
|
+
/**
|
|
2091
|
+
* Returns the expected vertex count.
|
|
2092
|
+
*/
|
|
2093
|
+
readonly numNodes: number;
|
|
2094
|
+
/**
|
|
2095
|
+
* Returns the solver lifecycle status string.
|
|
2096
|
+
*/
|
|
2097
|
+
readonly status: string;
|
|
2098
|
+
/**
|
|
2099
|
+
* Returns the cumulative number of `fft_2d` calls executed across all steps.
|
|
2100
|
+
*/
|
|
2101
|
+
readonly totalFft2dCalls: number;
|
|
2102
|
+
/**
|
|
2103
|
+
* Returns the total scheduled iteration count.
|
|
2104
|
+
*/
|
|
2105
|
+
readonly totalIterations: number;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* Periodic `[0, 1)^2` torus crossing edge sub-segment pair returned by `crossingEdgesTorus`.
|
|
2110
|
+
*/
|
|
2111
|
+
export class TorusCrossing {
|
|
2112
|
+
private constructor();
|
|
2113
|
+
free(): void;
|
|
2114
|
+
[Symbol.dispose](): void;
|
|
2115
|
+
/**
|
|
2116
|
+
* Returns `[x1, y1, x2, y2]` coordinates of the first crossing sub-segment.
|
|
2117
|
+
*/
|
|
2118
|
+
segA(): Float64Array;
|
|
2119
|
+
/**
|
|
2120
|
+
* Returns `[x1, y1, x2, y2]` coordinates of the second crossing sub-segment.
|
|
2121
|
+
*/
|
|
2122
|
+
segB(): Float64Array;
|
|
2123
|
+
readonly edgeA: number;
|
|
2124
|
+
readonly edgeB: number;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* Cooperative unified tsNET / BH-tsNET / FIt-tsNET / L-tsNET solver (`f32`).
|
|
2129
|
+
*/
|
|
2130
|
+
export class TsNetSolver {
|
|
2131
|
+
private constructor();
|
|
2132
|
+
free(): void;
|
|
2133
|
+
[Symbol.dispose](): void;
|
|
2134
|
+
/**
|
|
2135
|
+
* Constructs a `TsNetSolver` from a `CsrGraph` using Partial BFS $k$-NN and a uniform perplexity.
|
|
2136
|
+
*/
|
|
2137
|
+
static fromGraphPartialBfs(graph: CsrGraph, k?: number | null, uniformPerplexity?: number | null, backendOrOptions?: TsNetBackend | TsNetOptions | string | null, iterationsStage1?: number | null, iterationsStage2?: number | null, iterationsStage3?: number | null, learningRate?: number | null, exaggeration?: number | null, lambdaCStage1?: number | null, lambdaCStage2?: number | null, lambdaCStage3?: number | null, lambdaRStage3?: number | null, momentum?: number | null, epsilonR?: number | null, theta?: number | null, power?: number | null, sigmaIters?: number | null, sigmaTolerance?: number | null, rowNormalize?: boolean | null, seed?: number | null, intervals?: number | null, interpolationOrder?: "bilinear" | "cubic" | 1 | 3 | null, minGridDim?: number | null, maxGridDim?: number | null): TsNetSolver;
|
|
2138
|
+
/**
|
|
2139
|
+
* Constructs a `TsNetSolver` from a `CsrGraph` using direct row-normalized `A1 + w2 * A2` affinity.
|
|
2140
|
+
*/
|
|
2141
|
+
static fromGraphRowNormalized(graph: CsrGraph, w2OrOptions?: number | TsNetRowNormalizedOptions | null, max2hopPerNode?: number | null, backendOrOptions?: TsNetBackend | TsNetOptions | string | null, iterationsStage1?: number | null, iterationsStage2?: number | null, iterationsStage3?: number | null, learningRate?: number | null, exaggeration?: number | null, lambdaCStage1?: number | null, lambdaCStage2?: number | null, lambdaCStage3?: number | null, lambdaRStage3?: number | null, momentum?: number | null, epsilonR?: number | null, theta?: number | null, seed?: number | null, intervals?: number | null, interpolationOrder?: "bilinear" | "cubic" | 1 | 3 | null, minGridDim?: number | null, maxGridDim?: number | null): TsNetSolver;
|
|
2142
|
+
/**
|
|
2143
|
+
* Constructs a `TsNetSolver` from a `KnnGraph` and optional per-node `perplexities`.
|
|
2144
|
+
*/
|
|
2145
|
+
static fromKnn(knn: KnnGraph, perplexities?: Float64Array | number[] | null, uniformPerplexity?: number | null, backendOrOptions?: TsNetBackend | TsNetOptions | string | null, iterationsStage1?: number | null, iterationsStage2?: number | null, iterationsStage3?: number | null, learningRate?: number | null, exaggeration?: number | null, lambdaCStage1?: number | null, lambdaCStage2?: number | null, lambdaCStage3?: number | null, lambdaRStage3?: number | null, momentum?: number | null, epsilonR?: number | null, theta?: number | null, power?: number | null, sigmaIters?: number | null, sigmaTolerance?: number | null, rowNormalize?: boolean | null, seed?: number | null, intervals?: number | null, interpolationOrder?: "bilinear" | "cubic" | 1 | 3 | null, minGridDim?: number | null, maxGridDim?: number | null): TsNetSolver;
|
|
2146
|
+
/**
|
|
2147
|
+
* Constructs a `TsNetSolver` directly from precomputed symmetric `SparseProbabilities`.
|
|
2148
|
+
*/
|
|
2149
|
+
static fromProbabilities(probs: SparseProbabilities, backendOrOptions?: TsNetBackend | TsNetOptions | string | null, iterationsStage1?: number | null, iterationsStage2?: number | null, iterationsStage3?: number | null, learningRate?: number | null, exaggeration?: number | null, lambdaCStage1?: number | null, lambdaCStage2?: number | null, lambdaCStage3?: number | null, lambdaRStage3?: number | null, momentum?: number | null, epsilonR?: number | null, theta?: number | null, seed?: number | null, intervals?: number | null, interpolationOrder?: "bilinear" | "cubic" | 1 | 3 | null, minGridDim?: number | null, maxGridDim?: number | null): TsNetSolver;
|
|
2150
|
+
/**
|
|
2151
|
+
* Returns telemetry counters from the most recent FFT field evaluation, or `undefined`.
|
|
2152
|
+
*/
|
|
2153
|
+
lastFftStats(): FitFieldStats | undefined;
|
|
2154
|
+
/**
|
|
2155
|
+
* Constructs a `TsNetSolver` using the Pure 1+2-Hop node-wise adaptive perplexity preset.
|
|
2156
|
+
*/
|
|
2157
|
+
static pure2Hop(graph: CsrGraph, backendOrOptions?: TsNetBackend | TsNetOptions | string | null, iterationsStage1?: number | null, iterationsStage2?: number | null, iterationsStage3?: number | null, learningRate?: number | null, perplexityC?: number | null, minPerplexity?: number | null, maxPerplexity?: number | null, exaggeration?: number | null, lambdaCStage1?: number | null, lambdaCStage2?: number | null, lambdaCStage3?: number | null, lambdaRStage3?: number | null, momentum?: number | null, epsilonR?: number | null, theta?: number | null, power?: number | null, sigmaIters?: number | null, sigmaTolerance?: number | null, rowNormalize?: boolean | null, seed?: number | null, intervals?: number | null, interpolationOrder?: "bilinear" | "cubic" | 1 | 3 | null, minGridDim?: number | null, maxGridDim?: number | null): TsNetSolver;
|
|
2158
|
+
/**
|
|
2159
|
+
* Executes up to `steps` iterations on `layout` in place.
|
|
2160
|
+
*/
|
|
2161
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
2162
|
+
/**
|
|
2163
|
+
* Runs optimization to completion on `layout` in place.
|
|
2164
|
+
*/
|
|
2165
|
+
run(layout: Layout2d): string;
|
|
2166
|
+
/**
|
|
2167
|
+
* Executes one optimization iteration on `layout` in place.
|
|
2168
|
+
*/
|
|
2169
|
+
step(layout: Layout2d): string;
|
|
2170
|
+
/**
|
|
2171
|
+
* Returns the stability-capped learning rate of the current stage.
|
|
2172
|
+
*/
|
|
2173
|
+
readonly currentStageLr: number;
|
|
2174
|
+
/**
|
|
2175
|
+
* Returns `true` when the solver has converged or completed.
|
|
2176
|
+
*/
|
|
2177
|
+
readonly isFinished: boolean;
|
|
2178
|
+
/**
|
|
2179
|
+
* Returns the number of iterations executed so far.
|
|
2180
|
+
*/
|
|
2181
|
+
readonly iteration: number;
|
|
2182
|
+
/**
|
|
2183
|
+
* Returns the expected vertex count.
|
|
2184
|
+
*/
|
|
2185
|
+
readonly numNodes: number;
|
|
2186
|
+
/**
|
|
2187
|
+
* Returns the active (or final) 0-based stage index.
|
|
2188
|
+
*/
|
|
2189
|
+
readonly stageIndex: number;
|
|
2190
|
+
/**
|
|
2191
|
+
* Returns the solver lifecycle status string.
|
|
2192
|
+
*/
|
|
2193
|
+
readonly status: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* Returns the cumulative number of `fft_2d` calls executed across all steps.
|
|
2196
|
+
*/
|
|
2197
|
+
readonly totalFft2dCalls: number;
|
|
2198
|
+
/**
|
|
2199
|
+
* Returns the total scheduled iteration count across all stages.
|
|
2200
|
+
*/
|
|
2201
|
+
readonly totalIterations: number;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* Disjoint unweighted 1-hop and pure 2-hop CSR graphs returned by `extract1hop2hopCsr`.
|
|
2206
|
+
*/
|
|
2207
|
+
export class TwoHopCsr {
|
|
2208
|
+
private constructor();
|
|
2209
|
+
free(): void;
|
|
2210
|
+
[Symbol.dispose](): void;
|
|
2211
|
+
/**
|
|
2212
|
+
* Returns a cloned handle to the canonical unweighted 1-hop `CsrGraph`.
|
|
2213
|
+
*/
|
|
2214
|
+
hop1(): CsrGraph;
|
|
2215
|
+
/**
|
|
2216
|
+
* Returns a cloned handle to the disjoint pure 2-hop `CsrGraph`.
|
|
2217
|
+
*/
|
|
2218
|
+
hop2(): CsrGraph;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* Pure 1+2-hop CSR `KnnGraph` and summary degree statistics returned by `buildPure2hopKnn`.
|
|
2223
|
+
*/
|
|
2224
|
+
export class TwoHopKnnResult {
|
|
2225
|
+
private constructor();
|
|
2226
|
+
free(): void;
|
|
2227
|
+
[Symbol.dispose](): void;
|
|
2228
|
+
/**
|
|
2229
|
+
* Returns per-node 2-hop neighborhood sizes $|B_2(u) \setminus \{u\}|$ (`Uint32Array`).
|
|
2230
|
+
*/
|
|
2231
|
+
k2Deg(): Uint32Array;
|
|
2232
|
+
/**
|
|
2233
|
+
* Returns a cloned `KnnGraph` containing exact 1-hop (`1.0`) and 2-hop (`2.0`) neighbors.
|
|
2234
|
+
*/
|
|
2235
|
+
knn(): KnnGraph;
|
|
2236
|
+
/**
|
|
2237
|
+
* Returns the mean 1-hop degree across all vertices.
|
|
2238
|
+
*/
|
|
2239
|
+
readonly avgDeg1: number;
|
|
2240
|
+
/**
|
|
2241
|
+
* Returns the mean 1+2-hop neighborhood size across all vertices.
|
|
2242
|
+
*/
|
|
2243
|
+
readonly avgDeg2: number;
|
|
2244
|
+
/**
|
|
2245
|
+
* Returns the total number of stored neighbor entries.
|
|
2246
|
+
*/
|
|
2247
|
+
readonly nnz: number;
|
|
2248
|
+
}
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* Cooperative multilevel Yifan Hu (2005) force-directed layout solver (`f32`).
|
|
2252
|
+
*/
|
|
2253
|
+
export class YifanHuSolver {
|
|
2254
|
+
free(): void;
|
|
2255
|
+
[Symbol.dispose](): void;
|
|
2256
|
+
/**
|
|
2257
|
+
* Constructs a `YifanHuSolver` from `graph` and optional `YifanHuOptions`.
|
|
2258
|
+
*/
|
|
2259
|
+
constructor(graph: CsrGraph, options?: YifanHuOptions | null);
|
|
2260
|
+
/**
|
|
2261
|
+
* Executes up to `steps` Yifan Hu iterations on `layout` in place.
|
|
2262
|
+
*/
|
|
2263
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
2264
|
+
/**
|
|
2265
|
+
* Runs Yifan Hu multilevel optimization to completion on `layout` in place.
|
|
2266
|
+
*/
|
|
2267
|
+
run(layout: Layout2d): string;
|
|
2268
|
+
/**
|
|
2269
|
+
* Executes one Yifan Hu iteration on `layout` in place.
|
|
2270
|
+
*/
|
|
2271
|
+
step(layout: Layout2d): string;
|
|
2272
|
+
/**
|
|
2273
|
+
* Returns the currently active level index (`numLevels - 1` coarsest down to `0` finest).
|
|
2274
|
+
*/
|
|
2275
|
+
readonly currentLevel: number;
|
|
2276
|
+
/**
|
|
2277
|
+
* Returns `true` when the solver has converged or completed.
|
|
2278
|
+
*/
|
|
2279
|
+
readonly isFinished: boolean;
|
|
2280
|
+
/**
|
|
2281
|
+
* Returns the total iterations executed so far across all levels.
|
|
2282
|
+
*/
|
|
2283
|
+
readonly iteration: number;
|
|
2284
|
+
/**
|
|
2285
|
+
* Returns the number of levels in the `EC + MIVS` coarsening hierarchy (`>= 1`).
|
|
2286
|
+
*/
|
|
2287
|
+
readonly numLevels: number;
|
|
2288
|
+
/**
|
|
2289
|
+
* Returns the expected vertex count.
|
|
2290
|
+
*/
|
|
2291
|
+
readonly numNodes: number;
|
|
2292
|
+
/**
|
|
2293
|
+
* Returns the solver lifecycle status string.
|
|
2294
|
+
*/
|
|
2295
|
+
readonly status: string;
|
|
2296
|
+
/**
|
|
2297
|
+
* Returns the maximum scheduled iterations (`numLevels * maxIterationsPerLevel`).
|
|
2298
|
+
*/
|
|
2299
|
+
readonly totalIterations: number;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
|
|
2304
|
+
*/
|
|
2305
|
+
export function allPairsBfs(graph: CsrGraph, unit_edge_length?: number | null): Float64Array;
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Computes the exponential angular-resolution penalty sum over incident edge pairs.
|
|
2309
|
+
*/
|
|
2310
|
+
export function angularResolutionV6(graph: CsrGraph, layout: Layout2d): number;
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* 30. Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
|
|
2314
|
+
* returning the applied distance floor.
|
|
2315
|
+
*/
|
|
2316
|
+
export function applyRelativeDistanceFloor(d1: Float64Array, d2: Float64Array, d3: Float64Array, eps_dist?: number | null, min_ratio?: number | null): number;
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Computes the PCA aspect ratio $\sigma_2 / \sigma_1 \in [0.0, 1.0]$ of `layout`.
|
|
2320
|
+
*/
|
|
2321
|
+
export function aspectRatioV6(layout: Layout2d): number;
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `CsrGraph`.
|
|
2325
|
+
*/
|
|
2326
|
+
export function assignLayers(graph: CsrGraph, method?: LayeringMethod | string | null): Uint32Array;
|
|
2327
|
+
|
|
2328
|
+
/**
|
|
2329
|
+
* Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
|
|
2330
|
+
*/
|
|
2331
|
+
export function bfsSingleSource(graph: CsrGraph, source: number, unit_edge_length?: number | null): Float64Array;
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* 29. Builds a sorted symmetric CSR `KnnGraph` from 1-hop and 2-hop pair distances enforcing
|
|
2335
|
+
* strict 1-hop priority ($d_1 < \mathrm{tier2Margin} \cdot d_2$ and $d_1 < d_2$).
|
|
2336
|
+
*/
|
|
2337
|
+
export function buildGumap12hopPriorityCsr(num_nodes: number, u1: Uint32Array | number[], v1: Uint32Array | number[], d1: Float64Array | number[], u2: Uint32Array | number[], v2: Uint32Array | number[], d2: Float64Array | number[], tier2_margin?: number | null): KnnGraph;
|
|
2338
|
+
|
|
2339
|
+
/**
|
|
2340
|
+
* 13. Builds a hybrid 1+2-hop + 2-stage coarse `StaticKdTree` + full-$D$ reranked `KnnGraph`.
|
|
2341
|
+
*/
|
|
2342
|
+
export function buildHybridAdaptiveKnn(graph: CsrGraph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], kFactor?: number | null, marginGap?: number | null, coarseDim?: number | null, rerankFactor?: number | null, k?: number | null, maxRowK?: number | null): HybridKnnResult;
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
* 9. Builds a pure 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
|
|
2346
|
+
*/
|
|
2347
|
+
export function buildPure2hopKnn(graph: CsrGraph): TwoHopKnnResult;
|
|
2348
|
+
|
|
2349
|
+
/**
|
|
2350
|
+
* 26. Constructs a 2-stage coarse `StaticKdTree` + full-`dim` reranked `KnnGraph` from row-major
|
|
2351
|
+
* `(numNodes, dim)` coordinates.
|
|
2352
|
+
*/
|
|
2353
|
+
export function buildRerankKnn(coords: Float64Array | number[], num_nodes: number, dim: number, k: number, coarse_dim?: number | null, rerank_factor?: number | null): KnnGraph;
|
|
2354
|
+
|
|
2355
|
+
/**
|
|
2356
|
+
* 7. Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`.
|
|
2357
|
+
*/
|
|
2358
|
+
export function chebyshevDogJlEmbedding(graph: CsrGraph, jlDim?: number | null, degree?: number | null, seed?: number | null, degreeNormalize?: boolean | null, epsPsd?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null): Float64Array;
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* 6. Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
|
|
2362
|
+
*/
|
|
2363
|
+
export function chebyshevHeatSpmv(graph: CsrGraph, vectors: Float64Array | number[], numCols: number, t: number, degree?: number | null, lambdaMax?: number | null): Float64Array;
|
|
2364
|
+
|
|
2365
|
+
/**
|
|
2366
|
+
* 20. Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
|
|
2367
|
+
*/
|
|
2368
|
+
export function classicalMds2d(graph: CsrGraph): Layout2d;
|
|
2369
|
+
|
|
2370
|
+
/**
|
|
2371
|
+
* Coarsens an undirected `CsrGraph` by contracting vertices that share a cluster label.
|
|
2372
|
+
*/
|
|
2373
|
+
export function coarsenGraph(graph: CsrGraph, labels: Uint32Array | number[]): CoarsenedGraphResult;
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* 10. Computes exact distinct 1-hop + 2-hop neighborhood sizes $|B_2(u) \setminus \{u\}|$.
|
|
2377
|
+
*/
|
|
2378
|
+
export function compute2hopNeighborhoodSizes(graph: CsrGraph): Uint32Array;
|
|
2379
|
+
|
|
2380
|
+
/**
|
|
2381
|
+
* 25. Computes heat-diffusion spectral embedding $D^{-1/2} U \exp(-0.5 t \Lambda)$.
|
|
2382
|
+
*/
|
|
2383
|
+
export function computeDiffusionEmbedding(graph: CsrGraph, dim?: number | null, p?: number | null, t?: number | null, tol?: number | null, max_iters?: number | null, seed?: number | null): SpectralEmbeddingResult;
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* 16. Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
|
|
2387
|
+
*/
|
|
2388
|
+
export function computeFuzzySimplicialSet(knn: KnnGraph, sigmaIters?: number | null, sigmaTolerance?: number | null): SparseProbabilities;
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* 18. Computes R3 parameter-free Horvitz-Thompson repulsion scaling $\gamma_{\mathrm{eff}}$.
|
|
2392
|
+
*/
|
|
2393
|
+
export function computeHorvitzThompsonGamma(gammaNon2: number, numNodes: number, negPerNode: number): number;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* 15. Computes sparse symmetric joint probabilities from a `KnnGraph` and per-node perplexities.
|
|
2397
|
+
*/
|
|
2398
|
+
export function computeKnnProbabilities(knn: KnnGraph, perplexities: Float64Array | number[], power?: number | null, sigmaIters?: number | null, sigmaTolerance?: number | null, rowNormalize?: boolean | null): SparseProbabilities;
|
|
2399
|
+
|
|
2400
|
+
/**
|
|
2401
|
+
* 12. Computes scalar median 2-hop adaptive perplexity.
|
|
2402
|
+
*/
|
|
2403
|
+
export function computeMedian2hopPerplexity(graph: CsrGraph, c?: number | null, minPerplexity?: number | null, maxPerplexity?: number | null): number;
|
|
2404
|
+
|
|
2405
|
+
/**
|
|
2406
|
+
* 11. Computes per-node 2-hop adaptive perplexities.
|
|
2407
|
+
*/
|
|
2408
|
+
export function computeNodewise2hopPerplexities(graph: CsrGraph, c?: number | null, minPerplexity?: number | null, maxPerplexity?: number | null): Float64Array;
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* 19. Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
|
|
2412
|
+
*/
|
|
2413
|
+
export function computeRegularizedDogVaradhanLandmarks(graph: CsrGraph, degree?: number | null, numLandmarks?: number | null, seed?: number | null, degreeNormalize?: boolean | null, pExp?: number | null, epsPsd?: number | null, tCoarse?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, betaFloor?: number | null): DogVaradhanLandmarks;
|
|
2414
|
+
|
|
2415
|
+
/**
|
|
2416
|
+
* 24. Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
|
|
2417
|
+
*/
|
|
2418
|
+
export function computeResistanceEmbedding(graph: CsrGraph, dim?: number | null, tol?: number | null, max_iters?: number | null, seed?: number | null, eig_eps?: number | null): SpectralEmbeddingResult;
|
|
2419
|
+
|
|
2420
|
+
/**
|
|
2421
|
+
* Returns all non-adjacent crossing edge pairs in `graph` under `layout`.
|
|
2422
|
+
*/
|
|
2423
|
+
export function crossingEdges(graph: CsrGraph, layout: Layout2d): CrossingPair[];
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Finds all crossing edge sub-segment pairs on the unit torus `[0, 1)^2`.
|
|
2427
|
+
*/
|
|
2428
|
+
export function crossingEdgesTorus(graph: CsrGraph, layout: Layout2d): TorusCrossing[];
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* Computes both exact crossing count and crossing-angle statistics in a single sweep pass.
|
|
2432
|
+
*/
|
|
2433
|
+
export function crossingSummary(graph: CsrGraph, layout: Layout2d): CrossingSummary;
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
|
|
2437
|
+
* returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
|
|
2438
|
+
*/
|
|
2439
|
+
export function cycleEdges(graph: CsrGraph): Uint32Array;
|
|
2440
|
+
|
|
2441
|
+
/**
|
|
2442
|
+
* Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `CsrGraph`.
|
|
2443
|
+
*/
|
|
2444
|
+
export function delaunayToCsr(layout: Layout2d): CsrGraph;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* Computes the deterministic 2D Delaunay triangulation of `layout` (`delaunay` feature).
|
|
2448
|
+
*/
|
|
2449
|
+
export function delaunayTriangulation(layout: Layout2d): DelaunayResult;
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* Computes shape-based Gabriel Graph preservation (`dGG`) in `[0.0, 1.0]`.
|
|
2453
|
+
*/
|
|
2454
|
+
export function dggPreservation(graph: CsrGraph, layout: Layout2d): number;
|
|
2455
|
+
|
|
2456
|
+
/**
|
|
2457
|
+
* Computes shape-based Relative Neighborhood Graph preservation (`dRNG`) in `[0.0, 1.0]`.
|
|
2458
|
+
*/
|
|
2459
|
+
export function drngPreservation(graph: CsrGraph, layout: Layout2d): number;
|
|
2460
|
+
|
|
2461
|
+
/**
|
|
2462
|
+
* Computes the undirected angle in `[0.0, pi]` radians between 2D vectors `(x1, y1)` and `(x2, y2)`,
|
|
2463
|
+
* returning `undefined` if either vector is zero-length or non-finite.
|
|
2464
|
+
*/
|
|
2465
|
+
export function edgeAngle(x1: number, y1: number, x2: number, y2: number): number | undefined;
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* Selectively evaluates only the quality metrics listed in `targets`, skipping unrequested work.
|
|
2469
|
+
*/
|
|
2470
|
+
export function evaluateMetrics(graph: CsrGraph, layout: Layout2d, targets: readonly (MetricTarget | string)[], numPivots?: number | null, numSamples?: number | null, seed?: number | null, idealEdgeLength?: number | null): MetricReport;
|
|
2471
|
+
|
|
2472
|
+
/**
|
|
2473
|
+
* 8. Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
|
|
2474
|
+
*/
|
|
2475
|
+
export function extract1hop2hopCsr(graph: CsrGraph): TwoHopCsr;
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* 8b. Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
|
|
2479
|
+
*/
|
|
2480
|
+
export function extractSparse1hop2hopPairs(graph: CsrGraph, max2hopPerNode?: number | null, seed?: number | null): Sparse12HopPairs;
|
|
2481
|
+
|
|
2482
|
+
/**
|
|
2483
|
+
* 17. Fits low-dimensional UMAP parameters `[a, b]` from `minDist` and `spread`.
|
|
2484
|
+
*/
|
|
2485
|
+
export function findAbParams(minDist?: number | null, spread?: number | null): Float64Array;
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Extracts exact undirected Gabriel Graph (`GG`) edges as flat `[u0, v0, ...]` (`Uint32Array`).
|
|
2489
|
+
*/
|
|
2490
|
+
export function gabrielGraphEdges(layout: Layout2d): Uint32Array;
|
|
2491
|
+
|
|
2492
|
+
/**
|
|
2493
|
+
* Computes Gabriel graph condition violations across `graph` edges under `layout`.
|
|
2494
|
+
*/
|
|
2495
|
+
export function gabrielGraphPropertyV6(graph: CsrGraph, layout: Layout2d): number;
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* Generates hierarchical separation constraints `y[u] + gap <= y[v]` for directed edges
|
|
2499
|
+
* `(u, v)` spanning `layers[u] < layers[v]`.
|
|
2500
|
+
*/
|
|
2501
|
+
export function generateLayeredConstraints(graph: CsrGraph, layers: Uint32Array | number[], minLayerDistance?: number | null): SeparationConstraint[];
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* 27. Computes row-normalized symmetrized graph probabilities from a `CsrGraph`.
|
|
2505
|
+
*/
|
|
2506
|
+
export function graphRowNormalizedProbabilities(graph: CsrGraph): SparseProbabilities;
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* Evaluates ideal edge-length preservation error sum for `graph` under `layout`.
|
|
2510
|
+
*/
|
|
2511
|
+
export function idealEdgeLengthsV6(graph: CsrGraph, layout: Layout2d): number;
|
|
2512
|
+
|
|
2513
|
+
/**
|
|
2514
|
+
* Evaluates ideal edge-length preservation error against a uniform `unitEdgeLength > 0`.
|
|
2515
|
+
*/
|
|
2516
|
+
export function idealEdgeLengthsWithUnit(graph: CsrGraph, layout: Layout2d, unit_edge_length: number): number;
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
* Clusters flat row-major `(numNodes, dims)` points with deterministic K-Means++.
|
|
2520
|
+
*/
|
|
2521
|
+
export function kmeansPlusPlus(points: Float64Array | number[], numNodes: number, dims: number, k?: number | null, maxIters?: number | null, tol?: number | null, nInit?: number | null, seed?: number | null): KMeansResult;
|
|
2522
|
+
|
|
2523
|
+
/**
|
|
2524
|
+
* 3. Computes Koren's degree-normalized 2D spectral initialization `Layout2d` (`f32`).
|
|
2525
|
+
*
|
|
2526
|
+
* When `targetStd` is omitted or `undefined`, coordinates are normalized to `targetStd = 1.0`.
|
|
2527
|
+
* Pass `null` to disable isotropic standard-deviation normalization.
|
|
2528
|
+
*/
|
|
2529
|
+
export function korenSpectralInit(graph: CsrGraph, targetStd?: number | null, tol?: number | null, maxIters?: number | null, seed?: number | null): Layout2d;
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* Detects communities on an undirected `CsrGraph` via asynchronous Label Propagation.
|
|
2533
|
+
*/
|
|
2534
|
+
export function labelPropagation(graph: CsrGraph, maxIters?: number | null, seed?: number | null): Uint32Array;
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* Loads one of the 9 embedded benchmark datasets (`"1138_bus"`, `"3_elt"`, `"dwt_1005"`,
|
|
2538
|
+
* `"dwt_2680"`, `"poli"`, `"qh882"`, `"uspower_grid"`, `"karate"`, `"lesmis"`) as a `CsrGraph`.
|
|
2539
|
+
*/
|
|
2540
|
+
export function loadDataset(name: string): CsrGraph;
|
|
2541
|
+
|
|
2542
|
+
/**
|
|
2543
|
+
* Detects communities on an undirected `CsrGraph` via multi-level Louvain modularity optimization.
|
|
2544
|
+
*/
|
|
2545
|
+
export function louvainCommunities(graph: CsrGraph, maxPasses?: number | null, resolution?: number | null, minModularityGain?: number | null, seed?: number | null): LouvainResult;
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
|
|
2549
|
+
*/
|
|
2550
|
+
export function neighborhoodPreservation1Hop(graph: CsrGraph, layout: Layout2d): number;
|
|
2551
|
+
|
|
2552
|
+
/**
|
|
2553
|
+
* Computes `StaticKdTree`-accelerated 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]`.
|
|
2554
|
+
*/
|
|
2555
|
+
export function neighborhoodPreservation2HopV6(graph: CsrGraph, layout: Layout2d): number;
|
|
2556
|
+
|
|
2557
|
+
/**
|
|
2558
|
+
* Computes the one-sided hinge node-resolution violation sum of `layout`.
|
|
2559
|
+
*/
|
|
2560
|
+
export function nodeResolutionV6(layout: Layout2d): number;
|
|
2561
|
+
|
|
2562
|
+
/**
|
|
2563
|
+
* 22. Sanitizes non-finite entries, centers `layout` in place, and scales isotropically to `targetStd` (default `1.0`).
|
|
2564
|
+
*/
|
|
2565
|
+
export function normalizeLayout2d(layout: Layout2d, target_std?: number | null, seed?: number | null): void;
|
|
2566
|
+
|
|
2567
|
+
/**
|
|
2568
|
+
* Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` rows) into a `CsrGraph`.
|
|
2569
|
+
*/
|
|
2570
|
+
export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): CsrGraph;
|
|
2571
|
+
|
|
2572
|
+
/**
|
|
2573
|
+
* 14. Computes a $k$-NN graph via Partial BFS with deterministic Fisher-Yates tie-breaking.
|
|
2574
|
+
*/
|
|
2575
|
+
export function partialBfsKnn(graph: CsrGraph, k?: number | null, seed?: number | null): KnnGraph;
|
|
2576
|
+
|
|
2577
|
+
/**
|
|
2578
|
+
* 2. Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
|
|
2579
|
+
*
|
|
2580
|
+
* When `targetStd` is omitted or `undefined`, coordinates are normalized to `targetStd = 1.0`.
|
|
2581
|
+
* Pass `null` to disable isotropic standard-deviation normalization.
|
|
2582
|
+
*/
|
|
2583
|
+
export function pivotMdsInit(graph: CsrGraph, numPivots?: number | null, seed?: number | null, minDegree?: number | null, targetStd?: number | null): Layout2d;
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* Computes the Poincaré disk hyperbolic geodesic distance between `(x1, y1)` and `(x2, y2)`.
|
|
2587
|
+
*/
|
|
2588
|
+
export function poincareDistance(x1: number, y1: number, x2: number, y2: number): number;
|
|
2589
|
+
|
|
2590
|
+
/**
|
|
2591
|
+
* Computes PRISM layout-preservation distortion (`sigmaDist`, `sigmaDisp`) comparing `originalLayout`
|
|
2592
|
+
* and `adjustedLayout`.
|
|
2593
|
+
*/
|
|
2594
|
+
export function prismDistortion(originalLayout: Layout2d, adjustedLayout: Layout2d): PrismDistortion;
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* Computes PRISM layout-preservation distortion using flat `[u0, v0, ...]` proximity `edges`.
|
|
2598
|
+
*/
|
|
2599
|
+
export function prismDistortionWithEdges(original_layout: Layout2d, adjusted_layout: Layout2d, edges: Uint32Array | number[]): PrismDistortion;
|
|
2600
|
+
|
|
2601
|
+
/**
|
|
2602
|
+
* Projects `coords` (`Float32Array`) in place onto the feasible region defined by
|
|
2603
|
+
* `constraints` and also returns the projected `Float32Array`.
|
|
2604
|
+
*/
|
|
2605
|
+
export function project1d(coords: Float32Array, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[]): Float32Array;
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* Projects a coarse 2D `Layout2d` (`f32`) back onto fine vertices via `nodeToCoarse`.
|
|
2609
|
+
*/
|
|
2610
|
+
export function projectClusteredLayout(coarseLayout: Layout2d, nodeToCoarse: Uint32Array | number[], spreadRadius?: number | null, seed?: number | null): Layout2d;
|
|
2611
|
+
|
|
2612
|
+
/**
|
|
2613
|
+
* Eliminates overlaps between axis-aligned cluster bounding boxes in `layout` in place while
|
|
2614
|
+
* rigidly preserving relative coordinates within each cluster.
|
|
2615
|
+
*/
|
|
2616
|
+
export function projectClusteredRectangleNoOverlap2d(layout: Layout2d, clusterIds: Uint32Array | number[], halfWidths: Float32Array | number[], halfHeights: Float32Array | number[]): void;
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* Projects axis `axis` (`0` / `"x"` or `1` / `"y"`) of `layout` in place onto `constraints`.
|
|
2620
|
+
*/
|
|
2621
|
+
export function projectLayoutAxis(layout: Layout2d, axis: LayoutAxis, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[]): void;
|
|
2622
|
+
|
|
2623
|
+
/**
|
|
2624
|
+
* Projects 2D rectangle positions in `layout` in place to eliminate all axis-aligned overlaps
|
|
2625
|
+
* while minimizing quadratic coordinate displacement.
|
|
2626
|
+
*/
|
|
2627
|
+
export function projectRectangleNoOverlap2d(layout: Layout2d, halfWidths: Float32Array | number[], halfHeights: Float32Array | number[]): void;
|
|
2628
|
+
|
|
2629
|
+
/**
|
|
2630
|
+
* 21. Computes a `LayoutNd` (`f32`) zero-guarded resistance-distance spectral embedding (`RdMds`).
|
|
2631
|
+
*/
|
|
2632
|
+
export function rdMds(graph: CsrGraph, dims?: number | null, eig_eps?: number | null, tol?: number | null, max_iters?: number | null, seed?: number | null): LayoutNd;
|
|
2633
|
+
|
|
2634
|
+
/**
|
|
2635
|
+
* Finds all overlapping rectangle pairs `[i0, j0, i1, j1, ...]` (`i < j`) for `layout`
|
|
2636
|
+
* with per-node `halfWidths` and `halfHeights` in $O(N \log N + K)$ time.
|
|
2637
|
+
*/
|
|
2638
|
+
export function rectangleOverlaps(layout: Layout2d, half_widths: Float32Array | number[], half_heights: Float32Array | number[]): Uint32Array;
|
|
2639
|
+
|
|
2640
|
+
/**
|
|
2641
|
+
* Extracts exact undirected Relative Neighborhood Graph (`RNG`) edges as flat `[u0, v0, ...]` (`Uint32Array`).
|
|
2642
|
+
*/
|
|
2643
|
+
export function relativeNeighborhoodEdges(layout: Layout2d): Uint32Array;
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
* Constructs a directed acyclic `CsrGraph` by reversing cycle-closing back-edges.
|
|
2647
|
+
*/
|
|
2648
|
+
export function removeCycles(graph: CsrGraph): CsrGraph;
|
|
2649
|
+
|
|
2650
|
+
/**
|
|
2651
|
+
* 23. Computes a `dim`-dimensional Representative / Landmark MDS `LayoutNd` (`f32`) from a flat
|
|
2652
|
+
* row-major `(numNodes, numReps)` distance matrix.
|
|
2653
|
+
*/
|
|
2654
|
+
export function representativeMds(distances_to_reps: Float64Array | number[], num_nodes: number, num_reps: number, dims: number): LayoutNd;
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* Estimates edge crossings in $O(\text{numSamples})$ time (`numSamples` default `4096`, `seed` default `42`).
|
|
2658
|
+
*/
|
|
2659
|
+
export function sampledCrossingNumber(graph: CsrGraph, layout: Layout2d, numSamples?: number | null, seed?: number | null): number;
|
|
2660
|
+
|
|
2661
|
+
/**
|
|
2662
|
+
* Estimates 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]` via deterministic vertex sampling (`numSamples` default `4096`, `seed` default `42`).
|
|
2663
|
+
*/
|
|
2664
|
+
export function sampledNp1(graph: CsrGraph, layout: Layout2d, numSamples?: number | null, seed?: number | null): number;
|
|
2665
|
+
|
|
2666
|
+
/**
|
|
2667
|
+
* Estimates 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]` via deterministic vertex sampling (`numSamples` default `4096`, `seed` default `42`).
|
|
2668
|
+
*/
|
|
2669
|
+
export function sampledNp2(graph: CsrGraph, layout: Layout2d, numSamples?: number | null, seed?: number | null): number;
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* Computes $O(kN)$ pivot-sampled Scale-Normalized Stress (`SNS`) from `numPivots` (default `64`)
|
|
2673
|
+
* deterministic BFS sources with optional safe-integer `seed` (default `42`).
|
|
2674
|
+
*/
|
|
2675
|
+
export function sampledScaleNormalizedStress(graph: CsrGraph, layout: Layout2d, numPivots?: number | null, seed?: number | null): number;
|
|
2676
|
+
|
|
2677
|
+
/**
|
|
2678
|
+
* Computes closed-form Scale-Normalized Stress (`SNS`) in `[0.0, 1.0]` for `graph` and `layout`.
|
|
2679
|
+
*/
|
|
2680
|
+
export function scaleNormalizedStress(graph: CsrGraph, layout: Layout2d): number;
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
* Computes closed-form Scale-Normalized Stress (`SNS`) from a flat row-major `N * N` `distances`
|
|
2684
|
+
* matrix and optional `weights` matrix (`w_ij = 1 / d_ij^2` when omitted).
|
|
2685
|
+
*/
|
|
2686
|
+
export function scaleNormalizedStressFromDistances(layout: Layout2d, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* 1. Selects well-spaced shortest-path pivots via Core-First MaxMin BFS.
|
|
2690
|
+
*/
|
|
2691
|
+
export function selectMaxminSpPivots(graph: CsrGraph, numPivots?: number | null, seed?: number | null, minDegree?: number | null): Uint32Array;
|
|
2692
|
+
|
|
2693
|
+
/**
|
|
2694
|
+
* Installs `console_error_panic_hook` once so any Rust panic reports a readable stack trace
|
|
2695
|
+
* to the JavaScript console.
|
|
2696
|
+
*/
|
|
2697
|
+
export function setPanicHook(): void;
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* 4. Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$.
|
|
2701
|
+
*/
|
|
2702
|
+
export function smallestLaplacianEigenpairs(graph: CsrGraph, nModes?: number | null, tol?: number | null, maxIters?: number | null, seed?: number | null): EigenResult;
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* Performs Ng-Jordan-Weiss spectral clustering on an undirected `CsrGraph`.
|
|
2706
|
+
*/
|
|
2707
|
+
export function spectralClustering(graph: CsrGraph, k?: number | null, maxEigenIters?: number | null, eigenTol?: number | null, kmeansMaxIters?: number | null, kmeansTol?: number | null, seed?: number | null): Uint32Array;
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* 5. Computes exact $O(|E|)$ spectral variance and degree summary statistics of $L_{\mathrm{sym}}$.
|
|
2711
|
+
*/
|
|
2712
|
+
export function spectralMomentStats(graph: CsrGraph): SpectralMomentStats;
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* Computes the great-circle geodesic distance on the unit sphere in `[0, pi]`.
|
|
2716
|
+
*/
|
|
2717
|
+
export function sphericalDistance(lon1: number, colat1: number, lon2: number, colat2: number): number;
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* Computes the exact sweep-line crossing-angle penalty $\sum \cos^2(\theta)$.
|
|
2721
|
+
*/
|
|
2722
|
+
export function sweepCrossingAngle(graph: CsrGraph, layout: Layout2d): number;
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* Counts the exact number of non-adjacent edge crossings via $O((|E|+K)\log|E|)$ sweep-line.
|
|
2726
|
+
*/
|
|
2727
|
+
export function sweepCrossingNumber(graph: CsrGraph, layout: Layout2d): number;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* 28. Computes row-normalized symmetrized joint probabilities from arbitrary CSR directed affinities.
|
|
2731
|
+
*/
|
|
2732
|
+
export function symmetrizeRowNormalized(num_nodes: number, indptr: Uint32Array | number[], indices: Uint32Array | number[], weights: Float64Array | number[]): SparseProbabilities;
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* Counts non-adjacent edge sub-segment crossings on the flat unit torus `[0, 1)^2`.
|
|
2736
|
+
*/
|
|
2737
|
+
export function torusCrossingNumber(graph: CsrGraph, layout: Layout2d): number;
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* Computes the geodesic distance on the flat unit torus `[0, 1)^2`.
|
|
2741
|
+
*/
|
|
2742
|
+
export function torusDistance(x1: number, y1: number, x2: number, y2: number): number;
|
|
2743
|
+
|
|
2744
|
+
/**
|
|
2745
|
+
* Returns the active WebAssembly linear `WebAssembly.Memory` instance.
|
|
2746
|
+
*
|
|
2747
|
+
* The JavaScript wrapper uses `wasmMemory().buffer` to detect `memory.grow` buffer detachments
|
|
2748
|
+
* in $O(1)$ time before returning a cached `Float32Array` view from `Layout2d.coordsView()`.
|
|
2749
|
+
*/
|
|
2750
|
+
export function wasmMemory(): WebAssembly.Memory;
|
|
2751
|
+
|
|
2752
|
+
export function wasm_start(): void;
|
|
2753
|
+
|
|
2754
|
+
/**
|
|
2755
|
+
* Wraps a 2D coordinate pair onto the flat unit torus `[0, 1)^2`, returning `[x, y]`.
|
|
2756
|
+
*/
|
|
2757
|
+
export function wrapTorusPoint(x: number, y: number): Float64Array;
|
|
2758
|
+
|
|
2759
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
2760
|
+
|
|
2761
|
+
export interface InitOutput {
|
|
2762
|
+
readonly memory: WebAssembly.Memory;
|
|
2763
|
+
readonly __wbg_coarsenedgraphresult_free: (a: number, b: number) => void;
|
|
2764
|
+
readonly __wbg_crossingpair_free: (a: number, b: number) => void;
|
|
2765
|
+
readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
|
|
2766
|
+
readonly __wbg_csrgraph_free: (a: number, b: number) => void;
|
|
2767
|
+
readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
|
|
2768
|
+
readonly __wbg_dogstats_free: (a: number, b: number) => void;
|
|
2769
|
+
readonly __wbg_dogvaradhanlandmarks_free: (a: number, b: number) => void;
|
|
2770
|
+
readonly __wbg_eigenresult_free: (a: number, b: number) => void;
|
|
2771
|
+
readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
|
|
2772
|
+
readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
|
|
2773
|
+
readonly __wbg_forceatlas2solver_free: (a: number, b: number) => void;
|
|
2774
|
+
readonly __wbg_gumapsolver_free: (a: number, b: number) => void;
|
|
2775
|
+
readonly __wbg_hybridknnresult_free: (a: number, b: number) => void;
|
|
2776
|
+
readonly __wbg_ibumapsolver_free: (a: number, b: number) => void;
|
|
2777
|
+
readonly __wbg_kamadakawaisolver_free: (a: number, b: number) => void;
|
|
2778
|
+
readonly __wbg_kmeansresult_free: (a: number, b: number) => void;
|
|
2779
|
+
readonly __wbg_knngraph_free: (a: number, b: number) => void;
|
|
2780
|
+
readonly __wbg_largestconnectedcomponentresult_free: (a: number, b: number) => void;
|
|
2781
|
+
readonly __wbg_layout2d_free: (a: number, b: number) => void;
|
|
2782
|
+
readonly __wbg_layoutnd_free: (a: number, b: number) => void;
|
|
2783
|
+
readonly __wbg_louvainresult_free: (a: number, b: number) => void;
|
|
2784
|
+
readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
|
|
2785
|
+
readonly __wbg_metricreport_free: (a: number, b: number) => void;
|
|
2786
|
+
readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
|
|
2787
|
+
readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
|
|
2788
|
+
readonly __wbg_separationconstraint_free: (a: number, b: number) => void;
|
|
2789
|
+
readonly __wbg_sgdsolver_free: (a: number, b: number) => void;
|
|
2790
|
+
readonly __wbg_sparse12hoppairs_free: (a: number, b: number) => void;
|
|
2791
|
+
readonly __wbg_sparsebarrierstats_free: (a: number, b: number) => void;
|
|
2792
|
+
readonly __wbg_sparseprobabilities_free: (a: number, b: number) => void;
|
|
2793
|
+
readonly __wbg_spatialintruderrefiner_free: (a: number, b: number) => void;
|
|
2794
|
+
readonly __wbg_spatialrefinerroundstats_free: (a: number, b: number) => void;
|
|
2795
|
+
readonly __wbg_spatialrefinerstats_free: (a: number, b: number) => void;
|
|
2796
|
+
readonly __wbg_spectralembeddingresult_free: (a: number, b: number) => void;
|
|
2797
|
+
readonly __wbg_spectralmomentstats_free: (a: number, b: number) => void;
|
|
2798
|
+
readonly __wbg_stressmajorizationsolver_free: (a: number, b: number) => void;
|
|
2799
|
+
readonly __wbg_tfdpsolver_free: (a: number, b: number) => void;
|
|
2800
|
+
readonly __wbg_toruscrossing_free: (a: number, b: number) => void;
|
|
2801
|
+
readonly __wbg_tsnetsolver_free: (a: number, b: number) => void;
|
|
2802
|
+
readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
|
|
2803
|
+
readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
|
|
2804
|
+
readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
|
|
2805
|
+
readonly allPairsBfs: (a: number, b: number, c: number, d: number) => void;
|
|
2806
|
+
readonly angularResolutionV6: (a: number, b: number, c: number) => void;
|
|
2807
|
+
readonly applyRelativeDistanceFloor: (a: number, b: number, c: number, d: any, e: number, f: number, g: any, h: number, i: number, j: any, k: number, l: number, m: number, n: number) => void;
|
|
2808
|
+
readonly aspectRatioV6: (a: number, b: number) => void;
|
|
2809
|
+
readonly assignLayers: (a: number, b: number, c: number, d: number) => void;
|
|
2810
|
+
readonly bfsSingleSource: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2811
|
+
readonly buildGumap12hopPriorityCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number) => void;
|
|
2812
|
+
readonly buildHybridAdaptiveKnn: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number) => void;
|
|
2813
|
+
readonly buildPure2hopKnn: (a: number, b: number) => void;
|
|
2814
|
+
readonly buildRerankKnn: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2815
|
+
readonly chebyshevDogJlEmbedding: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => void;
|
|
2816
|
+
readonly chebyshevHeatSpmv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2817
|
+
readonly classicalMds2d: (a: number, b: number) => void;
|
|
2818
|
+
readonly coarsenGraph: (a: number, b: number, c: number, d: number) => void;
|
|
2819
|
+
readonly coarsenedgraphresult_coarseSizes: (a: number, b: number) => void;
|
|
2820
|
+
readonly coarsenedgraphresult_graph: (a: number) => number;
|
|
2821
|
+
readonly coarsenedgraphresult_nodeToCoarse: (a: number, b: number) => void;
|
|
2822
|
+
readonly coarsenedgraphresult_numClusters: (a: number) => number;
|
|
2823
|
+
readonly compute2hopNeighborhoodSizes: (a: number, b: number) => void;
|
|
2824
|
+
readonly computeDiffusionEmbedding: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
2825
|
+
readonly computeFuzzySimplicialSet: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2826
|
+
readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
|
|
2827
|
+
readonly computeKnnProbabilities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
2828
|
+
readonly computeMedian2hopPerplexity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2829
|
+
readonly computeNodewise2hopPerplexities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2830
|
+
readonly computeRegularizedDogVaradhanLandmarks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number) => void;
|
|
2831
|
+
readonly computeResistanceEmbedding: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
2832
|
+
readonly crossingEdges: (a: number, b: number, c: number) => void;
|
|
2833
|
+
readonly crossingEdgesTorus: (a: number, b: number, c: number) => void;
|
|
2834
|
+
readonly crossingSummary: (a: number, b: number, c: number) => void;
|
|
2835
|
+
readonly crossingpair_angleRad: (a: number, b: number) => void;
|
|
2836
|
+
readonly crossingpair_cosSq: (a: number) => number;
|
|
2837
|
+
readonly crossingpair_edgeA: (a: number) => number;
|
|
2838
|
+
readonly crossingpair_edgeB: (a: number) => number;
|
|
2839
|
+
readonly crossingpair_u1: (a: number) => number;
|
|
2840
|
+
readonly crossingpair_u2: (a: number) => number;
|
|
2841
|
+
readonly crossingpair_v1: (a: number) => number;
|
|
2842
|
+
readonly crossingpair_v2: (a: number) => number;
|
|
2843
|
+
readonly crossingsummary_angleCosSqSum: (a: number) => number;
|
|
2844
|
+
readonly crossingsummary_count: (a: number) => number;
|
|
2845
|
+
readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
|
|
2846
|
+
readonly csrgraph_degree: (a: number, b: number, c: number) => void;
|
|
2847
|
+
readonly csrgraph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
|
|
2848
|
+
readonly csrgraph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
|
|
2849
|
+
readonly csrgraph_indices: (a: number, b: number) => void;
|
|
2850
|
+
readonly csrgraph_indptr: (a: number, b: number) => void;
|
|
2851
|
+
readonly csrgraph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
|
|
2852
|
+
readonly csrgraph_isDirected: (a: number) => number;
|
|
2853
|
+
readonly csrgraph_isWeighted: (a: number) => number;
|
|
2854
|
+
readonly csrgraph_largestConnectedComponent: (a: number) => number;
|
|
2855
|
+
readonly csrgraph_neighbors: (a: number, b: number, c: number) => void;
|
|
2856
|
+
readonly csrgraph_nnz: (a: number) => number;
|
|
2857
|
+
readonly csrgraph_numEdges: (a: number) => number;
|
|
2858
|
+
readonly csrgraph_numNodes: (a: number) => number;
|
|
2859
|
+
readonly csrgraph_weights: (a: number, b: number) => void;
|
|
2860
|
+
readonly cycleEdges: (a: number, b: number) => void;
|
|
2861
|
+
readonly delaunayToCsr: (a: number, b: number) => void;
|
|
2862
|
+
readonly delaunayTriangulation: (a: number, b: number) => void;
|
|
2863
|
+
readonly delaunayresult_edges: (a: number, b: number) => void;
|
|
2864
|
+
readonly delaunayresult_numNodes: (a: number) => number;
|
|
2865
|
+
readonly delaunayresult_triangles: (a: number, b: number) => void;
|
|
2866
|
+
readonly dggPreservation: (a: number, b: number, c: number) => void;
|
|
2867
|
+
readonly dogstats_alpha: (a: number) => number;
|
|
2868
|
+
readonly dogstats_betaAuto: (a: number) => number;
|
|
2869
|
+
readonly dogstats_betaEff: (a: number) => number;
|
|
2870
|
+
readonly dogstats_degree: (a: number) => number;
|
|
2871
|
+
readonly dogstats_deltaPsd: (a: number) => number;
|
|
2872
|
+
readonly dogstats_hMin: (a: number) => number;
|
|
2873
|
+
readonly dogstats_kMed: (a: number) => number;
|
|
2874
|
+
readonly dogstats_kMin: (a: number) => number;
|
|
2875
|
+
readonly dogstats_momentStats: (a: number) => number;
|
|
2876
|
+
readonly dogstats_numLandmarks: (a: number) => number;
|
|
2877
|
+
readonly dogstats_t1: (a: number) => number;
|
|
2878
|
+
readonly dogstats_t2: (a: number) => number;
|
|
2879
|
+
readonly dogstats_tCoarse: (a: number) => number;
|
|
2880
|
+
readonly dogstats_usedCoarseScaffold: (a: number) => number;
|
|
2881
|
+
readonly dogvaradhanlandmarks_alpha: (a: number) => number;
|
|
2882
|
+
readonly dogvaradhanlandmarks_altDistances: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2883
|
+
readonly dogvaradhanlandmarks_betaAuto: (a: number) => number;
|
|
2884
|
+
readonly dogvaradhanlandmarks_betaEff: (a: number) => number;
|
|
2885
|
+
readonly dogvaradhanlandmarks_coarseTable: (a: number, b: number) => void;
|
|
2886
|
+
readonly dogvaradhanlandmarks_deltaPsd: (a: number) => number;
|
|
2887
|
+
readonly dogvaradhanlandmarks_landmarks: (a: number, b: number) => void;
|
|
2888
|
+
readonly dogvaradhanlandmarks_numLandmarks: (a: number) => number;
|
|
2889
|
+
readonly dogvaradhanlandmarks_numNodes: (a: number) => number;
|
|
2890
|
+
readonly dogvaradhanlandmarks_t1: (a: number) => number;
|
|
2891
|
+
readonly dogvaradhanlandmarks_t2: (a: number) => number;
|
|
2892
|
+
readonly dogvaradhanlandmarks_table: (a: number, b: number) => void;
|
|
2893
|
+
readonly dogvaradhanlandmarks_usedCoarseScaffold: (a: number) => number;
|
|
2894
|
+
readonly drngPreservation: (a: number, b: number, c: number) => void;
|
|
2895
|
+
readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2896
|
+
readonly eigenresult_invSqrtDeg: (a: number, b: number) => void;
|
|
2897
|
+
readonly eigenresult_lambdas: (a: number, b: number) => void;
|
|
2898
|
+
readonly eigenresult_numModes: (a: number) => number;
|
|
2899
|
+
readonly eigenresult_numNodes: (a: number) => number;
|
|
2900
|
+
readonly eigenresult_usedDenseFallback: (a: number) => number;
|
|
2901
|
+
readonly eigenresult_vectors: (a: number, b: number) => void;
|
|
2902
|
+
readonly evaluateMetrics: (a: number, b: number, c: number, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
2903
|
+
readonly extract1hop2hopCsr: (a: number, b: number) => void;
|
|
2904
|
+
readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2905
|
+
readonly fdebsolver_edgeOffsets: (a: number, b: number) => void;
|
|
2906
|
+
readonly fdebsolver_isFinished: (a: number) => number;
|
|
2907
|
+
readonly fdebsolver_iteration: (a: number) => number;
|
|
2908
|
+
readonly fdebsolver_new: (a: number, b: number, c: number, d: any) => void;
|
|
2909
|
+
readonly fdebsolver_numEdges: (a: number) => number;
|
|
2910
|
+
readonly fdebsolver_points: (a: number, b: number) => void;
|
|
2911
|
+
readonly fdebsolver_run: (a: number, b: number) => void;
|
|
2912
|
+
readonly fdebsolver_runSteps: (a: number, b: number, c: number) => void;
|
|
2913
|
+
readonly fdebsolver_status: (a: number, b: number) => void;
|
|
2914
|
+
readonly fdebsolver_step: (a: number, b: number) => void;
|
|
2915
|
+
readonly fdebsolver_totalIterations: (a: number) => number;
|
|
2916
|
+
readonly findAbParams: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2917
|
+
readonly fitfieldstats_inverseFfts: (a: number) => number;
|
|
2918
|
+
readonly fitfieldstats_kernelForwardFfts: (a: number) => number;
|
|
2919
|
+
readonly fitfieldstats_particleForwardFfts: (a: number) => number;
|
|
2920
|
+
readonly fitfieldstats_totalFft2dCalls: (a: number) => number;
|
|
2921
|
+
readonly forceatlas2solver_isFinished: (a: number) => number;
|
|
2922
|
+
readonly forceatlas2solver_iteration: (a: number) => number;
|
|
2923
|
+
readonly forceatlas2solver_new: (a: number, b: number, c: any) => void;
|
|
2924
|
+
readonly forceatlas2solver_numNodes: (a: number) => number;
|
|
2925
|
+
readonly forceatlas2solver_run: (a: number, b: number, c: number) => void;
|
|
2926
|
+
readonly forceatlas2solver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
2927
|
+
readonly forceatlas2solver_status: (a: number, b: number) => void;
|
|
2928
|
+
readonly forceatlas2solver_step: (a: number, b: number, c: number) => void;
|
|
2929
|
+
readonly forceatlas2solver_totalIterations: (a: number) => number;
|
|
2930
|
+
readonly gabrielGraphEdges: (a: number, b: number) => void;
|
|
2931
|
+
readonly gabrielGraphPropertyV6: (a: number, b: number, c: number) => void;
|
|
2932
|
+
readonly generateLayeredConstraints: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2933
|
+
readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
|
|
2934
|
+
readonly gumapsolver_a: (a: number) => number;
|
|
2935
|
+
readonly gumapsolver_ab: (a: number, b: number) => void;
|
|
2936
|
+
readonly gumapsolver_b: (a: number) => number;
|
|
2937
|
+
readonly gumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => void;
|
|
2938
|
+
readonly gumapsolver_fromGraphDog: (a: number, b: number, c: any, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number) => void;
|
|
2939
|
+
readonly gumapsolver_fromKnn: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number) => void;
|
|
2940
|
+
readonly gumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
2941
|
+
readonly gumapsolver_isFinished: (a: number) => number;
|
|
2942
|
+
readonly gumapsolver_iteration: (a: number) => number;
|
|
2943
|
+
readonly gumapsolver_numEdges: (a: number) => number;
|
|
2944
|
+
readonly gumapsolver_numNodes: (a: number) => number;
|
|
2945
|
+
readonly gumapsolver_run: (a: number, b: number, c: number) => void;
|
|
2946
|
+
readonly gumapsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
2947
|
+
readonly gumapsolver_status: (a: number, b: number) => void;
|
|
2948
|
+
readonly gumapsolver_step: (a: number, b: number, c: number) => void;
|
|
2949
|
+
readonly gumapsolver_totalIterations: (a: number) => number;
|
|
2950
|
+
readonly hybridknnresult_avgDeg1: (a: number) => number;
|
|
2951
|
+
readonly hybridknnresult_avgDeg2: (a: number) => number;
|
|
2952
|
+
readonly hybridknnresult_avgRowK: (a: number) => number;
|
|
2953
|
+
readonly hybridknnresult_knn: (a: number) => number;
|
|
2954
|
+
readonly hybridknnresult_nFilledResidual: (a: number) => number;
|
|
2955
|
+
readonly hybridknnresult_nPure2hopRows: (a: number) => number;
|
|
2956
|
+
readonly hybridknnresult_nnz: (a: number) => number;
|
|
2957
|
+
readonly ibumapsolver_a: (a: number) => number;
|
|
2958
|
+
readonly ibumapsolver_ab: (a: number, b: number) => void;
|
|
2959
|
+
readonly ibumapsolver_b: (a: number) => number;
|
|
2960
|
+
readonly ibumapsolver_currentRho: (a: number) => number;
|
|
2961
|
+
readonly ibumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: any) => void;
|
|
2962
|
+
readonly ibumapsolver_fromKnn: (a: number, b: number, c: any) => void;
|
|
2963
|
+
readonly ibumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
2964
|
+
readonly ibumapsolver_isFinished: (a: number) => number;
|
|
2965
|
+
readonly ibumapsolver_iteration: (a: number) => number;
|
|
2966
|
+
readonly ibumapsolver_new: (a: number, b: number, c: any) => void;
|
|
2967
|
+
readonly ibumapsolver_numEdges: (a: number) => number;
|
|
2968
|
+
readonly ibumapsolver_numNodes: (a: number) => number;
|
|
2969
|
+
readonly ibumapsolver_run: (a: number, b: number, c: number) => void;
|
|
2970
|
+
readonly ibumapsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
2971
|
+
readonly ibumapsolver_status: (a: number, b: number) => void;
|
|
2972
|
+
readonly ibumapsolver_step: (a: number, b: number, c: number) => void;
|
|
2973
|
+
readonly ibumapsolver_totalFft2dCalls: (a: number) => number;
|
|
2974
|
+
readonly ibumapsolver_totalIterations: (a: number) => number;
|
|
2975
|
+
readonly idealEdgeLengthsV6: (a: number, b: number, c: number) => void;
|
|
2976
|
+
readonly idealEdgeLengthsWithUnit: (a: number, b: number, c: number, d: number) => void;
|
|
2977
|
+
readonly kamadakawaisolver_fromDistanceMatrix: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number) => void;
|
|
2978
|
+
readonly kamadakawaisolver_fromGraph: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => void;
|
|
2979
|
+
readonly kamadakawaisolver_isFinished: (a: number) => number;
|
|
2980
|
+
readonly kamadakawaisolver_iteration: (a: number) => number;
|
|
2981
|
+
readonly kamadakawaisolver_numNodes: (a: number) => number;
|
|
2982
|
+
readonly kamadakawaisolver_run: (a: number, b: number, c: number) => void;
|
|
2983
|
+
readonly kamadakawaisolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
2984
|
+
readonly kamadakawaisolver_status: (a: number, b: number) => void;
|
|
2985
|
+
readonly kamadakawaisolver_step: (a: number, b: number, c: number) => void;
|
|
2986
|
+
readonly kamadakawaisolver_totalIterations: (a: number) => number;
|
|
2987
|
+
readonly kmeansPlusPlus: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number) => void;
|
|
2988
|
+
readonly kmeansresult_centroids: (a: number, b: number) => void;
|
|
2989
|
+
readonly kmeansresult_converged: (a: number) => number;
|
|
2990
|
+
readonly kmeansresult_dims: (a: number) => number;
|
|
2991
|
+
readonly kmeansresult_inertia: (a: number) => number;
|
|
2992
|
+
readonly kmeansresult_iterations: (a: number) => number;
|
|
2993
|
+
readonly kmeansresult_k: (a: number) => number;
|
|
2994
|
+
readonly kmeansresult_labels: (a: number, b: number) => void;
|
|
2995
|
+
readonly knngraph_distances: (a: number, b: number) => void;
|
|
2996
|
+
readonly knngraph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2997
|
+
readonly knngraph_indices: (a: number, b: number) => void;
|
|
2998
|
+
readonly knngraph_indptr: (a: number, b: number) => void;
|
|
2999
|
+
readonly knngraph_nnz: (a: number) => number;
|
|
3000
|
+
readonly knngraph_numNodes: (a: number) => number;
|
|
3001
|
+
readonly korenSpectralInit: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
3002
|
+
readonly labelPropagation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3003
|
+
readonly largestconnectedcomponentresult_graph: (a: number) => number;
|
|
3004
|
+
readonly largestconnectedcomponentresult_nodeIds: (a: number, b: number) => void;
|
|
3005
|
+
readonly largestconnectedcomponentresult_originalNodeIds: (a: number, b: number) => void;
|
|
3006
|
+
readonly layout2d_coordsLen: (a: number) => number;
|
|
3007
|
+
readonly layout2d_coordsPtr: (a: number) => number;
|
|
3008
|
+
readonly layout2d_copyCoords: (a: number, b: number) => void;
|
|
3009
|
+
readonly layout2d_fromCoords: (a: number, b: number, c: number) => void;
|
|
3010
|
+
readonly layout2d_init: (a: number, b: number, c: number, d: number) => void;
|
|
3011
|
+
readonly layout2d_isAllFinite: (a: number) => number;
|
|
3012
|
+
readonly layout2d_isEmpty: (a: number) => number;
|
|
3013
|
+
readonly layout2d_len: (a: number) => number;
|
|
3014
|
+
readonly layout2d_normalizeStd: (a: number, b: number, c: number, d: number) => void;
|
|
3015
|
+
readonly layout2d_numNodes: (a: number) => number;
|
|
3016
|
+
readonly layout2d_setX: (a: number, b: number, c: number, d: number) => void;
|
|
3017
|
+
readonly layout2d_setY: (a: number, b: number, c: number, d: number) => void;
|
|
3018
|
+
readonly layout2d_x: (a: number, b: number, c: number) => void;
|
|
3019
|
+
readonly layout2d_y: (a: number, b: number, c: number) => void;
|
|
3020
|
+
readonly layout2d_zeros: (a: number, b: number) => void;
|
|
3021
|
+
readonly layoutnd_coordsLen: (a: number) => number;
|
|
3022
|
+
readonly layoutnd_coordsPtr: (a: number) => number;
|
|
3023
|
+
readonly layoutnd_copyCoords: (a: number, b: number) => void;
|
|
3024
|
+
readonly layoutnd_dim: (a: number) => number;
|
|
3025
|
+
readonly layoutnd_fromCoords: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3026
|
+
readonly layoutnd_isAllFinite: (a: number) => number;
|
|
3027
|
+
readonly layoutnd_isEmpty: (a: number) => number;
|
|
3028
|
+
readonly layoutnd_len: (a: number) => number;
|
|
3029
|
+
readonly layoutnd_numNodes: (a: number) => number;
|
|
3030
|
+
readonly layoutnd_zeros: (a: number, b: number, c: number) => void;
|
|
3031
|
+
readonly loadDataset: (a: number, b: number, c: number) => void;
|
|
3032
|
+
readonly louvainCommunities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
3033
|
+
readonly louvainresult_labels: (a: number, b: number) => void;
|
|
3034
|
+
readonly louvainresult_modularity: (a: number) => number;
|
|
3035
|
+
readonly louvainresult_numCommunities: (a: number) => number;
|
|
3036
|
+
readonly louvainresult_passes: (a: number) => number;
|
|
3037
|
+
readonly manifoldlayout2d_applyTangentStep: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3038
|
+
readonly manifoldlayout2d_coords: (a: number, b: number) => void;
|
|
3039
|
+
readonly manifoldlayout2d_fromCoords: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3040
|
+
readonly manifoldlayout2d_fromLayout: (a: number, b: number, c: number, d: number) => void;
|
|
3041
|
+
readonly manifoldlayout2d_geodesicDistance: (a: number, b: number, c: number, d: number) => void;
|
|
3042
|
+
readonly manifoldlayout2d_hyperbolicPoincare: (a: number, b: number) => void;
|
|
3043
|
+
readonly manifoldlayout2d_isAllFinite: (a: number) => number;
|
|
3044
|
+
readonly manifoldlayout2d_isEmpty: (a: number) => number;
|
|
3045
|
+
readonly manifoldlayout2d_kind: (a: number, b: number) => void;
|
|
3046
|
+
readonly manifoldlayout2d_len: (a: number) => number;
|
|
3047
|
+
readonly manifoldlayout2d_manifold: (a: number, b: number) => void;
|
|
3048
|
+
readonly manifoldlayout2d_numNodes: (a: number) => number;
|
|
3049
|
+
readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
|
|
3050
|
+
readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3051
|
+
readonly manifoldlayout2d_spherical: (a: number, b: number) => void;
|
|
3052
|
+
readonly manifoldlayout2d_tangentDelta: (a: number, b: number, c: number, d: number) => void;
|
|
3053
|
+
readonly manifoldlayout2d_toLayout: (a: number) => number;
|
|
3054
|
+
readonly manifoldlayout2d_torus2d: (a: number, b: number) => void;
|
|
3055
|
+
readonly manifoldlayout2d_x: (a: number, b: number, c: number) => void;
|
|
3056
|
+
readonly manifoldlayout2d_y: (a: number, b: number, c: number) => void;
|
|
3057
|
+
readonly manifoldlayout2d_zeros: (a: number, b: number, c: number, d: number) => void;
|
|
3058
|
+
readonly metricreport_angularResolution: (a: number, b: number) => void;
|
|
3059
|
+
readonly metricreport_aspectRatio: (a: number, b: number) => void;
|
|
3060
|
+
readonly metricreport_crossingAngle: (a: number, b: number) => void;
|
|
3061
|
+
readonly metricreport_crossingNumber: (a: number) => number;
|
|
3062
|
+
readonly metricreport_gabrielGraphPreservation: (a: number, b: number) => void;
|
|
3063
|
+
readonly metricreport_gabrielGraphProperty: (a: number, b: number) => void;
|
|
3064
|
+
readonly metricreport_idealEdgeLengths: (a: number, b: number) => void;
|
|
3065
|
+
readonly metricreport_neighborhoodPreservation1Hop: (a: number, b: number) => void;
|
|
3066
|
+
readonly metricreport_neighborhoodPreservation2Hop: (a: number, b: number) => void;
|
|
3067
|
+
readonly metricreport_nodeResolution: (a: number, b: number) => void;
|
|
3068
|
+
readonly metricreport_relativeNeighborhoodPreservation: (a: number, b: number) => void;
|
|
3069
|
+
readonly metricreport_sampledCrossingNumber: (a: number, b: number) => void;
|
|
3070
|
+
readonly metricreport_sampledNp1: (a: number, b: number) => void;
|
|
3071
|
+
readonly metricreport_sampledNp2: (a: number, b: number) => void;
|
|
3072
|
+
readonly metricreport_sampledScaleNormalizedStress: (a: number, b: number) => void;
|
|
3073
|
+
readonly metricreport_scaleNormalizedStress: (a: number, b: number) => void;
|
|
3074
|
+
readonly metricreport_toRecord: (a: number, b: number) => void;
|
|
3075
|
+
readonly neighborhoodPreservation1Hop: (a: number, b: number, c: number) => void;
|
|
3076
|
+
readonly neighborhoodPreservation2HopV6: (a: number, b: number, c: number) => void;
|
|
3077
|
+
readonly nodeResolutionV6: (a: number, b: number) => void;
|
|
3078
|
+
readonly normalizeLayout2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3079
|
+
readonly parseCsrCsv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3080
|
+
readonly partialBfsKnn: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3081
|
+
readonly pivotMdsInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: any) => void;
|
|
3082
|
+
readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
|
|
3083
|
+
readonly prismDistortion: (a: number, b: number, c: number) => void;
|
|
3084
|
+
readonly prismDistortionWithEdges: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3085
|
+
readonly prismdistortion_sigmaDisp: (a: number) => number;
|
|
3086
|
+
readonly prismdistortion_sigmaDist: (a: number) => number;
|
|
3087
|
+
readonly prismoverlapremoval_fromRadii: (a: number, b: number, c: number, d: any) => void;
|
|
3088
|
+
readonly prismoverlapremoval_isFinished: (a: number) => number;
|
|
3089
|
+
readonly prismoverlapremoval_iteration: (a: number) => number;
|
|
3090
|
+
readonly prismoverlapremoval_lastOverlapCount: (a: number) => number;
|
|
3091
|
+
readonly prismoverlapremoval_new: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
3092
|
+
readonly prismoverlapremoval_numNodes: (a: number) => number;
|
|
3093
|
+
readonly prismoverlapremoval_run: (a: number, b: number, c: number) => void;
|
|
3094
|
+
readonly prismoverlapremoval_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
3095
|
+
readonly prismoverlapremoval_status: (a: number, b: number) => void;
|
|
3096
|
+
readonly prismoverlapremoval_step: (a: number, b: number, c: number) => void;
|
|
3097
|
+
readonly prismoverlapremoval_totalIterations: (a: number) => number;
|
|
3098
|
+
readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
3099
|
+
readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3100
|
+
readonly projectClusteredRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3101
|
+
readonly projectLayoutAxis: (a: number, b: number, c: any, d: any) => void;
|
|
3102
|
+
readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3103
|
+
readonly rdMds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
3104
|
+
readonly rectangleOverlaps: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3105
|
+
readonly relativeNeighborhoodEdges: (a: number, b: number) => void;
|
|
3106
|
+
readonly removeCycles: (a: number, b: number) => void;
|
|
3107
|
+
readonly representativeMds: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3108
|
+
readonly sampledCrossingNumber: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
3109
|
+
readonly sampledNp1: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
3110
|
+
readonly sampledNp2: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
3111
|
+
readonly sampledScaleNormalizedStress: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
3112
|
+
readonly scaleNormalizedStress: (a: number, b: number, c: number) => void;
|
|
3113
|
+
readonly scaleNormalizedStressFromDistances: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3114
|
+
readonly selectMaxminSpPivots: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3115
|
+
readonly separationconstraint_gap: (a: number) => number;
|
|
3116
|
+
readonly separationconstraint_left: (a: number) => number;
|
|
3117
|
+
readonly separationconstraint_new: (a: number, b: number, c: number, d: number) => void;
|
|
3118
|
+
readonly separationconstraint_right: (a: number) => number;
|
|
3119
|
+
readonly setPanicHook: () => void;
|
|
3120
|
+
readonly sgdsolver_currentEta: (a: number) => number;
|
|
3121
|
+
readonly sgdsolver_dogStats: (a: number) => number;
|
|
3122
|
+
readonly sgdsolver_fromPairs: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: any, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number) => void;
|
|
3123
|
+
readonly sgdsolver_fromPairsWithHinges: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: any, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number) => void;
|
|
3124
|
+
readonly sgdsolver_full: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3125
|
+
readonly sgdsolver_isFinished: (a: number) => number;
|
|
3126
|
+
readonly sgdsolver_iteration: (a: number) => number;
|
|
3127
|
+
readonly sgdsolver_numHinges: (a: number) => number;
|
|
3128
|
+
readonly sgdsolver_numNodes: (a: number) => number;
|
|
3129
|
+
readonly sgdsolver_numSprings: (a: number) => number;
|
|
3130
|
+
readonly sgdsolver_omega: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number, i: any, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number) => void;
|
|
3131
|
+
readonly sgdsolver_pacmapGraph: (a: number, b: number, c: any) => void;
|
|
3132
|
+
readonly sgdsolver_randomPair: (a: number, b: number, c: any, d: any, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
3133
|
+
readonly sgdsolver_run: (a: number, b: number, c: number) => void;
|
|
3134
|
+
readonly sgdsolver_runManifold: (a: number, b: number, c: number) => void;
|
|
3135
|
+
readonly sgdsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
3136
|
+
readonly sgdsolver_runStepsManifold: (a: number, b: number, c: number, d: number) => void;
|
|
3137
|
+
readonly sgdsolver_sgd2: (a: number, b: number, c: any) => void;
|
|
3138
|
+
readonly sgdsolver_snapTFdp: (a: number, b: number, c: any) => void;
|
|
3139
|
+
readonly sgdsolver_sparseBarrierDog: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: number, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number, c2: number, d2: number, e2: number) => void;
|
|
3140
|
+
readonly sgdsolver_sparseBarrierFromLandmarks: (a: number, b: number, c: number, d: number, e: number, f: any, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number) => void;
|
|
3141
|
+
readonly sgdsolver_stats: (a: number) => number;
|
|
3142
|
+
readonly sgdsolver_status: (a: number, b: number) => void;
|
|
3143
|
+
readonly sgdsolver_step: (a: number, b: number, c: number) => void;
|
|
3144
|
+
readonly sgdsolver_stepManifold: (a: number, b: number, c: number) => void;
|
|
3145
|
+
readonly sgdsolver_streamingNegatives: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number) => void;
|
|
3146
|
+
readonly sgdsolver_totalIterations: (a: number) => number;
|
|
3147
|
+
readonly smallestLaplacianEigenpairs: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
3148
|
+
readonly sparse12hoppairs_num1hop: (a: number) => number;
|
|
3149
|
+
readonly sparse12hoppairs_num2hop: (a: number) => number;
|
|
3150
|
+
readonly sparse12hoppairs_u1: (a: number, b: number) => void;
|
|
3151
|
+
readonly sparse12hoppairs_u2: (a: number, b: number) => void;
|
|
3152
|
+
readonly sparse12hoppairs_v1: (a: number, b: number) => void;
|
|
3153
|
+
readonly sparse12hoppairs_v2: (a: number, b: number) => void;
|
|
3154
|
+
readonly sparsebarrierstats_dFloor: (a: number) => number;
|
|
3155
|
+
readonly sparsebarrierstats_gammaEff: (a: number) => number;
|
|
3156
|
+
readonly sparsebarrierstats_nPairs1hop: (a: number) => number;
|
|
3157
|
+
readonly sparsebarrierstats_nPairs2hop: (a: number) => number;
|
|
3158
|
+
readonly sparsebarrierstats_nPairsHinge: (a: number) => number;
|
|
3159
|
+
readonly sparsebarrierstats_nPairsNon2: (a: number) => number;
|
|
3160
|
+
readonly sparsebarrierstats_nPairsTwoSided: (a: number) => number;
|
|
3161
|
+
readonly sparsebarrierstats_perNodeNegUsed: (a: number) => number;
|
|
3162
|
+
readonly sparsebarrierstats_perplexitySource: (a: number, b: number) => void;
|
|
3163
|
+
readonly sparsebarrierstats_perplexityVal: (a: number) => number;
|
|
3164
|
+
readonly sparseprobabilities_indices: (a: number, b: number) => void;
|
|
3165
|
+
readonly sparseprobabilities_indptr: (a: number, b: number) => void;
|
|
3166
|
+
readonly sparseprobabilities_nnz: (a: number) => number;
|
|
3167
|
+
readonly sparseprobabilities_numNodes: (a: number) => number;
|
|
3168
|
+
readonly sparseprobabilities_values: (a: number, b: number) => void;
|
|
3169
|
+
readonly spatialintruderrefiner_currentKCap: (a: number) => number;
|
|
3170
|
+
readonly spatialintruderrefiner_isFinished: (a: number) => number;
|
|
3171
|
+
readonly spatialintruderrefiner_iteration: (a: number) => number;
|
|
3172
|
+
readonly spatialintruderrefiner_new: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number) => void;
|
|
3173
|
+
readonly spatialintruderrefiner_numNodes: (a: number) => number;
|
|
3174
|
+
readonly spatialintruderrefiner_run: (a: number, b: number, c: number) => void;
|
|
3175
|
+
readonly spatialintruderrefiner_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
3176
|
+
readonly spatialintruderrefiner_setKCap: (a: number, b: number, c: number) => void;
|
|
3177
|
+
readonly spatialintruderrefiner_stats: (a: number) => number;
|
|
3178
|
+
readonly spatialintruderrefiner_status: (a: number, b: number) => void;
|
|
3179
|
+
readonly spatialintruderrefiner_step: (a: number, b: number, c: number) => void;
|
|
3180
|
+
readonly spatialintruderrefiner_totalIterations: (a: number) => number;
|
|
3181
|
+
readonly spatialrefinerroundstats_nAnchors: (a: number) => number;
|
|
3182
|
+
readonly spatialrefinerroundstats_nFn: (a: number) => number;
|
|
3183
|
+
readonly spatialrefinerroundstats_nFp: (a: number) => number;
|
|
3184
|
+
readonly spatialrefinerroundstats_nPairsTotal: (a: number) => number;
|
|
3185
|
+
readonly spatialrefinerroundstats_round: (a: number) => number;
|
|
3186
|
+
readonly spatialrefinerroundstats_skipped: (a: number) => number;
|
|
3187
|
+
readonly spatialrefinerstats_dFloor: (a: number) => number;
|
|
3188
|
+
readonly spatialrefinerstats_finalScale: (a: number) => number;
|
|
3189
|
+
readonly spatialrefinerstats_hingeFp: (a: number) => number;
|
|
3190
|
+
readonly spatialrefinerstats_initialScale: (a: number) => number;
|
|
3191
|
+
readonly spatialrefinerstats_nAnchorsTotal: (a: number) => number;
|
|
3192
|
+
readonly spatialrefinerstats_nFnTotal: (a: number) => number;
|
|
3193
|
+
readonly spatialrefinerstats_nFpTotal: (a: number) => number;
|
|
3194
|
+
readonly spatialrefinerstats_nPairsTotal: (a: number) => number;
|
|
3195
|
+
readonly spatialrefinerstats_roundStats: (a: number, b: number) => void;
|
|
3196
|
+
readonly spatialrefinerstats_roundsExecuted: (a: number) => number;
|
|
3197
|
+
readonly spatialrefinerstats_scaleRatio: (a: number) => number;
|
|
3198
|
+
readonly spatialrefinerstats_usedHubFallback: (a: number) => number;
|
|
3199
|
+
readonly spectralClustering: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number) => void;
|
|
3200
|
+
readonly spectralMomentStats: (a: number) => number;
|
|
3201
|
+
readonly spectralembeddingresult_coords: (a: number, b: number) => void;
|
|
3202
|
+
readonly spectralembeddingresult_dim: (a: number) => number;
|
|
3203
|
+
readonly spectralembeddingresult_lambdas: (a: number, b: number) => void;
|
|
3204
|
+
readonly spectralembeddingresult_numNodes: (a: number) => number;
|
|
3205
|
+
readonly spectralembeddingresult_tUsed: (a: number, b: number) => void;
|
|
3206
|
+
readonly spectralmomentstats_degCv: (a: number) => number;
|
|
3207
|
+
readonly spectralmomentstats_leafFraction: (a: number) => number;
|
|
3208
|
+
readonly spectralmomentstats_meanDegree: (a: number) => number;
|
|
3209
|
+
readonly spectralmomentstats_sigmaLambda: (a: number) => number;
|
|
3210
|
+
readonly spectralmomentstats_sigmaLambdaSq: (a: number) => number;
|
|
3211
|
+
readonly sphericalDistance: (a: number, b: number, c: number, d: number) => number;
|
|
3212
|
+
readonly stressmajorizationsolver_computeStress: (a: number, b: number, c: number) => void;
|
|
3213
|
+
readonly stressmajorizationsolver_fromDistanceMatrix: (a: number, b: number, c: number, d: number, e: any, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
3214
|
+
readonly stressmajorizationsolver_fromGraph: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3215
|
+
readonly stressmajorizationsolver_isFinished: (a: number) => number;
|
|
3216
|
+
readonly stressmajorizationsolver_iteration: (a: number) => number;
|
|
3217
|
+
readonly stressmajorizationsolver_lastStress: (a: number, b: number) => void;
|
|
3218
|
+
readonly stressmajorizationsolver_numNodes: (a: number) => number;
|
|
3219
|
+
readonly stressmajorizationsolver_run: (a: number, b: number, c: number) => void;
|
|
3220
|
+
readonly stressmajorizationsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
3221
|
+
readonly stressmajorizationsolver_status: (a: number, b: number) => void;
|
|
3222
|
+
readonly stressmajorizationsolver_step: (a: number, b: number, c: number) => void;
|
|
3223
|
+
readonly stressmajorizationsolver_totalIterations: (a: number) => number;
|
|
3224
|
+
readonly sweepCrossingAngle: (a: number, b: number, c: number) => void;
|
|
3225
|
+
readonly sweepCrossingNumber: (a: number, b: number, c: number) => void;
|
|
3226
|
+
readonly symmetrizeRowNormalized: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3227
|
+
readonly tfdpsolver_currentRho: (a: number) => number;
|
|
3228
|
+
readonly tfdpsolver_fromKnn: (a: number, b: any, c: any, d: any, e: any) => void;
|
|
3229
|
+
readonly tfdpsolver_isFinished: (a: number) => number;
|
|
3230
|
+
readonly tfdpsolver_iteration: (a: number) => number;
|
|
3231
|
+
readonly tfdpsolver_new: (a: number, b: number, c: any) => void;
|
|
3232
|
+
readonly tfdpsolver_numEdges: (a: number) => number;
|
|
3233
|
+
readonly tfdpsolver_numNodes: (a: number) => number;
|
|
3234
|
+
readonly tfdpsolver_run: (a: number, b: number, c: number) => void;
|
|
3235
|
+
readonly tfdpsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
3236
|
+
readonly tfdpsolver_status: (a: number, b: number) => void;
|
|
3237
|
+
readonly tfdpsolver_step: (a: number, b: number, c: number) => void;
|
|
3238
|
+
readonly tfdpsolver_totalFft2dCalls: (a: number) => number;
|
|
3239
|
+
readonly tfdpsolver_totalIterations: (a: number) => number;
|
|
3240
|
+
readonly torusCrossingNumber: (a: number, b: number, c: number) => void;
|
|
3241
|
+
readonly torusDistance: (a: number, b: number, c: number, d: number) => number;
|
|
3242
|
+
readonly toruscrossing_edgeA: (a: number) => number;
|
|
3243
|
+
readonly toruscrossing_edgeB: (a: number) => number;
|
|
3244
|
+
readonly toruscrossing_segA: (a: number, b: number) => void;
|
|
3245
|
+
readonly toruscrossing_segB: (a: number, b: number) => void;
|
|
3246
|
+
readonly tsnetsolver_currentStageLr: (a: number) => number;
|
|
3247
|
+
readonly tsnetsolver_fromGraphPartialBfs: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: any, r1: number, s1: number, t1: number, u1: number) => void;
|
|
3248
|
+
readonly tsnetsolver_fromGraphRowNormalized: (a: number, b: number, c: any, d: number, e: number, f: any, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: any, j1: number, k1: number, l1: number, m1: number) => void;
|
|
3249
|
+
readonly tsnetsolver_fromKnn: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: any, r1: number, s1: number, t1: number, u1: number) => void;
|
|
3250
|
+
readonly tsnetsolver_fromProbabilities: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: any, g1: number, h1: number, i1: number, j1: number) => void;
|
|
3251
|
+
readonly tsnetsolver_isFinished: (a: number) => number;
|
|
3252
|
+
readonly tsnetsolver_iteration: (a: number) => number;
|
|
3253
|
+
readonly tsnetsolver_lastFftStats: (a: number) => number;
|
|
3254
|
+
readonly tsnetsolver_numNodes: (a: number) => number;
|
|
3255
|
+
readonly tsnetsolver_pure2Hop: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: any, t1: number, u1: number, v1: number, w1: number) => void;
|
|
3256
|
+
readonly tsnetsolver_run: (a: number, b: number, c: number) => void;
|
|
3257
|
+
readonly tsnetsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
3258
|
+
readonly tsnetsolver_stageIndex: (a: number) => number;
|
|
3259
|
+
readonly tsnetsolver_status: (a: number, b: number) => void;
|
|
3260
|
+
readonly tsnetsolver_step: (a: number, b: number, c: number) => void;
|
|
3261
|
+
readonly tsnetsolver_totalFft2dCalls: (a: number) => number;
|
|
3262
|
+
readonly tsnetsolver_totalIterations: (a: number) => number;
|
|
3263
|
+
readonly twohopcsr_hop1: (a: number) => number;
|
|
3264
|
+
readonly twohopcsr_hop2: (a: number) => number;
|
|
3265
|
+
readonly twohopknnresult_avgDeg1: (a: number) => number;
|
|
3266
|
+
readonly twohopknnresult_avgDeg2: (a: number) => number;
|
|
3267
|
+
readonly twohopknnresult_k2Deg: (a: number, b: number) => void;
|
|
3268
|
+
readonly twohopknnresult_knn: (a: number) => number;
|
|
3269
|
+
readonly twohopknnresult_nnz: (a: number) => number;
|
|
3270
|
+
readonly wasmMemory: () => any;
|
|
3271
|
+
readonly wasm_start: () => void;
|
|
3272
|
+
readonly wrapTorusPoint: (a: number, b: number, c: number) => void;
|
|
3273
|
+
readonly yifanhusolver_currentLevel: (a: number) => number;
|
|
3274
|
+
readonly yifanhusolver_isFinished: (a: number) => number;
|
|
3275
|
+
readonly yifanhusolver_iteration: (a: number) => number;
|
|
3276
|
+
readonly yifanhusolver_new: (a: number, b: number, c: any) => void;
|
|
3277
|
+
readonly yifanhusolver_numLevels: (a: number) => number;
|
|
3278
|
+
readonly yifanhusolver_numNodes: (a: number) => number;
|
|
3279
|
+
readonly yifanhusolver_run: (a: number, b: number, c: number) => void;
|
|
3280
|
+
readonly yifanhusolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
3281
|
+
readonly yifanhusolver_status: (a: number, b: number) => void;
|
|
3282
|
+
readonly yifanhusolver_step: (a: number, b: number, c: number) => void;
|
|
3283
|
+
readonly yifanhusolver_totalIterations: (a: number) => number;
|
|
3284
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
3285
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
3286
|
+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
3287
|
+
readonly __wbindgen_export4: (a: number) => void;
|
|
3288
|
+
readonly __wbindgen_export5: () => number;
|
|
3289
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
3290
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
3291
|
+
readonly __wbindgen_export6: (a: number) => void;
|
|
3292
|
+
readonly __wbindgen_export7: (a: number, b: number) => void;
|
|
3293
|
+
readonly __wbindgen_start: () => void;
|
|
3294
|
+
}
|
|
3295
|
+
|
|
3296
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
3297
|
+
|
|
3298
|
+
/**
|
|
3299
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
3300
|
+
* a precompiled `WebAssembly.Module`.
|
|
3301
|
+
*
|
|
3302
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
3303
|
+
*
|
|
3304
|
+
* @returns {InitOutput}
|
|
3305
|
+
*/
|
|
3306
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
3307
|
+
|
|
3308
|
+
/**
|
|
3309
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
3310
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
3311
|
+
*
|
|
3312
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
3313
|
+
*
|
|
3314
|
+
* @returns {Promise<InitOutput>}
|
|
3315
|
+
*/
|
|
3316
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|