egraph 6.0.0-alpha.6 → 6.0.0-alpha.7
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/package.json +1 -1
- package/pkg/egraph_wasm.d.ts +1562 -170
- package/pkg/egraph_wasm.js +6420 -2238
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +1622 -84
- package/pkg/index.js +86 -2
package/pkg/egraph_wasm.d.ts
CHANGED
|
@@ -1,6 +1,268 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Batched-RHS solution and diagnostics returned by `AmgPcgSolver.solveBatch()`.
|
|
6
|
+
*/
|
|
7
|
+
export class AmgPcgBatchResult {
|
|
8
|
+
private constructor();
|
|
9
|
+
free(): void;
|
|
10
|
+
[Symbol.dispose](): void;
|
|
11
|
+
/**
|
|
12
|
+
* Returns per-column convergence flags (`Uint8Array` with `1` for converged, `0` otherwise).
|
|
13
|
+
*/
|
|
14
|
+
convergedPerCol(): Uint8Array;
|
|
15
|
+
/**
|
|
16
|
+
* Returns per-column iteration counts (`Uint32Array`).
|
|
17
|
+
*/
|
|
18
|
+
iterationsPerCol(): Uint32Array;
|
|
19
|
+
/**
|
|
20
|
+
* Returns per-column relative residual norms (`Float64Array`).
|
|
21
|
+
*/
|
|
22
|
+
relativeResiduals(): Float64Array;
|
|
23
|
+
/**
|
|
24
|
+
* Returns per-column true residual norms (`Float64Array`).
|
|
25
|
+
*/
|
|
26
|
+
residualNorms(): Float64Array;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a flat row-major `(numNodes, ncols)` `Float64Array` copy of all solution columns.
|
|
29
|
+
*/
|
|
30
|
+
x(): Float64Array;
|
|
31
|
+
/**
|
|
32
|
+
* `true` if every column converged within tolerance.
|
|
33
|
+
*/
|
|
34
|
+
readonly allConverged: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Maximum PCG iterations executed across all columns.
|
|
37
|
+
*/
|
|
38
|
+
readonly maxIterationsUsed: number;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum relative residual norm across all columns.
|
|
41
|
+
*/
|
|
42
|
+
readonly maxRelativeResidual: number;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum true residual norm across all columns.
|
|
45
|
+
*/
|
|
46
|
+
readonly maxResidualNorm: number;
|
|
47
|
+
/**
|
|
48
|
+
* Minimum PCG iterations executed across all columns.
|
|
49
|
+
*/
|
|
50
|
+
readonly minIterationsUsed: number;
|
|
51
|
+
/**
|
|
52
|
+
* Number of RHS columns (`ncols`).
|
|
53
|
+
*/
|
|
54
|
+
readonly ncols: number;
|
|
55
|
+
/**
|
|
56
|
+
* Number of rows (`numNodes`).
|
|
57
|
+
*/
|
|
58
|
+
readonly numNodes: number;
|
|
59
|
+
/**
|
|
60
|
+
* Sum of PCG iterations across all columns.
|
|
61
|
+
*/
|
|
62
|
+
readonly totalIterations: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Single-RHS solution and diagnostics returned by `AmgPcgSolver.solve()`.
|
|
67
|
+
*/
|
|
68
|
+
export class AmgPcgSolveResult {
|
|
69
|
+
private constructor();
|
|
70
|
+
free(): void;
|
|
71
|
+
[Symbol.dispose](): void;
|
|
72
|
+
/**
|
|
73
|
+
* Returns a copy of the solution vector (`Float64Array`).
|
|
74
|
+
*/
|
|
75
|
+
x(): Float64Array;
|
|
76
|
+
/**
|
|
77
|
+
* `true` if the stopping tolerance was met.
|
|
78
|
+
*/
|
|
79
|
+
readonly converged: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Number of PCG iterations executed.
|
|
82
|
+
*/
|
|
83
|
+
readonly iterations: number;
|
|
84
|
+
/**
|
|
85
|
+
* Relative residual norm `||b - A x||_2 / ||b||_2`.
|
|
86
|
+
*/
|
|
87
|
+
readonly relativeResidual: number;
|
|
88
|
+
/**
|
|
89
|
+
* True Euclidean residual norm `||b - A x||_2`.
|
|
90
|
+
*/
|
|
91
|
+
readonly residualNorm: number;
|
|
92
|
+
/**
|
|
93
|
+
* Final solver lifecycle status string.
|
|
94
|
+
*/
|
|
95
|
+
readonly status: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Hardened single-threaded Algebraic Multigrid Preconditioned Conjugate Gradient (`AmgPcgSolver`)
|
|
100
|
+
* supporting symmetric CSR matrices, regularized/shifted graph Laplacians, batched RHS, and
|
|
101
|
+
* cooperative `step()` execution.
|
|
102
|
+
*/
|
|
103
|
+
export class AmgPcgSolver {
|
|
104
|
+
private constructor();
|
|
105
|
+
free(): void;
|
|
106
|
+
[Symbol.dispose](): void;
|
|
107
|
+
/**
|
|
108
|
+
* Constructs an `AmgPcgSolver` directly from an existing `CsrMatrix`.
|
|
109
|
+
*/
|
|
110
|
+
static fromCsrMatrix(matrix: CsrMatrix, options: any): AmgPcgSolver;
|
|
111
|
+
/**
|
|
112
|
+
* Constructs an `AmgPcgSolver` directly from raw symmetric CSR buffers.
|
|
113
|
+
*/
|
|
114
|
+
static fromCsr(num_nodes: number, indptr: Uint32Array | number[], indices: Uint32Array | number[], values: Float64Array | number[], options: any): AmgPcgSolver;
|
|
115
|
+
/**
|
|
116
|
+
* Constructs an `AmgPcgSolver` for a shifted graph Laplacian (`"combinatorial"` or `"symmetric_normalized"`).
|
|
117
|
+
*/
|
|
118
|
+
static fromGraphLaplacian(graph: CsrGraph, kind: string | null | undefined, shift: number | null | undefined, options: any): AmgPcgSolver;
|
|
119
|
+
/**
|
|
120
|
+
* Constructs an `AmgPcgSolver` for `I + gamma * L_sym` with exact `D^{1/2} 1` near-nullspace.
|
|
121
|
+
*/
|
|
122
|
+
static fromGraphRegularizedLaplacian(graph: CsrGraph, gamma: number | null | undefined, options: any): AmgPcgSolver;
|
|
123
|
+
/**
|
|
124
|
+
* Executes up to `steps` cooperative PCG iterations and returns the updated status string.
|
|
125
|
+
*/
|
|
126
|
+
runSteps(steps: number): string;
|
|
127
|
+
/**
|
|
128
|
+
* Runs the active cooperative solve to completion and returns the final status string.
|
|
129
|
+
*/
|
|
130
|
+
run(): string;
|
|
131
|
+
/**
|
|
132
|
+
* Returns a copy of the current solution vector (`Float64Array`).
|
|
133
|
+
*/
|
|
134
|
+
solution(): Float64Array;
|
|
135
|
+
/**
|
|
136
|
+
* Solves `A X = B` for flat row-major `(numNodes, ncols)` RHS matrix `bFlat`.
|
|
137
|
+
*/
|
|
138
|
+
solveBatch(b_flat: Float64Array | number[], ncols: number, x0_flat?: Float64Array | number[] | null): AmgPcgBatchResult;
|
|
139
|
+
/**
|
|
140
|
+
* Solves `A x = b` synchronously with optional initial guess `x0`.
|
|
141
|
+
*/
|
|
142
|
+
solve(b: Float64Array | number[], x0?: Float64Array | number[] | null): AmgPcgSolveResult;
|
|
143
|
+
/**
|
|
144
|
+
* Initializes a cooperative PCG solve for `b` and optional initial guess `x0`.
|
|
145
|
+
*/
|
|
146
|
+
startSolve(b: Float64Array | number[], x0?: Float64Array | number[] | null): string;
|
|
147
|
+
/**
|
|
148
|
+
* Executes a single cooperative PCG iteration and returns the updated status string.
|
|
149
|
+
*/
|
|
150
|
+
step(): string;
|
|
151
|
+
/**
|
|
152
|
+
* Returns the coarsest-level matrix dimension.
|
|
153
|
+
*/
|
|
154
|
+
readonly coarsestSize: number;
|
|
155
|
+
/**
|
|
156
|
+
* Returns `true` if the active solve converged within tolerance.
|
|
157
|
+
*/
|
|
158
|
+
readonly converged: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Returns `true` when the active solve has converged or completed.
|
|
161
|
+
*/
|
|
162
|
+
readonly isFinished: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Returns the number of PCG iterations executed in the active solve.
|
|
165
|
+
*/
|
|
166
|
+
readonly iteration: number;
|
|
167
|
+
/**
|
|
168
|
+
* Returns the maximum CSR nonzero count across all AMG hierarchy levels.
|
|
169
|
+
*/
|
|
170
|
+
readonly maxLevelNnz: number;
|
|
171
|
+
/**
|
|
172
|
+
* Returns the number of AMG hierarchy levels.
|
|
173
|
+
*/
|
|
174
|
+
readonly numLevels: number;
|
|
175
|
+
/**
|
|
176
|
+
* Returns the matrix dimension `numNodes`.
|
|
177
|
+
*/
|
|
178
|
+
readonly numNodes: number;
|
|
179
|
+
/**
|
|
180
|
+
* Returns the AMG operator complexity.
|
|
181
|
+
*/
|
|
182
|
+
readonly operatorComplexity: number;
|
|
183
|
+
/**
|
|
184
|
+
* Returns the most recent relative Euclidean residual norm.
|
|
185
|
+
*/
|
|
186
|
+
readonly relativeResidual: number;
|
|
187
|
+
/**
|
|
188
|
+
* Returns the most recent Euclidean residual norm.
|
|
189
|
+
*/
|
|
190
|
+
readonly residualNorm: number;
|
|
191
|
+
/**
|
|
192
|
+
* Returns the current solver lifecycle status string.
|
|
193
|
+
*/
|
|
194
|
+
readonly status: string;
|
|
195
|
+
/**
|
|
196
|
+
* Returns the maximum scheduled iterations for the active solve.
|
|
197
|
+
*/
|
|
198
|
+
readonly totalIterations: number;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Output of `anisotropicLaplacian(graph, ...)`.
|
|
203
|
+
*/
|
|
204
|
+
export class AnisotropicLaplacianResult {
|
|
205
|
+
private constructor();
|
|
206
|
+
free(): void;
|
|
207
|
+
[Symbol.dispose](): void;
|
|
208
|
+
/**
|
|
209
|
+
* Returns the symmetric PSD `CsrMatrix` $S (D^{(\alpha)} - A^{(\alpha)}) S$.
|
|
210
|
+
*/
|
|
211
|
+
matrix(): CsrMatrix;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the near-nullspace vector (`Float64Array`).
|
|
214
|
+
*/
|
|
215
|
+
nullspace(): Float64Array;
|
|
216
|
+
/**
|
|
217
|
+
* Returns the outer symmetric scaling factors (`Float64Array`).
|
|
218
|
+
*/
|
|
219
|
+
outerScale(): Float64Array;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Output of `coarseBackboneInit`.
|
|
224
|
+
*/
|
|
225
|
+
export class CoarseBackboneResult {
|
|
226
|
+
private constructor();
|
|
227
|
+
free(): void;
|
|
228
|
+
[Symbol.dispose](): void;
|
|
229
|
+
/**
|
|
230
|
+
* Returns the coarsest `CsrGraph` (`f32`).
|
|
231
|
+
*/
|
|
232
|
+
coarseGraph(): CsrGraph;
|
|
233
|
+
/**
|
|
234
|
+
* Returns the coarse super-node `Layout2d` (`f32`) scaled consistently with `fineLayout`.
|
|
235
|
+
*/
|
|
236
|
+
coarseLayout(): Layout2d;
|
|
237
|
+
/**
|
|
238
|
+
* Returns the original vertex counts per coarse cluster (`Uint32Array`).
|
|
239
|
+
*/
|
|
240
|
+
coarseSizes(): Uint32Array;
|
|
241
|
+
/**
|
|
242
|
+
* Returns the prolonged fine-level `Layout2d` (`f32`).
|
|
243
|
+
*/
|
|
244
|
+
fineLayout(): Layout2d;
|
|
245
|
+
/**
|
|
246
|
+
* Returns the original-to-coarsest cluster IDs (`Uint32Array`).
|
|
247
|
+
*/
|
|
248
|
+
nodeToCoarse(): Uint32Array;
|
|
249
|
+
/**
|
|
250
|
+
* Returns the reserved cluster radii (`Float64Array`).
|
|
251
|
+
*/
|
|
252
|
+
radii(): Float64Array;
|
|
253
|
+
readonly coarseOverlapPairsFinal: number;
|
|
254
|
+
readonly coarseOverlapPairsInitial: number;
|
|
255
|
+
readonly louvainLevels: number;
|
|
256
|
+
readonly maxClusterSize: number;
|
|
257
|
+
readonly maxRadius: number;
|
|
258
|
+
readonly meanClusterSize: number;
|
|
259
|
+
readonly medianLEdge: number;
|
|
260
|
+
readonly numCoarseEdges: number;
|
|
261
|
+
readonly numCoarseNodes: number;
|
|
262
|
+
readonly numFineNodes: number;
|
|
263
|
+
readonly scaleFactorApplied: number;
|
|
264
|
+
}
|
|
265
|
+
|
|
4
266
|
/**
|
|
5
267
|
* Output of `coarsenGraph`.
|
|
6
268
|
*/
|
|
@@ -26,6 +288,47 @@ export class CoarsenedGraphResult {
|
|
|
26
288
|
readonly numClusters: number;
|
|
27
289
|
}
|
|
28
290
|
|
|
291
|
+
/**
|
|
292
|
+
* Output of `louvainCoarsen`.
|
|
293
|
+
*/
|
|
294
|
+
export class CoarsenedHierarchyResult {
|
|
295
|
+
private constructor();
|
|
296
|
+
free(): void;
|
|
297
|
+
[Symbol.dispose](): void;
|
|
298
|
+
/**
|
|
299
|
+
* Returns a cloned handle to the coarsest super-graph `CsrGraph`.
|
|
300
|
+
*/
|
|
301
|
+
coarseGraph(): CsrGraph;
|
|
302
|
+
/**
|
|
303
|
+
* Returns the original vertex counts per coarsest cluster (`Uint32Array`).
|
|
304
|
+
*/
|
|
305
|
+
coarseSizes(): Uint32Array;
|
|
306
|
+
/**
|
|
307
|
+
* Returns the modularity $Q_\gamma$ achieved at each contraction level.
|
|
308
|
+
*/
|
|
309
|
+
levelModularities(): Float64Array;
|
|
310
|
+
/**
|
|
311
|
+
* Returns the number of clusters at each contraction level.
|
|
312
|
+
*/
|
|
313
|
+
levelNumClusters(): Uint32Array;
|
|
314
|
+
/**
|
|
315
|
+
* Returns the resolution parameter used at each contraction level.
|
|
316
|
+
*/
|
|
317
|
+
levelResolutions(): Float64Array;
|
|
318
|
+
/**
|
|
319
|
+
* Returns the original-to-coarsest cluster assignment (`Uint32Array`).
|
|
320
|
+
*/
|
|
321
|
+
nodeToCoarse(): Uint32Array;
|
|
322
|
+
/**
|
|
323
|
+
* Returns the number of coarsest super-nodes.
|
|
324
|
+
*/
|
|
325
|
+
readonly numClusters: number;
|
|
326
|
+
/**
|
|
327
|
+
* Returns the number of outer Louvain contraction levels.
|
|
328
|
+
*/
|
|
329
|
+
readonly numLevels: number;
|
|
330
|
+
}
|
|
331
|
+
|
|
29
332
|
/**
|
|
30
333
|
* Non-adjacent crossing edge pair details returned by `crossingEdges`.
|
|
31
334
|
*/
|
|
@@ -125,6 +428,76 @@ export class CsrGraph {
|
|
|
125
428
|
weights(): Float32Array | undefined;
|
|
126
429
|
}
|
|
127
430
|
|
|
431
|
+
/**
|
|
432
|
+
* Double-precision square Compressed Sparse Row matrix (`CsrMatrix`) with spectral bounds
|
|
433
|
+
* and matrix-vector operations.
|
|
434
|
+
*/
|
|
435
|
+
export class CsrMatrix {
|
|
436
|
+
private constructor();
|
|
437
|
+
free(): void;
|
|
438
|
+
[Symbol.dispose](): void;
|
|
439
|
+
/**
|
|
440
|
+
* Returns a copy of the main diagonal entries (`Float64Array`, length `numNodes`).
|
|
441
|
+
*/
|
|
442
|
+
diagonal(): Float64Array;
|
|
443
|
+
/**
|
|
444
|
+
* Estimates `lambdaMax` via deterministic Lanczos tridiagonalization clamped by Gershgorin.
|
|
445
|
+
*/
|
|
446
|
+
estimateLambdaMaxLanczos(num_steps?: number | null, safety_factor?: number | null, seed?: number | null): number;
|
|
447
|
+
/**
|
|
448
|
+
* Estimates `lambdaMax` via deterministic Rademacher power iteration clamped by Gershgorin.
|
|
449
|
+
*/
|
|
450
|
+
estimateLambdaMax(num_iters?: number | null, safety_factor?: number | null, seed?: number | null): number;
|
|
451
|
+
/**
|
|
452
|
+
* Constructs a validated `CsrMatrix` from CSR `numNodes`, `indptr`, `indices`, and `values`.
|
|
453
|
+
*/
|
|
454
|
+
static fromCsr(num_nodes: number, indptr: Uint32Array | number[], indices: Uint32Array | number[], values: Float64Array | number[]): CsrMatrix;
|
|
455
|
+
/**
|
|
456
|
+
* Returns the symmetric Gershgorin upper spectral bound `max_i (|A_ii| + sum_{j!=i} |A_ij|)`.
|
|
457
|
+
*/
|
|
458
|
+
gershgorinSpectralBound(): number;
|
|
459
|
+
/**
|
|
460
|
+
* Returns a copy of sorted CSR column `indices` (`Uint32Array`, length `nnz`).
|
|
461
|
+
*/
|
|
462
|
+
indices(): Uint32Array;
|
|
463
|
+
/**
|
|
464
|
+
* Returns a copy of CSR `indptr` (`Uint32Array`, length `numNodes + 1`).
|
|
465
|
+
*/
|
|
466
|
+
indptr(): Uint32Array;
|
|
467
|
+
/**
|
|
468
|
+
* Returns `true` if `|A_ij - A_ji| <= tol` for all entries.
|
|
469
|
+
*/
|
|
470
|
+
isSymmetric(tol?: number | null): boolean;
|
|
471
|
+
/**
|
|
472
|
+
* Returns `scale * A + shift * I`.
|
|
473
|
+
*/
|
|
474
|
+
scaleAndShift(scale: number, shift: number): CsrMatrix;
|
|
475
|
+
/**
|
|
476
|
+
* Computes sparse matrix-vector product `y = A * x`.
|
|
477
|
+
*/
|
|
478
|
+
spmv(x: Float64Array | number[]): Float64Array;
|
|
479
|
+
/**
|
|
480
|
+
* Converts to a flat row-major `(numNodes, numNodes)` `Float64Array`.
|
|
481
|
+
*/
|
|
482
|
+
toDense(): Float64Array;
|
|
483
|
+
/**
|
|
484
|
+
* Returns the matrix trace `sum(diagonal)`.
|
|
485
|
+
*/
|
|
486
|
+
trace(): number;
|
|
487
|
+
/**
|
|
488
|
+
* Returns a copy of CSR `values` (`Float64Array`, length `nnz`).
|
|
489
|
+
*/
|
|
490
|
+
values(): Float64Array;
|
|
491
|
+
/**
|
|
492
|
+
* Returns the number of stored non-zero entries.
|
|
493
|
+
*/
|
|
494
|
+
readonly nnz: number;
|
|
495
|
+
/**
|
|
496
|
+
* Returns the matrix dimension `numNodes`.
|
|
497
|
+
*/
|
|
498
|
+
readonly numNodes: number;
|
|
499
|
+
}
|
|
500
|
+
|
|
128
501
|
/**
|
|
129
502
|
* Deterministic 2D Delaunay triangulation result returned by `delaunayTriangulation`.
|
|
130
503
|
*/
|
|
@@ -204,6 +577,10 @@ export class DogVaradhanLandmarks {
|
|
|
204
577
|
* Returns the effective rank-1 positivity floor `betaEff`.
|
|
205
578
|
*/
|
|
206
579
|
readonly betaEff: number;
|
|
580
|
+
/**
|
|
581
|
+
* Returns the Chebyshev polynomial degree used for the DoG filter.
|
|
582
|
+
*/
|
|
583
|
+
readonly degree: number;
|
|
207
584
|
/**
|
|
208
585
|
* Returns the R2 PSD projection shift $\delta_{\mathrm{psd}}$.
|
|
209
586
|
*/
|
|
@@ -231,61 +608,130 @@ export class DogVaradhanLandmarks {
|
|
|
231
608
|
}
|
|
232
609
|
|
|
233
610
|
/**
|
|
234
|
-
*
|
|
611
|
+
* Effective edge resistances and Foster's theorem diagnostics for canonical simple undirected edges.
|
|
235
612
|
*/
|
|
236
|
-
export class
|
|
613
|
+
export class EffectiveResistanceResult {
|
|
237
614
|
private constructor();
|
|
238
615
|
free(): void;
|
|
239
616
|
[Symbol.dispose](): void;
|
|
240
617
|
/**
|
|
241
|
-
* Returns
|
|
618
|
+
* Returns canonical edge conductances `w_e = 1 / l_e` (`Float64Array`).
|
|
242
619
|
*/
|
|
243
|
-
|
|
620
|
+
conductances(): Float64Array;
|
|
244
621
|
/**
|
|
245
|
-
* Returns
|
|
622
|
+
* Returns canonical edge lengths `l_e` (`Float64Array`).
|
|
246
623
|
*/
|
|
247
|
-
|
|
624
|
+
edgeLengths(): Float64Array;
|
|
248
625
|
/**
|
|
249
|
-
* Returns
|
|
626
|
+
* Returns canonical edge source endpoints `u < v` (`Uint32Array`).
|
|
250
627
|
*/
|
|
251
|
-
|
|
628
|
+
edgeU(): Uint32Array;
|
|
252
629
|
/**
|
|
253
|
-
* Returns
|
|
630
|
+
* Returns canonical edge target endpoints `v > u` (`Uint32Array`).
|
|
254
631
|
*/
|
|
255
|
-
|
|
632
|
+
edgeV(): Uint32Array;
|
|
256
633
|
/**
|
|
257
|
-
* Returns
|
|
634
|
+
* Returns effective resistances `R_e` (`Float64Array`).
|
|
258
635
|
*/
|
|
259
|
-
|
|
636
|
+
effectiveResistances(): Float64Array;
|
|
260
637
|
/**
|
|
261
|
-
* Returns `true`
|
|
638
|
+
* Returns `true` if every JL PCG column converged within tolerance.
|
|
262
639
|
*/
|
|
263
|
-
readonly
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Cooperative Force-Directed Edge Bundling (`FDEB`) solver (`f32`) storing flat edge
|
|
268
|
-
* polyline buffers without `serde` or consuming input `Layout2d` handles.
|
|
269
|
-
*/
|
|
270
|
-
export class FdebSolver {
|
|
271
|
-
free(): void;
|
|
272
|
-
[Symbol.dispose](): void;
|
|
640
|
+
readonly amgAllConverged: boolean;
|
|
273
641
|
/**
|
|
274
|
-
* Returns
|
|
642
|
+
* Returns maximum relative PCG residual across all JL RHS columns.
|
|
275
643
|
*/
|
|
276
|
-
|
|
644
|
+
readonly amgMaxRelativeResidual: number;
|
|
277
645
|
/**
|
|
278
|
-
*
|
|
646
|
+
* Returns total AMG-PCG iterations executed across all JL RHS columns.
|
|
279
647
|
*/
|
|
280
|
-
|
|
648
|
+
readonly amgTotalIterations: number;
|
|
281
649
|
/**
|
|
282
|
-
* Returns
|
|
650
|
+
* Returns the exact theoretical Foster sum `numNodes - numComponents`.
|
|
283
651
|
*/
|
|
284
|
-
|
|
652
|
+
readonly expectedFoster: number;
|
|
285
653
|
/**
|
|
286
|
-
*
|
|
654
|
+
* Returns the relative Foster error.
|
|
287
655
|
*/
|
|
288
|
-
|
|
656
|
+
readonly fosterRelErr: number;
|
|
657
|
+
/**
|
|
658
|
+
* Returns the observed Foster sum `sum_e w_e * R_e`.
|
|
659
|
+
*/
|
|
660
|
+
readonly fosterSum: number;
|
|
661
|
+
/**
|
|
662
|
+
* Returns the number of connected components (including isolated vertices).
|
|
663
|
+
*/
|
|
664
|
+
readonly numComponents: number;
|
|
665
|
+
/**
|
|
666
|
+
* Returns the number of canonical undirected simple edges (`u < v`).
|
|
667
|
+
*/
|
|
668
|
+
readonly numEdges: number;
|
|
669
|
+
/**
|
|
670
|
+
* Returns the number of vertices in the graph.
|
|
671
|
+
*/
|
|
672
|
+
readonly numNodes: number;
|
|
673
|
+
/**
|
|
674
|
+
* Returns `true` if the exact dense pseudoinverse solver path was used.
|
|
675
|
+
*/
|
|
676
|
+
readonly usedExact: boolean;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Smallest nontrivial eigenpairs of the symmetric normalized Laplacian $L_{\mathrm{sym}}$.
|
|
681
|
+
*/
|
|
682
|
+
export class EigenResult {
|
|
683
|
+
private constructor();
|
|
684
|
+
free(): void;
|
|
685
|
+
[Symbol.dispose](): void;
|
|
686
|
+
/**
|
|
687
|
+
* Returns the $D^{-1/2}$ inverse square-root degree vector (`length === numNodes`).
|
|
688
|
+
*/
|
|
689
|
+
invSqrtDeg(): Float64Array;
|
|
690
|
+
/**
|
|
691
|
+
* Returns the ascending nontrivial eigenvalues (`length === numModes`).
|
|
692
|
+
*/
|
|
693
|
+
lambdas(): Float64Array;
|
|
694
|
+
/**
|
|
695
|
+
* Returns the flat row-major `(numNodes, numModes)` orthonormal eigenvectors.
|
|
696
|
+
*/
|
|
697
|
+
vectors(): Float64Array;
|
|
698
|
+
/**
|
|
699
|
+
* Returns the number of returned nontrivial eigenmodes.
|
|
700
|
+
*/
|
|
701
|
+
readonly numModes: number;
|
|
702
|
+
/**
|
|
703
|
+
* Returns the number of vertices in the graph.
|
|
704
|
+
*/
|
|
705
|
+
readonly numNodes: number;
|
|
706
|
+
/**
|
|
707
|
+
* Returns `true` when the dense Jacobi eigensolver fallback path was used.
|
|
708
|
+
*/
|
|
709
|
+
readonly usedDenseFallback: boolean;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Cooperative Force-Directed Edge Bundling (`FDEB`) solver (`f32`) storing flat edge
|
|
714
|
+
* polyline buffers without `serde` or consuming input `Layout2d` handles.
|
|
715
|
+
*/
|
|
716
|
+
export class FdebSolver {
|
|
717
|
+
free(): void;
|
|
718
|
+
[Symbol.dispose](): void;
|
|
719
|
+
/**
|
|
720
|
+
* Returns CSR-style polyline point offsets of length `numEdges + 1` (`Uint32Array`).
|
|
721
|
+
*/
|
|
722
|
+
edgeOffsets(): Uint32Array;
|
|
723
|
+
/**
|
|
724
|
+
* Constructs an `FdebSolver` from `graph` and `layout` by shared reference.
|
|
725
|
+
*/
|
|
726
|
+
constructor(graph: CsrGraph, layout: Layout2d, options: any);
|
|
727
|
+
/**
|
|
728
|
+
* Returns all bundled polyline control points packed as flat interleaved `[x0, y0, ...]` (`Float32Array`).
|
|
729
|
+
*/
|
|
730
|
+
points(): Float32Array;
|
|
731
|
+
/**
|
|
732
|
+
* Executes up to `steps` FDEB iterations and returns the updated solver status string.
|
|
733
|
+
*/
|
|
734
|
+
runSteps(steps: number): string;
|
|
289
735
|
/**
|
|
290
736
|
* Runs FDEB edge bundling to completion and returns the final solver status string.
|
|
291
737
|
*/
|
|
@@ -787,6 +1233,27 @@ export class Layout2d {
|
|
|
787
1233
|
readonly numNodes: number;
|
|
788
1234
|
}
|
|
789
1235
|
|
|
1236
|
+
/**
|
|
1237
|
+
* Coordinate-collapse and zero-length edge degeneracy diagnostics returned by `layoutDegeneracy`.
|
|
1238
|
+
*/
|
|
1239
|
+
export class LayoutDegeneracy {
|
|
1240
|
+
private constructor();
|
|
1241
|
+
free(): void;
|
|
1242
|
+
[Symbol.dispose](): void;
|
|
1243
|
+
toRecord(): object;
|
|
1244
|
+
readonly bboxHeight: number;
|
|
1245
|
+
readonly bboxWidth: number;
|
|
1246
|
+
readonly duplicateNodesF32: number;
|
|
1247
|
+
readonly duplicateNodesF64: number;
|
|
1248
|
+
readonly duplicateRatioF32: number;
|
|
1249
|
+
readonly duplicateRatioF64: number;
|
|
1250
|
+
readonly isBboxDegenerate: boolean;
|
|
1251
|
+
readonly numEdges: number;
|
|
1252
|
+
readonly numNodes: number;
|
|
1253
|
+
readonly zeroLengthEdgeRatio: number;
|
|
1254
|
+
readonly zeroLengthEdges: number;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
790
1257
|
/**
|
|
791
1258
|
* Contiguous row-major `(numNodes * dim)` $d$-dimensional node coordinate buffer (`f32`)
|
|
792
1259
|
* suitable for zero-copy `Float32Array` linear-memory views via `coordsView()`.
|
|
@@ -859,253 +1326,738 @@ export class LouvainResult {
|
|
|
859
1326
|
/**
|
|
860
1327
|
* Returns the number of multi-level aggregation passes committed.
|
|
861
1328
|
*/
|
|
862
|
-
readonly passes: number;
|
|
1329
|
+
readonly passes: number;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Non-Euclidean 2D node layout (`f32`) constrained to `"hyperbolic"`, `"spherical"`, or `"torus"`.
|
|
1334
|
+
*/
|
|
1335
|
+
export class ManifoldLayout2d {
|
|
1336
|
+
private constructor();
|
|
1337
|
+
free(): void;
|
|
1338
|
+
[Symbol.dispose](): void;
|
|
1339
|
+
/**
|
|
1340
|
+
* Advances vertex `i` along the geodesic defined by tangent vector `(vx, vy)`.
|
|
1341
|
+
*/
|
|
1342
|
+
applyTangentStep(i: number, vx: number, vy: number): void;
|
|
1343
|
+
/**
|
|
1344
|
+
* Isometrically recenters the Poincaré disk layout so its Einstein midpoint lies at `(0, 0)`.
|
|
1345
|
+
*/
|
|
1346
|
+
centerPoincareCentroid(): void;
|
|
1347
|
+
/**
|
|
1348
|
+
* Returns a flat interleaved `[x0, y0, ...]` `Float32Array` copy of all coordinates.
|
|
1349
|
+
*/
|
|
1350
|
+
coords(): Float32Array;
|
|
1351
|
+
/**
|
|
1352
|
+
* Creates a `ManifoldLayout2d` from flat interleaved `[x0, y0, ...]` coordinates, projecting onto `kind`.
|
|
1353
|
+
*/
|
|
1354
|
+
static fromCoords(kind: string, coords: Float32Array | number[]): ManifoldLayout2d;
|
|
1355
|
+
/**
|
|
1356
|
+
* Creates a `ManifoldLayout2d` from a Euclidean `Layout2d` scaled safely inside `maxRadius` (default `0.7`).
|
|
1357
|
+
*/
|
|
1358
|
+
static fromLayoutScaled(kind: string, layout: Layout2d, max_radius?: number | null): ManifoldLayout2d;
|
|
1359
|
+
/**
|
|
1360
|
+
* Creates a `ManifoldLayout2d` from a Euclidean `Layout2d`, projecting points onto `kind`.
|
|
1361
|
+
*/
|
|
1362
|
+
static fromLayout(kind: string, layout: Layout2d): ManifoldLayout2d;
|
|
1363
|
+
/**
|
|
1364
|
+
* Computes the exact geodesic distance between vertices `i` and `j`.
|
|
1365
|
+
*/
|
|
1366
|
+
geodesicDistance(i: number, j: number): number;
|
|
1367
|
+
/**
|
|
1368
|
+
* Creates a zero-initialized Poincaré disk `ManifoldLayout2d` for `n` vertices.
|
|
1369
|
+
*/
|
|
1370
|
+
static hyperbolicPoincare(n: number): ManifoldLayout2d;
|
|
1371
|
+
/**
|
|
1372
|
+
* Returns `true` if every coordinate in the manifold layout is finite.
|
|
1373
|
+
*/
|
|
1374
|
+
isAllFinite(): boolean;
|
|
1375
|
+
/**
|
|
1376
|
+
* Returns `true` if the manifold layout contains zero vertices.
|
|
1377
|
+
*/
|
|
1378
|
+
isEmpty(): boolean;
|
|
1379
|
+
/**
|
|
1380
|
+
* Returns the number of vertices in the manifold layout.
|
|
1381
|
+
*/
|
|
1382
|
+
len(): number;
|
|
1383
|
+
/**
|
|
1384
|
+
* Computes the closed-form Möbius-equivariant Einstein midpoint `[cx, cy]` on the Poincaré disk.
|
|
1385
|
+
*/
|
|
1386
|
+
poincareCentroid(): Float64Array;
|
|
1387
|
+
/**
|
|
1388
|
+
* Re-projects all coordinates onto the manifold's canonical domain after checking finiteness.
|
|
1389
|
+
*/
|
|
1390
|
+
projectAll(): void;
|
|
1391
|
+
/**
|
|
1392
|
+
* Creates a deterministically seeded safe random initialization on `kind`.
|
|
1393
|
+
*/
|
|
1394
|
+
static randomInit(kind: string, n: number, scale?: number | null, seed?: number | null): ManifoldLayout2d;
|
|
1395
|
+
/**
|
|
1396
|
+
* Isometrically recenters the Poincaré disk layout so vertex `index` moves to `(0, 0)`.
|
|
1397
|
+
*/
|
|
1398
|
+
recenterPoincareAt(index: number): void;
|
|
1399
|
+
/**
|
|
1400
|
+
* Isometrically recenters all Poincaré disk points at `(cx, cy)` via Möbius automorphism.
|
|
1401
|
+
*/
|
|
1402
|
+
recenterPoincare(cx: number, cy: number): void;
|
|
1403
|
+
/**
|
|
1404
|
+
* Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
|
|
1405
|
+
*/
|
|
1406
|
+
setPoint(index: number, x: number, y: number): void;
|
|
1407
|
+
/**
|
|
1408
|
+
* Creates a zero-initialized spherical `ManifoldLayout2d` for `n` vertices.
|
|
1409
|
+
*/
|
|
1410
|
+
static spherical(n: number): ManifoldLayout2d;
|
|
1411
|
+
/**
|
|
1412
|
+
* Computes the Riemannian logarithmic map `[vx, vy]` at vertex `i` pointing toward `j`.
|
|
1413
|
+
*/
|
|
1414
|
+
tangentDelta(i: number, j: number): Float32Array;
|
|
1415
|
+
/**
|
|
1416
|
+
* Converts this manifold layout to a `Layout2d` copy.
|
|
1417
|
+
*/
|
|
1418
|
+
toLayout(): Layout2d;
|
|
1419
|
+
/**
|
|
1420
|
+
* Creates a zero-initialized flat unit torus `ManifoldLayout2d` for `n` vertices.
|
|
1421
|
+
*/
|
|
1422
|
+
static torus2d(n: number): ManifoldLayout2d;
|
|
1423
|
+
/**
|
|
1424
|
+
* Returns the first coordinate (`x` or `lon`) of vertex `index`.
|
|
1425
|
+
*/
|
|
1426
|
+
x(index: number): number;
|
|
1427
|
+
/**
|
|
1428
|
+
* Returns the second coordinate (`y` or `colat`) of vertex `index`.
|
|
1429
|
+
*/
|
|
1430
|
+
y(index: number): number;
|
|
1431
|
+
/**
|
|
1432
|
+
* Creates a zero-initialized `ManifoldLayout2d` for `n` vertices on geometry `kind`.
|
|
1433
|
+
*/
|
|
1434
|
+
static zeros(kind: string, n: number): ManifoldLayout2d;
|
|
1435
|
+
/**
|
|
1436
|
+
* Returns the canonical manifold kind string: `"hyperbolic"`, `"spherical"`, or `"torus"`.
|
|
1437
|
+
*/
|
|
1438
|
+
readonly kind: string;
|
|
1439
|
+
/**
|
|
1440
|
+
* Alias for `kind` matching `ManifoldLayout2d.manifold`.
|
|
1441
|
+
*/
|
|
1442
|
+
readonly manifold: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* Returns the number of vertices in the manifold layout.
|
|
1445
|
+
*/
|
|
1446
|
+
readonly numNodes: number;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Selective quality metric report returned by `evaluateMetrics`.
|
|
1451
|
+
*
|
|
1452
|
+
* Unrequested metrics return `undefined` without requiring `serde` in minimal builds.
|
|
1453
|
+
*/
|
|
1454
|
+
export class MetricReport {
|
|
1455
|
+
private constructor();
|
|
1456
|
+
free(): void;
|
|
1457
|
+
[Symbol.dispose](): void;
|
|
1458
|
+
/**
|
|
1459
|
+
* Converts requested metrics into a plain JavaScript object without requiring `serde`.
|
|
1460
|
+
*/
|
|
1461
|
+
toRecord(): object;
|
|
1462
|
+
/**
|
|
1463
|
+
* Returns Adjusted Patch-NIG score, or `undefined` if not requested.
|
|
1464
|
+
*/
|
|
1465
|
+
readonly adjustedPatchNig: number | undefined;
|
|
1466
|
+
/**
|
|
1467
|
+
* Returns exponential angular-resolution penalty sum, or `undefined` if not requested.
|
|
1468
|
+
*/
|
|
1469
|
+
readonly angularResolution: number | undefined;
|
|
1470
|
+
/**
|
|
1471
|
+
* Returns PCA aspect ratio, or `undefined` if not requested.
|
|
1472
|
+
*/
|
|
1473
|
+
readonly aspectRatio: number | undefined;
|
|
1474
|
+
/**
|
|
1475
|
+
* Returns exact sweep-line edge crossing-angle penalty sum, or `undefined` if not requested.
|
|
1476
|
+
*/
|
|
1477
|
+
readonly crossingAngle: number | undefined;
|
|
1478
|
+
/**
|
|
1479
|
+
* Returns exact sweep-line edge crossing count, or `undefined` if not requested.
|
|
1480
|
+
*/
|
|
1481
|
+
readonly crossingNumber: number | undefined;
|
|
1482
|
+
/**
|
|
1483
|
+
* Returns exact DRGraph Eq. (17) crosslessness, or `undefined` if not requested.
|
|
1484
|
+
*/
|
|
1485
|
+
readonly crosslessness: number | undefined;
|
|
1486
|
+
/**
|
|
1487
|
+
* Returns shape-based Gabriel Graph preservation (`dGG`), or `undefined` if not requested.
|
|
1488
|
+
*/
|
|
1489
|
+
readonly gabrielGraphPreservation: number | undefined;
|
|
1490
|
+
/**
|
|
1491
|
+
* Returns Gabriel graph property violation sum, or `undefined` if not requested.
|
|
1492
|
+
*/
|
|
1493
|
+
readonly gabrielGraphProperty: number | undefined;
|
|
1494
|
+
/**
|
|
1495
|
+
* Returns ideal edge-length preservation error sum, or `undefined` if not requested.
|
|
1496
|
+
*/
|
|
1497
|
+
readonly idealEdgeLengths: number | undefined;
|
|
1498
|
+
/**
|
|
1499
|
+
* Returns Landmark-Stratified Random Triplet Accuracy (`L-Stratified-RTA`), or `undefined` if not requested.
|
|
1500
|
+
*/
|
|
1501
|
+
readonly landmarkStratifiedRta: number | undefined;
|
|
1502
|
+
/**
|
|
1503
|
+
* Returns scalar layout-degeneracy summary, or `undefined` if not requested.
|
|
1504
|
+
*/
|
|
1505
|
+
readonly layoutDegeneracy: number | undefined;
|
|
1506
|
+
/**
|
|
1507
|
+
* Returns DRGraph Eq. (19) minimum-angle resolution (`A1`), or `undefined` if not requested.
|
|
1508
|
+
*/
|
|
1509
|
+
readonly minimumAngleA1: number | undefined;
|
|
1510
|
+
/**
|
|
1511
|
+
* Returns DRGraph Eq. (19) strict minimum-angle resolution (`A2`), or `undefined` if not requested.
|
|
1512
|
+
*/
|
|
1513
|
+
readonly minimumAngle: number | undefined;
|
|
1514
|
+
/**
|
|
1515
|
+
* Returns 1-hop neighborhood preservation (`NP1`), or `undefined` if not requested.
|
|
1516
|
+
*/
|
|
1517
|
+
readonly neighborhoodPreservation1Hop: number | undefined;
|
|
1518
|
+
/**
|
|
1519
|
+
* Returns 2-hop neighborhood preservation (`NP2`), or `undefined` if not requested.
|
|
1520
|
+
*/
|
|
1521
|
+
readonly neighborhoodPreservation2Hop: number | undefined;
|
|
1522
|
+
/**
|
|
1523
|
+
* Returns one-sided hinge node-resolution violation sum, or `undefined` if not requested.
|
|
1524
|
+
*/
|
|
1525
|
+
readonly nodeResolution: number | undefined;
|
|
1526
|
+
/**
|
|
1527
|
+
* Returns shape-based Relative Neighborhood Graph preservation (`dRNG`), or `undefined` if not requested.
|
|
1528
|
+
*/
|
|
1529
|
+
readonly relativeNeighborhoodPreservation: number | undefined;
|
|
1530
|
+
/**
|
|
1531
|
+
* Returns deterministic sampled crossing estimate, or `undefined` if not requested.
|
|
1532
|
+
*/
|
|
1533
|
+
readonly sampledCrossingNumber: number | undefined;
|
|
1534
|
+
/**
|
|
1535
|
+
* Returns sampled DRGraph Eq. (17) crosslessness, or `undefined` if not requested.
|
|
1536
|
+
*/
|
|
1537
|
+
readonly sampledCrosslessness: number | undefined;
|
|
1538
|
+
/**
|
|
1539
|
+
* Returns deterministic vertex-sampled 1-hop neighborhood preservation (`NP1`), or `undefined` if not requested.
|
|
1540
|
+
*/
|
|
1541
|
+
readonly sampledNp1: number | undefined;
|
|
1542
|
+
/**
|
|
1543
|
+
* Returns deterministic vertex-sampled 2-hop neighborhood preservation (`NP2`), or `undefined` if not requested.
|
|
1544
|
+
*/
|
|
1545
|
+
readonly sampledNp2: number | undefined;
|
|
1546
|
+
/**
|
|
1547
|
+
* Returns pivot-sampled Scale-Normalized Stress (`SNS`), or `undefined` if not requested.
|
|
1548
|
+
*/
|
|
1549
|
+
readonly sampledScaleNormalizedStress: number | undefined;
|
|
1550
|
+
/**
|
|
1551
|
+
* Returns closed-form Scale-Normalized Stress (`SNS`), or `undefined` if not requested.
|
|
1552
|
+
*/
|
|
1553
|
+
readonly scaleNormalizedStress: number | undefined;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
/**
|
|
1557
|
+
* DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
|
|
1558
|
+
*/
|
|
1559
|
+
export class MinimumAngleSummary {
|
|
1560
|
+
private constructor();
|
|
1561
|
+
free(): void;
|
|
1562
|
+
[Symbol.dispose](): void;
|
|
1563
|
+
toRecord(): object;
|
|
1564
|
+
readonly a1: number;
|
|
1565
|
+
readonly a2: number;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Output of `SgdSolver.pacmapGraphWithBackbone`.
|
|
1570
|
+
*/
|
|
1571
|
+
export class PacmapBackboneResult {
|
|
1572
|
+
private constructor();
|
|
1573
|
+
free(): void;
|
|
1574
|
+
[Symbol.dispose](): void;
|
|
1575
|
+
/**
|
|
1576
|
+
* Returns the underlying `CoarseBackboneResult` handle.
|
|
1577
|
+
*/
|
|
1578
|
+
backbone(): CoarseBackboneResult;
|
|
1579
|
+
/**
|
|
1580
|
+
* Returns the coarse-backbone initial `Layout2d` (`f32`).
|
|
1581
|
+
*/
|
|
1582
|
+
fineLayout(): Layout2d;
|
|
1583
|
+
/**
|
|
1584
|
+
* Returns the initialized cooperative `SgdSolver` (`PaCMAP-Graph` mode).
|
|
1585
|
+
*/
|
|
1586
|
+
solver(): SgdSolver;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
|
|
1591
|
+
*/
|
|
1592
|
+
export class PrismDistortion {
|
|
1593
|
+
private constructor();
|
|
1594
|
+
free(): void;
|
|
1595
|
+
[Symbol.dispose](): void;
|
|
1596
|
+
/**
|
|
1597
|
+
* Returns the scale-, translation-, and rotation-invariant Procrustes disparity (`sigma_disp`)
|
|
1598
|
+
* lying in `[0.0, 1.0]`.
|
|
1599
|
+
*/
|
|
1600
|
+
readonly sigmaDisp: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* Returns the proximity edge-length ratio coefficient of variation (`sigma_dist`).
|
|
1603
|
+
*/
|
|
1604
|
+
readonly sigmaDist: number;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Cooperative Gansner-Hu (2010) PRISM proximity-stress overlap removal solver (`f32`).
|
|
1609
|
+
*
|
|
1610
|
+
* Uses `Delaunay2d` when compiled with `delaunay` and falls back automatically to
|
|
1611
|
+
* `StaticKdTree` $k$-NN proximity + `RectangleOverlapSweep` under `--no-default-features`.
|
|
1612
|
+
*/
|
|
1613
|
+
export class PrismOverlapRemoval {
|
|
1614
|
+
free(): void;
|
|
1615
|
+
[Symbol.dispose](): void;
|
|
1616
|
+
/**
|
|
1617
|
+
* Constructs a `PrismOverlapRemoval` solver for circular/square nodes with equal
|
|
1618
|
+
* half-width and half-height given by `radii`.
|
|
1619
|
+
*/
|
|
1620
|
+
static fromRadii(radii: Float32Array | number[], options: any): PrismOverlapRemoval;
|
|
1621
|
+
/**
|
|
1622
|
+
* Constructs a `PrismOverlapRemoval` solver from per-node `halfWidths` and `halfHeights`.
|
|
1623
|
+
*/
|
|
1624
|
+
constructor(half_widths: Float32Array | number[], half_heights: Float32Array | number[], options: any);
|
|
1625
|
+
/**
|
|
1626
|
+
* Executes up to `steps` PRISM rounds on `layout` in place.
|
|
1627
|
+
*/
|
|
1628
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
1629
|
+
/**
|
|
1630
|
+
* Runs PRISM overlap removal until `0` overlaps remain or `maxIterations` is reached.
|
|
1631
|
+
*/
|
|
1632
|
+
run(layout: Layout2d): string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Executes one PRISM proximity-stress round on `layout` in place.
|
|
1635
|
+
*/
|
|
1636
|
+
step(layout: Layout2d): string;
|
|
1637
|
+
/**
|
|
1638
|
+
* Returns `true` when the solver has converged (`0` overlaps) or completed.
|
|
1639
|
+
*/
|
|
1640
|
+
readonly isFinished: boolean;
|
|
1641
|
+
/**
|
|
1642
|
+
* Returns the number of PRISM rounds executed so far.
|
|
1643
|
+
*/
|
|
1644
|
+
readonly iteration: number;
|
|
1645
|
+
/**
|
|
1646
|
+
* Returns the number of overlapping rectangle pairs remaining after the most recent step.
|
|
1647
|
+
*/
|
|
1648
|
+
readonly lastOverlapCount: number;
|
|
1649
|
+
/**
|
|
1650
|
+
* Returns the expected vertex count.
|
|
1651
|
+
*/
|
|
1652
|
+
readonly numNodes: number;
|
|
1653
|
+
/**
|
|
1654
|
+
* Returns the solver lifecycle status string.
|
|
1655
|
+
*/
|
|
1656
|
+
readonly status: string;
|
|
1657
|
+
/**
|
|
1658
|
+
* Returns the maximum scheduled PRISM rounds (`maxIterations`).
|
|
1659
|
+
*/
|
|
1660
|
+
readonly totalIterations: number;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Devriendt-Lambiotte resistance curvature flow result with reweighted graphs and geometry classification.
|
|
1665
|
+
*/
|
|
1666
|
+
export class ResistanceCurvatureFlowResult {
|
|
1667
|
+
private constructor();
|
|
1668
|
+
free(): void;
|
|
1669
|
+
[Symbol.dispose](): void;
|
|
1670
|
+
/**
|
|
1671
|
+
* Builds a weighted undirected `CsrGraph` (`f32`) storing final conductances `w_e = 1 / l_e`.
|
|
1672
|
+
*/
|
|
1673
|
+
conductanceGraph(): CsrGraph;
|
|
1674
|
+
/**
|
|
1675
|
+
* Returns final edge conductances `w_e = 1 / l_e` (`Float64Array`).
|
|
1676
|
+
*/
|
|
1677
|
+
conductances(): Float64Array;
|
|
1678
|
+
/**
|
|
1679
|
+
* Returns final normalized edge lengths `l_e` (`Float64Array`).
|
|
1680
|
+
*/
|
|
1681
|
+
edgeLengths(): Float64Array;
|
|
1682
|
+
/**
|
|
1683
|
+
* Returns canonical edge source endpoints `u < v` (`Uint32Array`).
|
|
1684
|
+
*/
|
|
1685
|
+
edgeU(): Uint32Array;
|
|
1686
|
+
/**
|
|
1687
|
+
* Returns canonical edge target endpoints `v > u` (`Uint32Array`).
|
|
1688
|
+
*/
|
|
1689
|
+
edgeV(): Uint32Array;
|
|
1690
|
+
/**
|
|
1691
|
+
* Returns final effective resistances `R_e` (`Float64Array`).
|
|
1692
|
+
*/
|
|
1693
|
+
effectiveResistances(): Float64Array;
|
|
1694
|
+
/**
|
|
1695
|
+
* Builds a weighted undirected `CsrGraph` (`f32`) storing final edge lengths `l_e`.
|
|
1696
|
+
*/
|
|
1697
|
+
lengthGraph(): CsrGraph;
|
|
1698
|
+
/**
|
|
1699
|
+
* Returns final link resistance curvatures `kappa_res(u, v)` (`Float64Array`).
|
|
1700
|
+
*/
|
|
1701
|
+
linkCurvatures(): Float64Array;
|
|
1702
|
+
/**
|
|
1703
|
+
* Returns per-step diagnostics across `0..=steps`.
|
|
1704
|
+
*/
|
|
1705
|
+
stepHistory(): ResistanceCurvatureStep[];
|
|
1706
|
+
/**
|
|
1707
|
+
* Returns final vertex resistance curvatures `p_i` (`Float64Array`).
|
|
1708
|
+
*/
|
|
1709
|
+
vertexCurvatures(): Float64Array;
|
|
1710
|
+
/**
|
|
1711
|
+
* Returns `true` if every JL PCG column converged in the final evaluation.
|
|
1712
|
+
*/
|
|
1713
|
+
readonly amgAllConverged: boolean;
|
|
1714
|
+
/**
|
|
1715
|
+
* Returns maximum relative PCG residual in the final evaluation.
|
|
1716
|
+
*/
|
|
1717
|
+
readonly amgMaxRelativeResidual: number;
|
|
1718
|
+
/**
|
|
1719
|
+
* Returns total AMG-PCG iterations executed in the final evaluation.
|
|
1720
|
+
*/
|
|
1721
|
+
readonly amgTotalIterations: number;
|
|
1722
|
+
/**
|
|
1723
|
+
* Returns the exact theoretical Foster sum `numNodes - numComponents`.
|
|
1724
|
+
*/
|
|
1725
|
+
readonly expectedFoster: number;
|
|
1726
|
+
/**
|
|
1727
|
+
* Returns the final relative Foster error.
|
|
1728
|
+
*/
|
|
1729
|
+
readonly fosterRelErr: number;
|
|
1730
|
+
/**
|
|
1731
|
+
* Returns the final Foster sum `sum_e w_e * R_e`.
|
|
1732
|
+
*/
|
|
1733
|
+
readonly fosterSum: number;
|
|
1734
|
+
/**
|
|
1735
|
+
* Returns maximum final link resistance curvature.
|
|
1736
|
+
*/
|
|
1737
|
+
readonly maxLinkCurvature: number;
|
|
1738
|
+
/**
|
|
1739
|
+
* Returns maximum final vertex resistance curvature.
|
|
1740
|
+
*/
|
|
1741
|
+
readonly maxVertexCurvature: number;
|
|
1742
|
+
/**
|
|
1743
|
+
* Returns mean final link resistance curvature.
|
|
1744
|
+
*/
|
|
1745
|
+
readonly meanLinkCurvature: number;
|
|
1746
|
+
/**
|
|
1747
|
+
* Returns mean final vertex resistance curvature.
|
|
1748
|
+
*/
|
|
1749
|
+
readonly meanVertexCurvature: number;
|
|
1750
|
+
/**
|
|
1751
|
+
* Returns minimum final link resistance curvature.
|
|
1752
|
+
*/
|
|
1753
|
+
readonly minLinkCurvature: number;
|
|
1754
|
+
/**
|
|
1755
|
+
* Returns minimum final vertex resistance curvature.
|
|
1756
|
+
*/
|
|
1757
|
+
readonly minVertexCurvature: number;
|
|
1758
|
+
/**
|
|
1759
|
+
* Returns the number of connected components (including isolated vertices).
|
|
1760
|
+
*/
|
|
1761
|
+
readonly numComponents: number;
|
|
1762
|
+
/**
|
|
1763
|
+
* Returns the number of canonical undirected simple edges (`u < v`).
|
|
1764
|
+
*/
|
|
1765
|
+
readonly numEdges: number;
|
|
1766
|
+
/**
|
|
1767
|
+
* Returns the number of vertices in the graph.
|
|
1768
|
+
*/
|
|
1769
|
+
readonly numNodes: number;
|
|
1770
|
+
/**
|
|
1771
|
+
* Returns population standard deviation of final link resistance curvatures.
|
|
1772
|
+
*/
|
|
1773
|
+
readonly stdLinkCurvature: number;
|
|
1774
|
+
/**
|
|
1775
|
+
* Returns the suggested 2D geometry (`"hyperbolic"`, `"spherical"`, `"torus"`, or `"euclidean"`).
|
|
1776
|
+
*/
|
|
1777
|
+
readonly suggestedGeometry: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* Returns the suggested `ManifoldKind` (`"hyperbolic"`, `"spherical"`, `"torus"`), or `undefined`.
|
|
1780
|
+
*/
|
|
1781
|
+
readonly suggestedManifold: string | undefined;
|
|
1782
|
+
/**
|
|
1783
|
+
* Returns `true` if the final evaluation used the exact dense pseudoinverse solver.
|
|
1784
|
+
*/
|
|
1785
|
+
readonly usedExact: boolean;
|
|
863
1786
|
}
|
|
864
1787
|
|
|
865
1788
|
/**
|
|
866
|
-
*
|
|
1789
|
+
* Per-iteration summary recorded during `resistanceCurvatureFlow()`.
|
|
867
1790
|
*/
|
|
868
|
-
export class
|
|
1791
|
+
export class ResistanceCurvatureStep {
|
|
869
1792
|
private constructor();
|
|
870
1793
|
free(): void;
|
|
871
1794
|
[Symbol.dispose](): void;
|
|
872
1795
|
/**
|
|
873
|
-
*
|
|
1796
|
+
* Maximum relative PCG residual in this step.
|
|
874
1797
|
*/
|
|
875
|
-
|
|
1798
|
+
readonly amgMaxRelativeResidual: number;
|
|
876
1799
|
/**
|
|
877
|
-
*
|
|
1800
|
+
* Total AMG-PCG iterations executed in this step.
|
|
878
1801
|
*/
|
|
879
|
-
|
|
1802
|
+
readonly amgTotalIterations: number;
|
|
880
1803
|
/**
|
|
881
|
-
*
|
|
1804
|
+
* Exact theoretical Foster sum `numNodes - numComponents`.
|
|
882
1805
|
*/
|
|
883
|
-
|
|
1806
|
+
readonly expectedFoster: number;
|
|
884
1807
|
/**
|
|
885
|
-
*
|
|
1808
|
+
* Relative Foster error.
|
|
886
1809
|
*/
|
|
887
|
-
|
|
1810
|
+
readonly fosterRelErr: number;
|
|
888
1811
|
/**
|
|
889
|
-
*
|
|
1812
|
+
* Observed Foster sum `sum_e w_e * R_e`.
|
|
890
1813
|
*/
|
|
891
|
-
|
|
1814
|
+
readonly fosterSum: number;
|
|
892
1815
|
/**
|
|
893
|
-
*
|
|
1816
|
+
* Maximum link resistance curvature.
|
|
894
1817
|
*/
|
|
895
|
-
|
|
1818
|
+
readonly maxLinkCurvature: number;
|
|
896
1819
|
/**
|
|
897
|
-
*
|
|
1820
|
+
* Maximum vertex resistance curvature.
|
|
898
1821
|
*/
|
|
899
|
-
|
|
1822
|
+
readonly maxVertexCurvature: number;
|
|
900
1823
|
/**
|
|
901
|
-
*
|
|
1824
|
+
* Mean link resistance curvature.
|
|
902
1825
|
*/
|
|
903
|
-
|
|
1826
|
+
readonly meanLinkCurvature: number;
|
|
904
1827
|
/**
|
|
905
|
-
*
|
|
1828
|
+
* Mean vertex resistance curvature.
|
|
906
1829
|
*/
|
|
907
|
-
|
|
1830
|
+
readonly meanVertexCurvature: number;
|
|
908
1831
|
/**
|
|
909
|
-
*
|
|
1832
|
+
* Minimum link resistance curvature.
|
|
910
1833
|
*/
|
|
911
|
-
|
|
1834
|
+
readonly minLinkCurvature: number;
|
|
912
1835
|
/**
|
|
913
|
-
*
|
|
1836
|
+
* Minimum vertex resistance curvature.
|
|
914
1837
|
*/
|
|
915
|
-
|
|
1838
|
+
readonly minVertexCurvature: number;
|
|
916
1839
|
/**
|
|
917
|
-
*
|
|
1840
|
+
* Population standard deviation of link resistance curvatures.
|
|
918
1841
|
*/
|
|
919
|
-
|
|
1842
|
+
readonly stdLinkCurvature: number;
|
|
920
1843
|
/**
|
|
921
|
-
*
|
|
1844
|
+
* Flow step index (`0..steps`, plus final evaluation step `steps`).
|
|
922
1845
|
*/
|
|
923
|
-
|
|
1846
|
+
readonly step: number;
|
|
924
1847
|
/**
|
|
925
|
-
*
|
|
1848
|
+
* Whether the exact dense pseudoinverse solver was used.
|
|
926
1849
|
*/
|
|
927
|
-
|
|
1850
|
+
readonly usedExact: boolean;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Output of `computePivotedRhghLandmarks`.
|
|
1855
|
+
*/
|
|
1856
|
+
export class RhghLandmarksResult {
|
|
1857
|
+
private constructor();
|
|
1858
|
+
free(): void;
|
|
1859
|
+
[Symbol.dispose](): void;
|
|
928
1860
|
/**
|
|
929
|
-
*
|
|
1861
|
+
* Returns the `DogVaradhanLandmarks` handle usable with `SgdSolver` and `GuMapSolver`.
|
|
930
1862
|
*/
|
|
931
|
-
|
|
1863
|
+
landmarks(): DogVaradhanLandmarks;
|
|
1864
|
+
readonly allConverged: boolean;
|
|
1865
|
+
readonly degCv: number;
|
|
1866
|
+
readonly edgeMedScale: number;
|
|
1867
|
+
readonly exp2: number;
|
|
1868
|
+
readonly gamma: number;
|
|
1869
|
+
readonly leafFraction: number;
|
|
1870
|
+
readonly maxPcgIters: number;
|
|
1871
|
+
readonly meanDegree: number;
|
|
1872
|
+
readonly numLandmarks: number;
|
|
1873
|
+
readonly numProbes: number;
|
|
1874
|
+
readonly pExp: number;
|
|
1875
|
+
readonly sSw: number;
|
|
1876
|
+
readonly totalPcgIters: number;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
/**
|
|
1880
|
+
* Detailed result returned by `landmarkStratifiedRtaDetail` and `landmarkStratifiedRtaFromLandmarks`.
|
|
1881
|
+
*/
|
|
1882
|
+
export class RtaEvaluation {
|
|
1883
|
+
private constructor();
|
|
1884
|
+
free(): void;
|
|
1885
|
+
[Symbol.dispose](): void;
|
|
1886
|
+
toRecord(): object;
|
|
1887
|
+
readonly isExact: boolean;
|
|
1888
|
+
readonly numLandmarks: number;
|
|
1889
|
+
readonly numStrata: number;
|
|
1890
|
+
readonly numTriplets: number;
|
|
1891
|
+
readonly rta: number;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Reusable `f32` R2C-FFT Screened Poisson unilateral upper-bound 2D density field evaluator.
|
|
1896
|
+
*/
|
|
1897
|
+
export class ScreenedPoissonField2d {
|
|
1898
|
+
free(): void;
|
|
1899
|
+
[Symbol.dispose](): void;
|
|
932
1900
|
/**
|
|
933
|
-
*
|
|
1901
|
+
* Evaluates unilateral density energy and descent forces inside explicit `[minX, maxX, minY, maxY]`.
|
|
934
1902
|
*/
|
|
935
|
-
|
|
1903
|
+
evaluateInBounds(layout: Layout2d, bounds: Float64Array | number[]): ScreenedPoissonResult;
|
|
936
1904
|
/**
|
|
937
|
-
*
|
|
1905
|
+
* Evaluates unilateral density energy and descent forces over `layout`'s adaptive bounding box.
|
|
938
1906
|
*/
|
|
939
|
-
|
|
1907
|
+
evaluate(layout: Layout2d): ScreenedPoissonResult;
|
|
940
1908
|
/**
|
|
941
|
-
*
|
|
1909
|
+
* Allocates a `ScreenedPoissonField2d` evaluator workspace (`f32`-backed).
|
|
942
1910
|
*/
|
|
943
|
-
|
|
1911
|
+
constructor(options: any);
|
|
944
1912
|
/**
|
|
945
|
-
* Returns
|
|
1913
|
+
* Returns total heap bytes allocated by internal `f32` grids, bitmasks, and FFT tables.
|
|
946
1914
|
*/
|
|
947
|
-
|
|
1915
|
+
workspaceMemoryBytes(): number;
|
|
948
1916
|
/**
|
|
949
|
-
*
|
|
1917
|
+
* Returns whether exact variational adjoint masking is enabled.
|
|
950
1918
|
*/
|
|
951
|
-
readonly
|
|
1919
|
+
readonly exactAdjoint: boolean;
|
|
952
1920
|
/**
|
|
953
|
-
* Returns the
|
|
1921
|
+
* Returns the active interior grid dimension $G$.
|
|
954
1922
|
*/
|
|
955
|
-
readonly
|
|
1923
|
+
readonly gridSize: number;
|
|
1924
|
+
/**
|
|
1925
|
+
* Returns the active kernel name (`"screenedPoisson"` or `"singleGaussian"`).
|
|
1926
|
+
*/
|
|
1927
|
+
readonly kernel: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* Returns the zero-padding multiplier (`1` or `2`).
|
|
1930
|
+
*/
|
|
1931
|
+
readonly paddingFactor: number;
|
|
956
1932
|
}
|
|
957
1933
|
|
|
958
1934
|
/**
|
|
959
|
-
*
|
|
960
|
-
*
|
|
961
|
-
* Unrequested metrics return `undefined` without requiring `serde` in minimal builds.
|
|
1935
|
+
* Cooperative Screened Poisson unilateral upper-bound density field refiner (`f32`-backed).
|
|
962
1936
|
*/
|
|
963
|
-
export class
|
|
964
|
-
private constructor();
|
|
1937
|
+
export class ScreenedPoissonRefiner {
|
|
965
1938
|
free(): void;
|
|
966
1939
|
[Symbol.dispose](): void;
|
|
967
1940
|
/**
|
|
968
|
-
*
|
|
969
|
-
*/
|
|
970
|
-
toRecord(): object;
|
|
971
|
-
/**
|
|
972
|
-
* Returns exponential angular-resolution penalty sum, or `undefined` if not requested.
|
|
973
|
-
*/
|
|
974
|
-
readonly angularResolution: number | undefined;
|
|
975
|
-
/**
|
|
976
|
-
* Returns PCA aspect ratio, or `undefined` if not requested.
|
|
1941
|
+
* Executes a single decoupled epoch-boundary density step on `layout` in place and returns stats.
|
|
977
1942
|
*/
|
|
978
|
-
|
|
1943
|
+
applyEpochStep(layout: Layout2d): ScreenedPoissonResult;
|
|
979
1944
|
/**
|
|
980
|
-
*
|
|
1945
|
+
* Creates a `ScreenedPoissonRefiner` retaining 1-hop edges from `graph` for optional anchors.
|
|
981
1946
|
*/
|
|
982
|
-
|
|
1947
|
+
static fromGraph(graph: CsrGraph, options: any): ScreenedPoissonRefiner;
|
|
983
1948
|
/**
|
|
984
|
-
* Returns
|
|
1949
|
+
* Returns telemetry from the most recent density field evaluation.
|
|
985
1950
|
*/
|
|
986
|
-
|
|
1951
|
+
lastStats(): ScreenedPoissonResult;
|
|
987
1952
|
/**
|
|
988
|
-
*
|
|
1953
|
+
* Creates a standalone `ScreenedPoissonRefiner` for `numNodes` vertices.
|
|
989
1954
|
*/
|
|
990
|
-
|
|
1955
|
+
constructor(num_nodes: number, options: any);
|
|
991
1956
|
/**
|
|
992
|
-
*
|
|
1957
|
+
* Executes up to `steps` density refinement steps on `layout` in place.
|
|
993
1958
|
*/
|
|
994
|
-
|
|
1959
|
+
runSteps(layout: Layout2d, steps: number): string;
|
|
995
1960
|
/**
|
|
996
|
-
*
|
|
1961
|
+
* Runs density refinement to completion or early convergence on `layout` in place.
|
|
997
1962
|
*/
|
|
998
|
-
|
|
1963
|
+
run(layout: Layout2d): string;
|
|
999
1964
|
/**
|
|
1000
|
-
*
|
|
1965
|
+
* Attaches or replaces a coarse-level cluster centroid tether (`alignClusteredCentroids`).
|
|
1001
1966
|
*/
|
|
1002
|
-
|
|
1967
|
+
setCoarseTether(coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[]): void;
|
|
1003
1968
|
/**
|
|
1004
|
-
*
|
|
1969
|
+
* Executes one density refinement step on `layout` in place.
|
|
1005
1970
|
*/
|
|
1006
|
-
|
|
1971
|
+
step(layout: Layout2d): string;
|
|
1007
1972
|
/**
|
|
1008
|
-
* Returns
|
|
1973
|
+
* Returns total heap bytes allocated by the underlying density field workspace.
|
|
1009
1974
|
*/
|
|
1010
|
-
|
|
1975
|
+
workspaceMemoryBytes(): number;
|
|
1011
1976
|
/**
|
|
1012
|
-
* Returns
|
|
1977
|
+
* Returns `true` when the solver reached `"converged"` or `"completed"`.
|
|
1013
1978
|
*/
|
|
1014
|
-
readonly
|
|
1979
|
+
readonly isFinished: boolean;
|
|
1015
1980
|
/**
|
|
1016
|
-
* Returns
|
|
1981
|
+
* Returns the number of refinement iterations completed so far.
|
|
1017
1982
|
*/
|
|
1018
|
-
readonly
|
|
1983
|
+
readonly iteration: number;
|
|
1019
1984
|
/**
|
|
1020
|
-
*
|
|
1985
|
+
* Most recently evaluated variational density energy.
|
|
1021
1986
|
*/
|
|
1022
|
-
readonly
|
|
1987
|
+
readonly lastEnergy: number;
|
|
1023
1988
|
/**
|
|
1024
|
-
* Returns
|
|
1989
|
+
* Returns the expected number of vertices in `Layout2d`.
|
|
1025
1990
|
*/
|
|
1026
|
-
readonly
|
|
1991
|
+
readonly numNodes: number;
|
|
1027
1992
|
/**
|
|
1028
|
-
* Returns
|
|
1993
|
+
* Returns the solver lifecycle status string.
|
|
1029
1994
|
*/
|
|
1030
|
-
readonly
|
|
1995
|
+
readonly status: string;
|
|
1031
1996
|
/**
|
|
1032
|
-
* Returns
|
|
1997
|
+
* Returns the configured maximum number of refinement iterations.
|
|
1033
1998
|
*/
|
|
1034
|
-
readonly
|
|
1999
|
+
readonly totalIterations: number;
|
|
1035
2000
|
}
|
|
1036
2001
|
|
|
1037
2002
|
/**
|
|
1038
|
-
*
|
|
2003
|
+
* Output forces and telemetry produced by `ScreenedPoissonField2d` and `ScreenedPoissonRefiner`.
|
|
1039
2004
|
*/
|
|
1040
|
-
export class
|
|
2005
|
+
export class ScreenedPoissonResult {
|
|
1041
2006
|
private constructor();
|
|
1042
2007
|
free(): void;
|
|
1043
2008
|
[Symbol.dispose](): void;
|
|
1044
2009
|
/**
|
|
1045
|
-
* Returns the
|
|
1046
|
-
* lying in `[0.0, 1.0]`.
|
|
2010
|
+
* Returns the per-node $x$-component descent forces (`Float32Array`).
|
|
1047
2011
|
*/
|
|
1048
|
-
|
|
2012
|
+
forceX(): Float32Array;
|
|
1049
2013
|
/**
|
|
1050
|
-
* Returns the
|
|
2014
|
+
* Returns the per-node $y$-component descent forces (`Float32Array`).
|
|
1051
2015
|
*/
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
/**
|
|
1056
|
-
* Cooperative Gansner-Hu (2010) PRISM proximity-stress overlap removal solver (`f32`).
|
|
1057
|
-
*
|
|
1058
|
-
* Uses `Delaunay2d` when compiled with `delaunay` and falls back automatically to
|
|
1059
|
-
* `StaticKdTree` $k$-NN proximity + `RectangleOverlapSweep` under `--no-default-features`.
|
|
1060
|
-
*/
|
|
1061
|
-
export class PrismOverlapRemoval {
|
|
1062
|
-
free(): void;
|
|
1063
|
-
[Symbol.dispose](): void;
|
|
2016
|
+
forceY(): Float32Array;
|
|
1064
2017
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
* half-width and half-height given by `radii`.
|
|
2018
|
+
* `true` when zero grid cells exceeded $\rho_{\max}$ and the solve exited early.
|
|
1067
2019
|
*/
|
|
1068
|
-
|
|
2020
|
+
readonly earlyExitNoExcess: boolean;
|
|
1069
2021
|
/**
|
|
1070
|
-
*
|
|
2022
|
+
* Discrete Parseval variational energy $\mathcal{L}_{\mathrm{dens}} \ge 0$.
|
|
1071
2023
|
*/
|
|
1072
|
-
|
|
2024
|
+
readonly energy: number;
|
|
1073
2025
|
/**
|
|
1074
|
-
*
|
|
2026
|
+
* Fraction of active interior grid cells where $\rho_V > \rho_{\max}$.
|
|
1075
2027
|
*/
|
|
1076
|
-
|
|
2028
|
+
readonly excessFraction: number;
|
|
1077
2029
|
/**
|
|
1078
|
-
*
|
|
2030
|
+
* Integrated excess density mass $\int \delta\rho(p)\,dp \in [0, 1]$.
|
|
1079
2031
|
*/
|
|
1080
|
-
|
|
2032
|
+
readonly excessMass: number;
|
|
1081
2033
|
/**
|
|
1082
|
-
*
|
|
2034
|
+
* Number of 2D R2C/C2R FFT calls executed (`0`, `2`, `4`, or `6`).
|
|
1083
2035
|
*/
|
|
1084
|
-
|
|
2036
|
+
readonly fft2dCalls: number;
|
|
1085
2037
|
/**
|
|
1086
|
-
*
|
|
2038
|
+
* Active interior grid dimension $G$.
|
|
1087
2039
|
*/
|
|
1088
|
-
readonly
|
|
2040
|
+
readonly gridDim: number;
|
|
1089
2041
|
/**
|
|
1090
|
-
*
|
|
2042
|
+
* Effective screening wavenumber $\kappa_0$ used.
|
|
1091
2043
|
*/
|
|
1092
|
-
readonly
|
|
2044
|
+
readonly kappaUsed: number;
|
|
1093
2045
|
/**
|
|
1094
|
-
*
|
|
2046
|
+
* Peak smoothed density $\max_p \rho_V(p)$ on the grid.
|
|
1095
2047
|
*/
|
|
1096
|
-
readonly
|
|
2048
|
+
readonly maxDensity: number;
|
|
1097
2049
|
/**
|
|
1098
|
-
*
|
|
2050
|
+
* Padded FFT dimension $G_{\mathrm{pad}}$.
|
|
1099
2051
|
*/
|
|
1100
|
-
readonly
|
|
2052
|
+
readonly padDim: number;
|
|
1101
2053
|
/**
|
|
1102
|
-
*
|
|
2054
|
+
* Effective upper density threshold $\rho_{\max}$ used.
|
|
1103
2055
|
*/
|
|
1104
|
-
readonly
|
|
2056
|
+
readonly rhoMaxUsed: number;
|
|
1105
2057
|
/**
|
|
1106
|
-
*
|
|
2058
|
+
* Effective Gaussian smoothing width $\sigma_0$ used.
|
|
1107
2059
|
*/
|
|
1108
|
-
readonly
|
|
2060
|
+
readonly sigmaUsed: number;
|
|
1109
2061
|
}
|
|
1110
2062
|
|
|
1111
2063
|
/**
|
|
@@ -1163,6 +2115,20 @@ export class SgdSolver {
|
|
|
1163
2115
|
* Constructs an Omega SGD solver from a flat row-major `(numNodes, dims)` spectral embedding.
|
|
1164
2116
|
*/
|
|
1165
2117
|
static omega(graph: CsrGraph, embedding: Float64Array | number[], dims: number, k_or_options: any, min_dist: number | null | undefined, t_max_or_options: any, eps?: number | null, kind?: string | null, step_scale?: number | null, seed?: number | null): SgdSolver;
|
|
2118
|
+
/**
|
|
2119
|
+
* Constructs a 3-tier `PaCMAP-Graph` solver coupled with a coarse Louvain area-reserved
|
|
2120
|
+
* backbone initialization and pure-Rust pivoted `RHGH` landmarks.
|
|
2121
|
+
*/
|
|
2122
|
+
static pacmapGraphWithBackbone(graph: CsrGraph, options: any): PacmapBackboneResult;
|
|
2123
|
+
/**
|
|
2124
|
+
* Constructs a 3-tier `PaCMAP-Graph` Adam layout solver using a flat row-major
|
|
2125
|
+
* `(num_nodes, num_landmarks)` landmark distance table.
|
|
2126
|
+
*/
|
|
2127
|
+
static pacmapGraphWithLandmarkDistances(graph: CsrGraph, landmark_distances: Float64Array | number[], num_landmarks: number, options: any): SgdSolver;
|
|
2128
|
+
/**
|
|
2129
|
+
* Constructs a 3-tier `PaCMAP-Graph` Adam layout solver using precomputed `DogVaradhanLandmarks`.
|
|
2130
|
+
*/
|
|
2131
|
+
static pacmapGraphWithLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
|
|
1166
2132
|
/**
|
|
1167
2133
|
* Constructs a 3-tier `PaCMAP-Graph` (`NB` / `MN` / `FP`) Adam layout solver.
|
|
1168
2134
|
*/
|
|
@@ -1374,7 +2340,7 @@ export class SpatialIntruderRefiner {
|
|
|
1374
2340
|
/**
|
|
1375
2341
|
* Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
|
|
1376
2342
|
*/
|
|
1377
|
-
constructor(graph: CsrGraph, rounds_or_options: any, k_cap?: number | null, margin_scale?: number | null, w_anchor?: number | null, w_fn?: number | null, w_fp?: number | null, fn_shrink?: number | null, round_decay?: number | null, t_max?: number | null, eps?: number | null, hinge_fp?: boolean | null, seed?: number | null, w_anchor2?: number | null, k_cap_decay?: number | null, k_cap_min?: number | null);
|
|
2343
|
+
constructor(graph: CsrGraph, rounds_or_options: any, k_cap?: number | null, margin_scale?: number | null, w_anchor?: number | null, w_fn?: number | null, w_fp?: number | null, fn_shrink?: number | null, round_decay?: number | null, t_max?: number | null, eps?: number | null, hinge_fp?: boolean | null, seed?: number | null, w_anchor2?: number | null, k_cap_decay?: number | null, k_cap_min?: number | null, min_sep_ratio?: number | null, w_sep?: number | null);
|
|
1378
2344
|
/**
|
|
1379
2345
|
* Executes up to `steps` refinement rounds on `layout` in place.
|
|
1380
2346
|
*/
|
|
@@ -1444,6 +2410,10 @@ export class SpatialRefinerRoundStats {
|
|
|
1444
2410
|
* Returns the total active pair count passed to the inner SGD pass.
|
|
1445
2411
|
*/
|
|
1446
2412
|
readonly nPairsTotal: number;
|
|
2413
|
+
/**
|
|
2414
|
+
* Returns the count of active short-range separation hinge pairs.
|
|
2415
|
+
*/
|
|
2416
|
+
readonly nSep: number;
|
|
1447
2417
|
/**
|
|
1448
2418
|
* Returns the 1-indexed refinement round number.
|
|
1449
2419
|
*/
|
|
@@ -1497,6 +2467,10 @@ export class SpatialRefinerStats {
|
|
|
1497
2467
|
* Returns cumulative total active pairs across executed rounds.
|
|
1498
2468
|
*/
|
|
1499
2469
|
readonly nPairsTotal: number;
|
|
2470
|
+
/**
|
|
2471
|
+
* Returns cumulative short-range separation hinge pairs across executed rounds.
|
|
2472
|
+
*/
|
|
2473
|
+
readonly nSepTotal: number;
|
|
1500
2474
|
/**
|
|
1501
2475
|
* Returns the number of active refinement rounds executed.
|
|
1502
2476
|
*/
|
|
@@ -1722,7 +2696,7 @@ export class TsNetSolver {
|
|
|
1722
2696
|
/**
|
|
1723
2697
|
* Constructs a `TsNetSolver` from a `CsrGraph` using direct row-normalized `A1 + w2 * A2` affinity.
|
|
1724
2698
|
*/
|
|
1725
|
-
static fromGraphRowNormalized(graph: CsrGraph, w2_or_options: any, max_2hop_per_node: number | null | undefined, backend_or_options: any, iterations_stage1: number | null | undefined, iterations_stage2: number | null | undefined, iterations_stage3: number | null | undefined, learning_rate: number | null | undefined, exaggeration: number | null | undefined, lambda_c_stage1: number | null | undefined, lambda_c_stage2: number | null | undefined, lambda_c_stage3: number | null | undefined, lambda_r_stage3: number | null | undefined, momentum: number | null | undefined, epsilon_r: number | null | undefined, theta: number | null | undefined, seed: number | null | undefined, intervals: number | null | undefined, interpolation_order: any, min_grid_dim?: number | null, max_grid_dim?: number | null): TsNetSolver;
|
|
2699
|
+
static fromGraphRowNormalized(graph: CsrGraph, w2_or_options: any, max_2hop_per_node: number | null | undefined, backend_or_options: any, iterations_stage1: number | null | undefined, iterations_stage2: number | null | undefined, iterations_stage3: number | null | undefined, learning_rate: number | null | undefined, exaggeration: number | null | undefined, lambda_c_stage1: number | null | undefined, lambda_c_stage2: number | null | undefined, lambda_c_stage3: number | null | undefined, lambda_r_stage3: number | null | undefined, momentum: number | null | undefined, epsilon_r: number | null | undefined, theta: number | null | undefined, seed: number | null | undefined, intervals: number | null | undefined, interpolation_order: any, min_grid_dim?: number | null, max_grid_dim?: number | null, degree_beta?: number | null): TsNetSolver;
|
|
1726
2700
|
/**
|
|
1727
2701
|
* Constructs a `TsNetSolver` from a `KnnGraph` and optional per-node `perplexities`.
|
|
1728
2702
|
*/
|
|
@@ -1825,6 +2799,18 @@ export class TwoHopKnnResult {
|
|
|
1825
2799
|
* Returns the mean 1+2-hop neighborhood size across all vertices.
|
|
1826
2800
|
*/
|
|
1827
2801
|
readonly avgDeg2: number;
|
|
2802
|
+
/**
|
|
2803
|
+
* Returns the number of stored 1-hop directed neighbor entries.
|
|
2804
|
+
*/
|
|
2805
|
+
readonly n1hop: number;
|
|
2806
|
+
/**
|
|
2807
|
+
* Returns the number of stored 2-hop directed neighbor entries.
|
|
2808
|
+
*/
|
|
2809
|
+
readonly n2hop: number;
|
|
2810
|
+
/**
|
|
2811
|
+
* Returns the number of vertices whose 2-hop expansion was truncated by `max2hopPerNode`.
|
|
2812
|
+
*/
|
|
2813
|
+
readonly nTruncated2hop: number;
|
|
1828
2814
|
/**
|
|
1829
2815
|
* Returns the total number of stored neighbor entries.
|
|
1830
2816
|
*/
|
|
@@ -1883,6 +2869,22 @@ export class YifanHuSolver {
|
|
|
1883
2869
|
readonly totalIterations: number;
|
|
1884
2870
|
}
|
|
1885
2871
|
|
|
2872
|
+
/**
|
|
2873
|
+
* Computes Adjusted Patch Normalized Information Gain (`Adjusted Patch-NIG`).
|
|
2874
|
+
*/
|
|
2875
|
+
export function adjustedPatchNig(layout: Layout2d, community_labels: Uint32Array | number[], patch_radius?: number | null, canvas_size?: number | null, pad_frac?: number | null, seed?: number | null): number;
|
|
2876
|
+
|
|
2877
|
+
/**
|
|
2878
|
+
* Computes multi-scale Adjusted Patch-NIG across `radii` (default `[2, 8, 32]`).
|
|
2879
|
+
*/
|
|
2880
|
+
export function adjustedPatchNigMultiscale(layout: Layout2d, community_labels: Uint32Array | number[], radii?: Uint32Array | number[] | null, canvas_size?: number | null, pad_frac?: number | null, seed?: number | null): Float64Array;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Aligns fine-level cluster centroids toward `coarseLayout` via rigid per-cluster translation
|
|
2884
|
+
* in place without rigid disk containment.
|
|
2885
|
+
*/
|
|
2886
|
+
export function alignClusteredCentroids(fine_layout: Layout2d, coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[], gamma_tether?: number | null): void;
|
|
2887
|
+
|
|
1886
2888
|
/**
|
|
1887
2889
|
* Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
|
|
1888
2890
|
*/
|
|
@@ -1893,6 +2895,11 @@ export function allPairsBfs(graph: CsrGraph, unit_edge_length?: number | null):
|
|
|
1893
2895
|
*/
|
|
1894
2896
|
export function angularResolutionV6(graph: CsrGraph, layout: Layout2d): number;
|
|
1895
2897
|
|
|
2898
|
+
/**
|
|
2899
|
+
* 5b. Constructs a symmetric PSD Coifman-Lafon anisotropic graph Laplacian `L_aniso`.
|
|
2900
|
+
*/
|
|
2901
|
+
export function anisotropicLaplacian(graph: CsrGraph, alpha?: number | null, beta?: number | null, degree_reg?: number | null, degree_cap?: number | null, reweighted_degree_norm?: boolean | null): AnisotropicLaplacianResult;
|
|
2902
|
+
|
|
1896
2903
|
/**
|
|
1897
2904
|
* 30. Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
|
|
1898
2905
|
* returning the applied distance floor.
|
|
@@ -1914,6 +2921,11 @@ export function assignLayers(graph: CsrGraph, method?: string | null): Uint32Arr
|
|
|
1914
2921
|
*/
|
|
1915
2922
|
export function bfsSingleSource(graph: CsrGraph, source: number, unit_edge_length?: number | null): Float64Array;
|
|
1916
2923
|
|
|
2924
|
+
/**
|
|
2925
|
+
* 9b. Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
|
|
2926
|
+
*/
|
|
2927
|
+
export function buildCapped12hopKnn(graph: CsrGraph, max_2hop_per_node?: number | null, seed?: number | null): TwoHopKnnResult;
|
|
2928
|
+
|
|
1917
2929
|
/**
|
|
1918
2930
|
* 29. Builds a sorted symmetric CSR `KnnGraph` from 1-hop and 2-hop pair distances enforcing
|
|
1919
2931
|
* strict 1-hop priority ($d_1 < \mathrm{tier2Margin} \cdot d_2$ and $d_1 < d_2$).
|
|
@@ -1941,16 +2953,33 @@ export function buildRerankKnn(coords: Float64Array | number[], num_nodes: numbe
|
|
|
1941
2953
|
*/
|
|
1942
2954
|
export function chebyshevDogJlEmbedding(graph: CsrGraph, jl_dim?: number | null, degree?: number | null, seed?: number | null, degree_normalize?: boolean | null, eps_psd?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null): Float64Array;
|
|
1943
2955
|
|
|
2956
|
+
/**
|
|
2957
|
+
* 7b. Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`
|
|
2958
|
+
* on an arbitrary symmetric PSD `CsrMatrix` with dynamic `[0, lambdaMax]` scaling.
|
|
2959
|
+
*/
|
|
2960
|
+
export function chebyshevDogJlEmbeddingMatrix(matrix: CsrMatrix, jl_dim?: number | null, degree?: number | null, seed?: number | null, eps_psd?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, lambda_max?: number | null, lanczos_steps?: number | null, safety_factor?: number | null, scale_vec?: Float64Array | number[] | null): Float64Array;
|
|
2961
|
+
|
|
1944
2962
|
/**
|
|
1945
2963
|
* 6. Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
|
|
1946
2964
|
*/
|
|
1947
2965
|
export function chebyshevHeatSpmv(graph: CsrGraph, vectors: Float64Array | number[], num_cols: number, t: number, degree?: number | null, lambda_max?: number | null): Float64Array;
|
|
1948
2966
|
|
|
2967
|
+
/**
|
|
2968
|
+
* 6b. Applies Chebyshev heat diffusion $\exp(-t A)$ to a row-major `(numNodes, numCols)` buffer
|
|
2969
|
+
* for an arbitrary symmetric PSD `CsrMatrix` with dynamic `[0, lambdaMax]` scaling.
|
|
2970
|
+
*/
|
|
2971
|
+
export function chebyshevHeatSpmvMatrix(matrix: CsrMatrix, vectors: Float64Array | number[], num_cols: number, t: number, degree?: number | null, lambda_max?: number | null, lanczos_steps?: number | null, safety_factor?: number | null, seed?: number | null): Float64Array;
|
|
2972
|
+
|
|
1949
2973
|
/**
|
|
1950
2974
|
* 20. Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
|
|
1951
2975
|
*/
|
|
1952
2976
|
export function classicalMds2d(graph: CsrGraph): Layout2d;
|
|
1953
2977
|
|
|
2978
|
+
/**
|
|
2979
|
+
* Runs coarse Louvain edge-length-first area reservation and non-SPD backbone initialization.
|
|
2980
|
+
*/
|
|
2981
|
+
export function coarseBackboneInit(graph: CsrGraph, options: any): CoarseBackboneResult;
|
|
2982
|
+
|
|
1954
2983
|
/**
|
|
1955
2984
|
* Coarsens an undirected `CsrGraph` by contracting vertices that share a cluster label.
|
|
1956
2985
|
*/
|
|
@@ -1966,6 +2995,12 @@ export function compute2hopNeighborhoodSizes(graph: CsrGraph): Uint32Array;
|
|
|
1966
2995
|
*/
|
|
1967
2996
|
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;
|
|
1968
2997
|
|
|
2998
|
+
/**
|
|
2999
|
+
* Computes effective edge resistances and Foster's theorem diagnostics via exact pseudoinverse
|
|
3000
|
+
* (for small graphs) or Spielman-Srivastava JL projection solved with `AmgPcgSolver`.
|
|
3001
|
+
*/
|
|
3002
|
+
export function computeEffectiveResistances(graph: CsrGraph, options: any): EffectiveResistanceResult;
|
|
3003
|
+
|
|
1969
3004
|
/**
|
|
1970
3005
|
* 16. Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
|
|
1971
3006
|
*/
|
|
@@ -1991,11 +3026,22 @@ export function computeMedian2hopPerplexity(graph: CsrGraph, c?: number | null,
|
|
|
1991
3026
|
*/
|
|
1992
3027
|
export function computeNodewise2hopPerplexities(graph: CsrGraph, c?: number | null, min_perplexity?: number | null, max_perplexity?: number | null): Float64Array;
|
|
1993
3028
|
|
|
3029
|
+
/**
|
|
3030
|
+
* Computes pure-Rust pivoted `RHGH` landmark tables via `AmgPcgSolver` + JL diagonal probes.
|
|
3031
|
+
*/
|
|
3032
|
+
export function computePivotedRhghLandmarks(graph: CsrGraph, options: any): RhghLandmarksResult;
|
|
3033
|
+
|
|
1994
3034
|
/**
|
|
1995
3035
|
* 19. Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
|
|
1996
3036
|
*/
|
|
1997
3037
|
export function computeRegularizedDogVaradhanLandmarks(graph: CsrGraph, degree?: number | null, num_landmarks?: number | null, seed?: number | null, degree_normalize?: boolean | null, p_exp?: number | null, eps_psd?: number | null, t_coarse?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, beta_floor?: number | null): DogVaradhanLandmarks;
|
|
1998
3038
|
|
|
3039
|
+
/**
|
|
3040
|
+
* 19b. Computes regularized DoG Varadhan landmark tables from a custom symmetric PSD `CsrMatrix`
|
|
3041
|
+
* with dynamic `[0, lambdaMax]` spectrum scaling.
|
|
3042
|
+
*/
|
|
3043
|
+
export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: CsrGraph, matrix: CsrMatrix, lambda_max?: number | null, degree?: number | null, num_landmarks?: number | null, min_degree?: number | null, jl_dim?: number | null, seed?: number | null, degree_normalize?: boolean | null, p_exp?: number | null, eps_psd?: number | null, t_coarse?: number | null, t1?: number | null, t2?: number | null, alpha?: number | null, beta_floor?: number | null): DogVaradhanLandmarks;
|
|
3044
|
+
|
|
1999
3045
|
/**
|
|
2000
3046
|
* 24. Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
|
|
2001
3047
|
*/
|
|
@@ -2016,6 +3062,11 @@ export function crossingEdgesTorus(graph: CsrGraph, layout: Layout2d): TorusCros
|
|
|
2016
3062
|
*/
|
|
2017
3063
|
export function crossingSummary(graph: CsrGraph, layout: Layout2d): CrossingSummary;
|
|
2018
3064
|
|
|
3065
|
+
/**
|
|
3066
|
+
* Computes exact DRGraph Eq. (17) crosslessness $1 - \sqrt{c / c_{\max}} \in [0.0, 1.0]$.
|
|
3067
|
+
*/
|
|
3068
|
+
export function crosslessness(graph: CsrGraph, layout: Layout2d): number;
|
|
3069
|
+
|
|
2019
3070
|
/**
|
|
2020
3071
|
* Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
|
|
2021
3072
|
* returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
|
|
@@ -2051,7 +3102,7 @@ export function edgeAngle(x1: number, y1: number, x2: number, y2: number): numbe
|
|
|
2051
3102
|
/**
|
|
2052
3103
|
* Selectively evaluates only the quality metrics listed in `targets`, skipping unrequested work.
|
|
2053
3104
|
*/
|
|
2054
|
-
export function evaluateMetrics(graph: CsrGraph, layout: Layout2d, targets: any, num_pivots?: number | null, num_samples?: number | null, seed?: number | null, ideal_edge_length?: number | null): MetricReport;
|
|
3105
|
+
export function evaluateMetrics(graph: CsrGraph, layout: Layout2d, targets: any, num_pivots?: number | null, num_samples?: number | null, seed?: number | null, ideal_edge_length?: number | null, community_labels?: Uint32Array | number[] | null, num_landmarks?: number | null, num_triplets?: number | null, min_degree?: number | null, patch_radius?: number | null, canvas_size?: number | null, pad_frac?: number | null): MetricReport;
|
|
2055
3106
|
|
|
2056
3107
|
/**
|
|
2057
3108
|
* 8. Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
|
|
@@ -2084,6 +3135,11 @@ export function gabrielGraphPropertyV6(graph: CsrGraph, layout: Layout2d): numbe
|
|
|
2084
3135
|
*/
|
|
2085
3136
|
export function generateLayeredConstraints(graph: CsrGraph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
|
|
2086
3137
|
|
|
3138
|
+
/**
|
|
3139
|
+
* 27b. Computes row-normalized symmetrized 1+2-hop probabilities with optional capping and `(d_i d_j)^(-degreeBeta)` decay.
|
|
3140
|
+
*/
|
|
3141
|
+
export function graph12hopRowNormalizedProbabilities(graph: CsrGraph, w2?: number | null, max_2hop_per_node?: number | null, degree_beta?: number | null, seed?: number | null): SparseProbabilities;
|
|
3142
|
+
|
|
2087
3143
|
/**
|
|
2088
3144
|
* 27. Computes row-normalized symmetrized graph probabilities from a `CsrGraph`.
|
|
2089
3145
|
*/
|
|
@@ -2118,16 +3174,45 @@ export function korenSpectralInit(graph: CsrGraph, target_std: any, tol?: number
|
|
|
2118
3174
|
export function labelPropagation(graph: CsrGraph, max_iters?: number | null, seed?: number | null): Uint32Array;
|
|
2119
3175
|
|
|
2120
3176
|
/**
|
|
2121
|
-
*
|
|
2122
|
-
|
|
3177
|
+
* Computes Landmark-Stratified Random Triplet Accuracy (`L-Stratified-RTA`) in `[0.0, 1.0]`.
|
|
3178
|
+
*/
|
|
3179
|
+
export function landmarkStratifiedRta(graph: CsrGraph, layout: Layout2d, num_landmarks?: number | null, num_triplets?: number | null, min_degree?: number | null, seed?: number | null): number;
|
|
3180
|
+
|
|
3181
|
+
/**
|
|
3182
|
+
* Computes Landmark-Stratified Random Triplet Accuracy with detailed metadata ([`RtaEvaluation`]).
|
|
3183
|
+
*/
|
|
3184
|
+
export function landmarkStratifiedRtaDetail(graph: CsrGraph, layout: Layout2d, num_landmarks?: number | null, num_triplets?: number | null, min_degree?: number | null, seed?: number | null): RtaEvaluation;
|
|
3185
|
+
|
|
3186
|
+
/**
|
|
3187
|
+
* Computes Landmark-Stratified RTA from a flat row-major `(numLandmarks * N)` `Uint32Array` hop table.
|
|
3188
|
+
*/
|
|
3189
|
+
export function landmarkStratifiedRtaFromLandmarks(layout: Layout2d, landmark_ids: Uint32Array | number[], landmark_dists: Uint32Array | number[], num_triplets?: number | null, seed?: number | null): RtaEvaluation;
|
|
3190
|
+
|
|
3191
|
+
/**
|
|
3192
|
+
* Evaluates duplicate-node (`f32`/`f64`), zero-length edge, and bounding-box degeneracies.
|
|
2123
3193
|
*/
|
|
2124
|
-
export function
|
|
3194
|
+
export function layoutDegeneracy(graph: CsrGraph, layout: Layout2d): LayoutDegeneracy;
|
|
3195
|
+
|
|
3196
|
+
/**
|
|
3197
|
+
* Runs multi-level Louvain coarsening with resolution decay up to `maxCoarseNodes`.
|
|
3198
|
+
*/
|
|
3199
|
+
export function louvainCoarsen(graph: CsrGraph, options: any): CoarsenedHierarchyResult;
|
|
2125
3200
|
|
|
2126
3201
|
/**
|
|
2127
3202
|
* Detects communities on an undirected `CsrGraph` via multi-level Louvain modularity optimization.
|
|
2128
3203
|
*/
|
|
2129
3204
|
export function louvainCommunities(graph: CsrGraph, max_passes?: number | null, resolution?: number | null, min_modularity_gain?: number | null, seed?: number | null): LouvainResult;
|
|
2130
3205
|
|
|
3206
|
+
/**
|
|
3207
|
+
* Computes DRGraph Eq. (19) strict minimum-angle resolution (`A2`) in `[0.0, 1.0]`.
|
|
3208
|
+
*/
|
|
3209
|
+
export function minimumAngle(graph: CsrGraph, layout: Layout2d): number;
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* Computes DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
|
|
3213
|
+
*/
|
|
3214
|
+
export function minimumAngleSummary(graph: CsrGraph, layout: Layout2d): MinimumAngleSummary;
|
|
3215
|
+
|
|
2131
3216
|
/**
|
|
2132
3217
|
* Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
|
|
2133
3218
|
*/
|
|
@@ -2171,6 +3256,11 @@ export function pivotMdsInit(graph: CsrGraph, num_pivots: number | null | undefi
|
|
|
2171
3256
|
*/
|
|
2172
3257
|
export function poincareDistance(x1: number, y1: number, x2: number, y2: number): number;
|
|
2173
3258
|
|
|
3259
|
+
/**
|
|
3260
|
+
* Computes Poincaré disk Möbius addition `(x1, y1) (+) (x2, y2)` inside the open unit disk, returning `[x, y]`.
|
|
3261
|
+
*/
|
|
3262
|
+
export function poincareMobiusAdd(x1: number, y1: number, x2: number, y2: number): Float64Array;
|
|
3263
|
+
|
|
2174
3264
|
/**
|
|
2175
3265
|
* Computes PRISM layout-preservation distortion (`sigmaDist`, `sigmaDisp`) comparing `originalLayout`
|
|
2176
3266
|
* and `adjustedLayout`.
|
|
@@ -2193,6 +3283,11 @@ export function project1d(coords: Float32Array, constraints: any): Float32Array;
|
|
|
2193
3283
|
*/
|
|
2194
3284
|
export function projectClusteredLayout(coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[], spread_radius?: number | null, seed?: number | null): Layout2d;
|
|
2195
3285
|
|
|
3286
|
+
/**
|
|
3287
|
+
* Projects a coarse 2D `Layout2d` (`f32`) onto fine vertices using per-cluster `clusterRadii`.
|
|
3288
|
+
*/
|
|
3289
|
+
export function projectClusteredLayoutWithRadii(coarse_layout: Layout2d, node_to_coarse: Uint32Array | number[], cluster_radii: Float64Array | number[], jitter_scale?: number | null, seed?: number | null): Layout2d;
|
|
3290
|
+
|
|
2196
3291
|
/**
|
|
2197
3292
|
* Eliminates overlaps between axis-aligned cluster bounding boxes in `layout` in place while
|
|
2198
3293
|
* rigidly preserving relative coordinates within each cluster.
|
|
@@ -2237,11 +3332,27 @@ export function removeCycles(graph: CsrGraph): CsrGraph;
|
|
|
2237
3332
|
*/
|
|
2238
3333
|
export function representativeMds(distances_to_reps: Float64Array | number[], num_nodes: number, num_reps: number, dims: number): LayoutNd;
|
|
2239
3334
|
|
|
3335
|
+
/**
|
|
3336
|
+
* Runs Devriendt-Lambiotte resistance curvature flow on `graph` and classifies target geometry.
|
|
3337
|
+
*/
|
|
3338
|
+
export function resistanceCurvatureFlow(graph: CsrGraph, options: any): ResistanceCurvatureFlowResult;
|
|
3339
|
+
|
|
3340
|
+
/**
|
|
3341
|
+
* 22b. Median-centers and Gaussian-calibrated radial quantile-scales `layout` in place so core spread matches `targetStd` (default `1.0`).
|
|
3342
|
+
*/
|
|
3343
|
+
export function robustNormalizeLayout2d(layout: Layout2d, target_std?: number | null, quantile?: number | null, seed?: number | null): void;
|
|
3344
|
+
|
|
2240
3345
|
/**
|
|
2241
3346
|
* Estimates edge crossings in $O(\text{numSamples})$ time (`numSamples` default `4096`, `seed` default `42`).
|
|
2242
3347
|
*/
|
|
2243
3348
|
export function sampledCrossingNumber(graph: CsrGraph, layout: Layout2d, num_samples?: number | null, seed?: number | null): number;
|
|
2244
3349
|
|
|
3350
|
+
/**
|
|
3351
|
+
* Estimates DRGraph Eq. (17) crosslessness $1 - \sqrt{\hat{c} / c_{\max}} \in [0.0, 1.0]$
|
|
3352
|
+
* (`numSamples` default `4096`, `seed` default `42`).
|
|
3353
|
+
*/
|
|
3354
|
+
export function sampledCrosslessness(graph: CsrGraph, layout: Layout2d, num_samples?: number | null, seed?: number | null): number;
|
|
3355
|
+
|
|
2245
3356
|
/**
|
|
2246
3357
|
* Estimates 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]` via deterministic vertex sampling (`numSamples` default `4096`, `seed` default `42`).
|
|
2247
3358
|
*/
|
|
@@ -2344,13 +3455,21 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
2344
3455
|
|
|
2345
3456
|
export interface InitOutput {
|
|
2346
3457
|
readonly memory: WebAssembly.Memory;
|
|
3458
|
+
readonly __wbg_amgpcgbatchresult_free: (a: number, b: number) => void;
|
|
3459
|
+
readonly __wbg_amgpcgsolver_free: (a: number, b: number) => void;
|
|
3460
|
+
readonly __wbg_amgpcgsolveresult_free: (a: number, b: number) => void;
|
|
3461
|
+
readonly __wbg_anisotropiclaplacianresult_free: (a: number, b: number) => void;
|
|
3462
|
+
readonly __wbg_coarsebackboneresult_free: (a: number, b: number) => void;
|
|
2347
3463
|
readonly __wbg_coarsenedgraphresult_free: (a: number, b: number) => void;
|
|
3464
|
+
readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
|
|
2348
3465
|
readonly __wbg_crossingpair_free: (a: number, b: number) => void;
|
|
2349
3466
|
readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
|
|
2350
3467
|
readonly __wbg_csrgraph_free: (a: number, b: number) => void;
|
|
3468
|
+
readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
|
|
2351
3469
|
readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
|
|
2352
3470
|
readonly __wbg_dogstats_free: (a: number, b: number) => void;
|
|
2353
3471
|
readonly __wbg_dogvaradhanlandmarks_free: (a: number, b: number) => void;
|
|
3472
|
+
readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
|
|
2354
3473
|
readonly __wbg_eigenresult_free: (a: number, b: number) => void;
|
|
2355
3474
|
readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
|
|
2356
3475
|
readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
|
|
@@ -2363,12 +3482,22 @@ export interface InitOutput {
|
|
|
2363
3482
|
readonly __wbg_knngraph_free: (a: number, b: number) => void;
|
|
2364
3483
|
readonly __wbg_largestconnectedcomponentresult_free: (a: number, b: number) => void;
|
|
2365
3484
|
readonly __wbg_layout2d_free: (a: number, b: number) => void;
|
|
3485
|
+
readonly __wbg_layoutdegeneracy_free: (a: number, b: number) => void;
|
|
2366
3486
|
readonly __wbg_layoutnd_free: (a: number, b: number) => void;
|
|
2367
3487
|
readonly __wbg_louvainresult_free: (a: number, b: number) => void;
|
|
2368
3488
|
readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
|
|
2369
3489
|
readonly __wbg_metricreport_free: (a: number, b: number) => void;
|
|
3490
|
+
readonly __wbg_minimumanglesummary_free: (a: number, b: number) => void;
|
|
3491
|
+
readonly __wbg_pacmapbackboneresult_free: (a: number, b: number) => void;
|
|
2370
3492
|
readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
|
|
2371
3493
|
readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
|
|
3494
|
+
readonly __wbg_resistancecurvatureflowresult_free: (a: number, b: number) => void;
|
|
3495
|
+
readonly __wbg_resistancecurvaturestep_free: (a: number, b: number) => void;
|
|
3496
|
+
readonly __wbg_rhghlandmarksresult_free: (a: number, b: number) => void;
|
|
3497
|
+
readonly __wbg_rtaevaluation_free: (a: number, b: number) => void;
|
|
3498
|
+
readonly __wbg_screenedpoissonfield2d_free: (a: number, b: number) => void;
|
|
3499
|
+
readonly __wbg_screenedpoissonrefiner_free: (a: number, b: number) => void;
|
|
3500
|
+
readonly __wbg_screenedpoissonresult_free: (a: number, b: number) => void;
|
|
2372
3501
|
readonly __wbg_separationconstraint_free: (a: number, b: number) => void;
|
|
2373
3502
|
readonly __wbg_sgdsolver_free: (a: number, b: number) => void;
|
|
2374
3503
|
readonly __wbg_sparse12hoppairs_free: (a: number, b: number) => void;
|
|
@@ -2386,32 +3515,113 @@ export interface InitOutput {
|
|
|
2386
3515
|
readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
|
|
2387
3516
|
readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
|
|
2388
3517
|
readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
|
|
3518
|
+
readonly adjustedPatchNig: (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;
|
|
3519
|
+
readonly adjustedPatchNigMultiscale: (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;
|
|
3520
|
+
readonly alignClusteredCentroids: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2389
3521
|
readonly allPairsBfs: (a: number, b: number, c: number, d: number) => void;
|
|
3522
|
+
readonly amgpcgbatchresult_allConverged: (a: number) => number;
|
|
3523
|
+
readonly amgpcgbatchresult_convergedPerCol: (a: number, b: number) => void;
|
|
3524
|
+
readonly amgpcgbatchresult_iterationsPerCol: (a: number, b: number) => void;
|
|
3525
|
+
readonly amgpcgbatchresult_maxIterationsUsed: (a: number) => number;
|
|
3526
|
+
readonly amgpcgbatchresult_maxRelativeResidual: (a: number) => number;
|
|
3527
|
+
readonly amgpcgbatchresult_maxResidualNorm: (a: number) => number;
|
|
3528
|
+
readonly amgpcgbatchresult_minIterationsUsed: (a: number) => number;
|
|
3529
|
+
readonly amgpcgbatchresult_ncols: (a: number) => number;
|
|
3530
|
+
readonly amgpcgbatchresult_numNodes: (a: number) => number;
|
|
3531
|
+
readonly amgpcgbatchresult_relativeResiduals: (a: number, b: number) => void;
|
|
3532
|
+
readonly amgpcgbatchresult_residualNorms: (a: number, b: number) => void;
|
|
3533
|
+
readonly amgpcgbatchresult_totalIterations: (a: number) => number;
|
|
3534
|
+
readonly amgpcgbatchresult_x: (a: number, b: number) => void;
|
|
3535
|
+
readonly amgpcgsolver_coarsestSize: (a: number) => number;
|
|
3536
|
+
readonly amgpcgsolver_converged: (a: number) => number;
|
|
3537
|
+
readonly amgpcgsolver_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: any) => void;
|
|
3538
|
+
readonly amgpcgsolver_fromCsrMatrix: (a: number, b: number, c: any) => void;
|
|
3539
|
+
readonly amgpcgsolver_fromGraphLaplacian: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
|
|
3540
|
+
readonly amgpcgsolver_fromGraphRegularizedLaplacian: (a: number, b: number, c: number, d: number, e: any) => void;
|
|
3541
|
+
readonly amgpcgsolver_isFinished: (a: number) => number;
|
|
3542
|
+
readonly amgpcgsolver_iteration: (a: number) => number;
|
|
3543
|
+
readonly amgpcgsolver_maxLevelNnz: (a: number) => number;
|
|
3544
|
+
readonly amgpcgsolver_numLevels: (a: number) => number;
|
|
3545
|
+
readonly amgpcgsolver_numNodes: (a: number) => number;
|
|
3546
|
+
readonly amgpcgsolver_operatorComplexity: (a: number) => number;
|
|
3547
|
+
readonly amgpcgsolver_relativeResidual: (a: number) => number;
|
|
3548
|
+
readonly amgpcgsolver_residualNorm: (a: number) => number;
|
|
3549
|
+
readonly amgpcgsolver_run: (a: number, b: number) => void;
|
|
3550
|
+
readonly amgpcgsolver_runSteps: (a: number, b: number, c: number) => void;
|
|
3551
|
+
readonly amgpcgsolver_solution: (a: number, b: number) => void;
|
|
3552
|
+
readonly amgpcgsolver_solve: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3553
|
+
readonly amgpcgsolver_solveBatch: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
3554
|
+
readonly amgpcgsolver_startSolve: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3555
|
+
readonly amgpcgsolver_status: (a: number, b: number) => void;
|
|
3556
|
+
readonly amgpcgsolver_step: (a: number, b: number) => void;
|
|
3557
|
+
readonly amgpcgsolver_totalIterations: (a: number) => number;
|
|
3558
|
+
readonly amgpcgsolveresult_converged: (a: number) => number;
|
|
3559
|
+
readonly amgpcgsolveresult_iterations: (a: number) => number;
|
|
3560
|
+
readonly amgpcgsolveresult_relativeResidual: (a: number) => number;
|
|
3561
|
+
readonly amgpcgsolveresult_residualNorm: (a: number) => number;
|
|
3562
|
+
readonly amgpcgsolveresult_status: (a: number, b: number) => void;
|
|
3563
|
+
readonly amgpcgsolveresult_x: (a: number, b: number) => void;
|
|
2390
3564
|
readonly angularResolutionV6: (a: number, b: number, c: number) => void;
|
|
3565
|
+
readonly anisotropicLaplacian: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3566
|
+
readonly anisotropiclaplacianresult_matrix: (a: number) => number;
|
|
3567
|
+
readonly anisotropiclaplacianresult_nullspace: (a: number, b: number) => void;
|
|
3568
|
+
readonly anisotropiclaplacianresult_outerScale: (a: number, b: number) => void;
|
|
2391
3569
|
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;
|
|
2392
3570
|
readonly aspectRatioV6: (a: number, b: number) => void;
|
|
2393
3571
|
readonly assignLayers: (a: number, b: number, c: number, d: number) => void;
|
|
2394
3572
|
readonly bfsSingleSource: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3573
|
+
readonly buildCapped12hopKnn: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2395
3574
|
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;
|
|
2396
3575
|
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;
|
|
2397
3576
|
readonly buildPure2hopKnn: (a: number, b: number) => void;
|
|
2398
3577
|
readonly buildRerankKnn: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2399
3578
|
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;
|
|
3579
|
+
readonly chebyshevDogJlEmbeddingMatrix: (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) => void;
|
|
2400
3580
|
readonly chebyshevHeatSpmv: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
3581
|
+
readonly chebyshevHeatSpmvMatrix: (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;
|
|
2401
3582
|
readonly classicalMds2d: (a: number, b: number) => void;
|
|
3583
|
+
readonly coarseBackboneInit: (a: number, b: number, c: any) => void;
|
|
3584
|
+
readonly coarsebackboneresult_coarseGraph: (a: number) => number;
|
|
3585
|
+
readonly coarsebackboneresult_coarseLayout: (a: number) => number;
|
|
3586
|
+
readonly coarsebackboneresult_coarseOverlapPairsFinal: (a: number) => number;
|
|
3587
|
+
readonly coarsebackboneresult_coarseOverlapPairsInitial: (a: number) => number;
|
|
3588
|
+
readonly coarsebackboneresult_coarseSizes: (a: number, b: number) => void;
|
|
3589
|
+
readonly coarsebackboneresult_fineLayout: (a: number) => number;
|
|
3590
|
+
readonly coarsebackboneresult_louvainLevels: (a: number) => number;
|
|
3591
|
+
readonly coarsebackboneresult_maxClusterSize: (a: number) => number;
|
|
3592
|
+
readonly coarsebackboneresult_maxRadius: (a: number) => number;
|
|
3593
|
+
readonly coarsebackboneresult_meanClusterSize: (a: number) => number;
|
|
3594
|
+
readonly coarsebackboneresult_medianLEdge: (a: number) => number;
|
|
3595
|
+
readonly coarsebackboneresult_nodeToCoarse: (a: number, b: number) => void;
|
|
3596
|
+
readonly coarsebackboneresult_numCoarseEdges: (a: number) => number;
|
|
3597
|
+
readonly coarsebackboneresult_numCoarseNodes: (a: number) => number;
|
|
3598
|
+
readonly coarsebackboneresult_numFineNodes: (a: number) => number;
|
|
3599
|
+
readonly coarsebackboneresult_radii: (a: number, b: number) => void;
|
|
3600
|
+
readonly coarsebackboneresult_scaleFactorApplied: (a: number) => number;
|
|
2402
3601
|
readonly coarsenGraph: (a: number, b: number, c: number, d: number) => void;
|
|
2403
3602
|
readonly coarsenedgraphresult_coarseSizes: (a: number, b: number) => void;
|
|
2404
3603
|
readonly coarsenedgraphresult_graph: (a: number) => number;
|
|
2405
3604
|
readonly coarsenedgraphresult_nodeToCoarse: (a: number, b: number) => void;
|
|
2406
3605
|
readonly coarsenedgraphresult_numClusters: (a: number) => number;
|
|
3606
|
+
readonly coarsenedhierarchyresult_coarseGraph: (a: number) => number;
|
|
3607
|
+
readonly coarsenedhierarchyresult_coarseSizes: (a: number, b: number) => void;
|
|
3608
|
+
readonly coarsenedhierarchyresult_levelModularities: (a: number, b: number) => void;
|
|
3609
|
+
readonly coarsenedhierarchyresult_levelNumClusters: (a: number, b: number) => void;
|
|
3610
|
+
readonly coarsenedhierarchyresult_levelResolutions: (a: number, b: number) => void;
|
|
3611
|
+
readonly coarsenedhierarchyresult_nodeToCoarse: (a: number, b: number) => void;
|
|
3612
|
+
readonly coarsenedhierarchyresult_numClusters: (a: number) => number;
|
|
3613
|
+
readonly coarsenedhierarchyresult_numLevels: (a: number) => number;
|
|
2407
3614
|
readonly compute2hopNeighborhoodSizes: (a: number, b: number) => void;
|
|
2408
3615
|
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;
|
|
3616
|
+
readonly computeEffectiveResistances: (a: number, b: number, c: any) => void;
|
|
2409
3617
|
readonly computeFuzzySimplicialSet: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2410
3618
|
readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
|
|
2411
3619
|
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;
|
|
2412
3620
|
readonly computeMedian2hopPerplexity: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2413
3621
|
readonly computeNodewise2hopPerplexities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3622
|
+
readonly computePivotedRhghLandmarks: (a: number, b: number, c: any) => void;
|
|
2414
3623
|
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;
|
|
3624
|
+
readonly computeRegularizedDogVaradhanLandmarksFromMatrix: (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: number, b1: number, c1: number, d1: number) => void;
|
|
2415
3625
|
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;
|
|
2416
3626
|
readonly crossingEdges: (a: number, b: number, c: number) => void;
|
|
2417
3627
|
readonly crossingEdgesTorus: (a: number, b: number, c: number) => void;
|
|
@@ -2427,6 +3637,7 @@ export interface InitOutput {
|
|
|
2427
3637
|
readonly crossingsummary_angleCosSqSum: (a: number) => number;
|
|
2428
3638
|
readonly crossingsummary_count: (a: number) => number;
|
|
2429
3639
|
readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
|
|
3640
|
+
readonly crosslessness: (a: number, b: number, c: number) => void;
|
|
2430
3641
|
readonly csrgraph_degree: (a: number, b: number, c: number) => void;
|
|
2431
3642
|
readonly csrgraph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
|
|
2432
3643
|
readonly csrgraph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
|
|
@@ -2441,6 +3652,21 @@ export interface InitOutput {
|
|
|
2441
3652
|
readonly csrgraph_numEdges: (a: number) => number;
|
|
2442
3653
|
readonly csrgraph_numNodes: (a: number) => number;
|
|
2443
3654
|
readonly csrgraph_weights: (a: number, b: number) => void;
|
|
3655
|
+
readonly csrmatrix_diagonal: (a: number, b: number) => void;
|
|
3656
|
+
readonly csrmatrix_estimateLambdaMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3657
|
+
readonly csrmatrix_estimateLambdaMaxLanczos: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3658
|
+
readonly csrmatrix_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3659
|
+
readonly csrmatrix_gershgorinSpectralBound: (a: number) => number;
|
|
3660
|
+
readonly csrmatrix_indices: (a: number, b: number) => void;
|
|
3661
|
+
readonly csrmatrix_indptr: (a: number, b: number) => void;
|
|
3662
|
+
readonly csrmatrix_isSymmetric: (a: number, b: number, c: number) => number;
|
|
3663
|
+
readonly csrmatrix_nnz: (a: number) => number;
|
|
3664
|
+
readonly csrmatrix_numNodes: (a: number) => number;
|
|
3665
|
+
readonly csrmatrix_scaleAndShift: (a: number, b: number, c: number, d: number) => void;
|
|
3666
|
+
readonly csrmatrix_spmv: (a: number, b: number, c: number, d: number) => void;
|
|
3667
|
+
readonly csrmatrix_toDense: (a: number, b: number) => void;
|
|
3668
|
+
readonly csrmatrix_trace: (a: number) => number;
|
|
3669
|
+
readonly csrmatrix_values: (a: number, b: number) => void;
|
|
2444
3670
|
readonly cycleEdges: (a: number, b: number) => void;
|
|
2445
3671
|
readonly delaunayToCsr: (a: number, b: number) => void;
|
|
2446
3672
|
readonly delaunayTriangulation: (a: number, b: number) => void;
|
|
@@ -2467,6 +3693,7 @@ export interface InitOutput {
|
|
|
2467
3693
|
readonly dogvaradhanlandmarks_betaAuto: (a: number) => number;
|
|
2468
3694
|
readonly dogvaradhanlandmarks_betaEff: (a: number) => number;
|
|
2469
3695
|
readonly dogvaradhanlandmarks_coarseTable: (a: number, b: number) => void;
|
|
3696
|
+
readonly dogvaradhanlandmarks_degree: (a: number) => number;
|
|
2470
3697
|
readonly dogvaradhanlandmarks_deltaPsd: (a: number) => number;
|
|
2471
3698
|
readonly dogvaradhanlandmarks_landmarks: (a: number, b: number) => void;
|
|
2472
3699
|
readonly dogvaradhanlandmarks_numLandmarks: (a: number) => number;
|
|
@@ -2477,13 +3704,28 @@ export interface InitOutput {
|
|
|
2477
3704
|
readonly dogvaradhanlandmarks_usedCoarseScaffold: (a: number) => number;
|
|
2478
3705
|
readonly drngPreservation: (a: number, b: number, c: number) => void;
|
|
2479
3706
|
readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3707
|
+
readonly effectiveresistanceresult_amgAllConverged: (a: number) => number;
|
|
3708
|
+
readonly effectiveresistanceresult_amgMaxRelativeResidual: (a: number) => number;
|
|
3709
|
+
readonly effectiveresistanceresult_amgTotalIterations: (a: number) => number;
|
|
3710
|
+
readonly effectiveresistanceresult_conductances: (a: number, b: number) => void;
|
|
3711
|
+
readonly effectiveresistanceresult_edgeLengths: (a: number, b: number) => void;
|
|
3712
|
+
readonly effectiveresistanceresult_edgeU: (a: number, b: number) => void;
|
|
3713
|
+
readonly effectiveresistanceresult_edgeV: (a: number, b: number) => void;
|
|
3714
|
+
readonly effectiveresistanceresult_effectiveResistances: (a: number, b: number) => void;
|
|
3715
|
+
readonly effectiveresistanceresult_expectedFoster: (a: number) => number;
|
|
3716
|
+
readonly effectiveresistanceresult_fosterRelErr: (a: number) => number;
|
|
3717
|
+
readonly effectiveresistanceresult_fosterSum: (a: number) => number;
|
|
3718
|
+
readonly effectiveresistanceresult_numComponents: (a: number) => number;
|
|
3719
|
+
readonly effectiveresistanceresult_numEdges: (a: number) => number;
|
|
3720
|
+
readonly effectiveresistanceresult_numNodes: (a: number) => number;
|
|
3721
|
+
readonly effectiveresistanceresult_usedExact: (a: number) => number;
|
|
2480
3722
|
readonly eigenresult_invSqrtDeg: (a: number, b: number) => void;
|
|
2481
3723
|
readonly eigenresult_lambdas: (a: number, b: number) => void;
|
|
2482
3724
|
readonly eigenresult_numModes: (a: number) => number;
|
|
2483
3725
|
readonly eigenresult_numNodes: (a: number) => number;
|
|
2484
3726
|
readonly eigenresult_usedDenseFallback: (a: number) => number;
|
|
2485
3727
|
readonly eigenresult_vectors: (a: number, b: number) => void;
|
|
2486
|
-
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;
|
|
3728
|
+
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, 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) => void;
|
|
2487
3729
|
readonly extract1hop2hopCsr: (a: number, b: number) => void;
|
|
2488
3730
|
readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2489
3731
|
readonly fdebsolver_edgeOffsets: (a: number, b: number) => void;
|
|
@@ -2514,6 +3756,7 @@ export interface InitOutput {
|
|
|
2514
3756
|
readonly gabrielGraphEdges: (a: number, b: number) => void;
|
|
2515
3757
|
readonly gabrielGraphPropertyV6: (a: number, b: number, c: number) => void;
|
|
2516
3758
|
readonly generateLayeredConstraints: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3759
|
+
readonly graph12hopRowNormalizedProbabilities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2517
3760
|
readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
|
|
2518
3761
|
readonly gumapsolver_a: (a: number) => number;
|
|
2519
3762
|
readonly gumapsolver_ab: (a: number, b: number) => void;
|
|
@@ -2584,6 +3827,9 @@ export interface InitOutput {
|
|
|
2584
3827
|
readonly knngraph_numNodes: (a: number) => number;
|
|
2585
3828
|
readonly korenSpectralInit: (a: number, b: number, c: any, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
2586
3829
|
readonly labelPropagation: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3830
|
+
readonly landmarkStratifiedRta: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3831
|
+
readonly landmarkStratifiedRtaDetail: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
3832
|
+
readonly landmarkStratifiedRtaFromLandmarks: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2587
3833
|
readonly largestconnectedcomponentresult_graph: (a: number) => number;
|
|
2588
3834
|
readonly largestconnectedcomponentresult_nodeIds: (a: number, b: number) => void;
|
|
2589
3835
|
readonly largestconnectedcomponentresult_originalNodeIds: (a: number, b: number) => void;
|
|
@@ -2602,6 +3848,19 @@ export interface InitOutput {
|
|
|
2602
3848
|
readonly layout2d_x: (a: number, b: number, c: number) => void;
|
|
2603
3849
|
readonly layout2d_y: (a: number, b: number, c: number) => void;
|
|
2604
3850
|
readonly layout2d_zeros: (a: number, b: number) => void;
|
|
3851
|
+
readonly layoutDegeneracy: (a: number, b: number, c: number) => void;
|
|
3852
|
+
readonly layoutdegeneracy_bboxHeight: (a: number) => number;
|
|
3853
|
+
readonly layoutdegeneracy_bboxWidth: (a: number) => number;
|
|
3854
|
+
readonly layoutdegeneracy_duplicateNodesF32: (a: number) => number;
|
|
3855
|
+
readonly layoutdegeneracy_duplicateNodesF64: (a: number) => number;
|
|
3856
|
+
readonly layoutdegeneracy_duplicateRatioF32: (a: number) => number;
|
|
3857
|
+
readonly layoutdegeneracy_duplicateRatioF64: (a: number) => number;
|
|
3858
|
+
readonly layoutdegeneracy_isBboxDegenerate: (a: number) => number;
|
|
3859
|
+
readonly layoutdegeneracy_numEdges: (a: number) => number;
|
|
3860
|
+
readonly layoutdegeneracy_numNodes: (a: number) => number;
|
|
3861
|
+
readonly layoutdegeneracy_toRecord: (a: number, b: number) => void;
|
|
3862
|
+
readonly layoutdegeneracy_zeroLengthEdgeRatio: (a: number) => number;
|
|
3863
|
+
readonly layoutdegeneracy_zeroLengthEdges: (a: number) => number;
|
|
2605
3864
|
readonly layoutnd_coordsLen: (a: number) => number;
|
|
2606
3865
|
readonly layoutnd_coordsPtr: (a: number) => number;
|
|
2607
3866
|
readonly layoutnd_copyCoords: (a: number, b: number) => void;
|
|
@@ -2612,16 +3871,18 @@ export interface InitOutput {
|
|
|
2612
3871
|
readonly layoutnd_len: (a: number) => number;
|
|
2613
3872
|
readonly layoutnd_numNodes: (a: number) => number;
|
|
2614
3873
|
readonly layoutnd_zeros: (a: number, b: number, c: number) => void;
|
|
2615
|
-
readonly
|
|
3874
|
+
readonly louvainCoarsen: (a: number, b: number, c: any) => void;
|
|
2616
3875
|
readonly louvainCommunities: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2617
3876
|
readonly louvainresult_labels: (a: number, b: number) => void;
|
|
2618
3877
|
readonly louvainresult_modularity: (a: number) => number;
|
|
2619
3878
|
readonly louvainresult_numCommunities: (a: number) => number;
|
|
2620
3879
|
readonly louvainresult_passes: (a: number) => number;
|
|
2621
3880
|
readonly manifoldlayout2d_applyTangentStep: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
3881
|
+
readonly manifoldlayout2d_centerPoincareCentroid: (a: number, b: number) => void;
|
|
2622
3882
|
readonly manifoldlayout2d_coords: (a: number, b: number) => void;
|
|
2623
3883
|
readonly manifoldlayout2d_fromCoords: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2624
3884
|
readonly manifoldlayout2d_fromLayout: (a: number, b: number, c: number, d: number) => void;
|
|
3885
|
+
readonly manifoldlayout2d_fromLayoutScaled: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2625
3886
|
readonly manifoldlayout2d_geodesicDistance: (a: number, b: number, c: number, d: number) => void;
|
|
2626
3887
|
readonly manifoldlayout2d_hyperbolicPoincare: (a: number, b: number) => void;
|
|
2627
3888
|
readonly manifoldlayout2d_isAllFinite: (a: number) => number;
|
|
@@ -2630,7 +3891,11 @@ export interface InitOutput {
|
|
|
2630
3891
|
readonly manifoldlayout2d_len: (a: number) => number;
|
|
2631
3892
|
readonly manifoldlayout2d_manifold: (a: number, b: number) => void;
|
|
2632
3893
|
readonly manifoldlayout2d_numNodes: (a: number) => number;
|
|
3894
|
+
readonly manifoldlayout2d_poincareCentroid: (a: number, b: number) => void;
|
|
2633
3895
|
readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
|
|
3896
|
+
readonly manifoldlayout2d_randomInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3897
|
+
readonly manifoldlayout2d_recenterPoincare: (a: number, b: number, c: number, d: number) => void;
|
|
3898
|
+
readonly manifoldlayout2d_recenterPoincareAt: (a: number, b: number, c: number) => void;
|
|
2634
3899
|
readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2635
3900
|
readonly manifoldlayout2d_spherical: (a: number, b: number) => void;
|
|
2636
3901
|
readonly manifoldlayout2d_tangentDelta: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -2639,31 +3904,47 @@ export interface InitOutput {
|
|
|
2639
3904
|
readonly manifoldlayout2d_x: (a: number, b: number, c: number) => void;
|
|
2640
3905
|
readonly manifoldlayout2d_y: (a: number, b: number, c: number) => void;
|
|
2641
3906
|
readonly manifoldlayout2d_zeros: (a: number, b: number, c: number, d: number) => void;
|
|
3907
|
+
readonly metricreport_adjustedPatchNig: (a: number, b: number) => void;
|
|
2642
3908
|
readonly metricreport_angularResolution: (a: number, b: number) => void;
|
|
2643
3909
|
readonly metricreport_aspectRatio: (a: number, b: number) => void;
|
|
2644
3910
|
readonly metricreport_crossingAngle: (a: number, b: number) => void;
|
|
2645
3911
|
readonly metricreport_crossingNumber: (a: number) => number;
|
|
3912
|
+
readonly metricreport_crosslessness: (a: number, b: number) => void;
|
|
2646
3913
|
readonly metricreport_gabrielGraphPreservation: (a: number, b: number) => void;
|
|
2647
3914
|
readonly metricreport_gabrielGraphProperty: (a: number, b: number) => void;
|
|
2648
3915
|
readonly metricreport_idealEdgeLengths: (a: number, b: number) => void;
|
|
3916
|
+
readonly metricreport_landmarkStratifiedRta: (a: number, b: number) => void;
|
|
3917
|
+
readonly metricreport_layoutDegeneracy: (a: number, b: number) => void;
|
|
3918
|
+
readonly metricreport_minimumAngle: (a: number, b: number) => void;
|
|
3919
|
+
readonly metricreport_minimumAngleA1: (a: number, b: number) => void;
|
|
2649
3920
|
readonly metricreport_neighborhoodPreservation1Hop: (a: number, b: number) => void;
|
|
2650
3921
|
readonly metricreport_neighborhoodPreservation2Hop: (a: number, b: number) => void;
|
|
2651
3922
|
readonly metricreport_nodeResolution: (a: number, b: number) => void;
|
|
2652
3923
|
readonly metricreport_relativeNeighborhoodPreservation: (a: number, b: number) => void;
|
|
2653
3924
|
readonly metricreport_sampledCrossingNumber: (a: number, b: number) => void;
|
|
3925
|
+
readonly metricreport_sampledCrosslessness: (a: number, b: number) => void;
|
|
2654
3926
|
readonly metricreport_sampledNp1: (a: number, b: number) => void;
|
|
2655
3927
|
readonly metricreport_sampledNp2: (a: number, b: number) => void;
|
|
2656
3928
|
readonly metricreport_sampledScaleNormalizedStress: (a: number, b: number) => void;
|
|
2657
3929
|
readonly metricreport_scaleNormalizedStress: (a: number, b: number) => void;
|
|
2658
3930
|
readonly metricreport_toRecord: (a: number, b: number) => void;
|
|
3931
|
+
readonly minimumAngle: (a: number, b: number, c: number) => void;
|
|
3932
|
+
readonly minimumAngleSummary: (a: number, b: number, c: number) => void;
|
|
3933
|
+
readonly minimumanglesummary_a1: (a: number) => number;
|
|
3934
|
+
readonly minimumanglesummary_a2: (a: number) => number;
|
|
3935
|
+
readonly minimumanglesummary_toRecord: (a: number, b: number) => void;
|
|
2659
3936
|
readonly neighborhoodPreservation1Hop: (a: number, b: number, c: number) => void;
|
|
2660
3937
|
readonly neighborhoodPreservation2HopV6: (a: number, b: number, c: number) => void;
|
|
2661
3938
|
readonly nodeResolutionV6: (a: number, b: number) => void;
|
|
2662
3939
|
readonly normalizeLayout2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3940
|
+
readonly pacmapbackboneresult_backbone: (a: number) => number;
|
|
3941
|
+
readonly pacmapbackboneresult_fineLayout: (a: number) => number;
|
|
3942
|
+
readonly pacmapbackboneresult_solver: (a: number) => number;
|
|
2663
3943
|
readonly parseCsrCsv: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2664
3944
|
readonly partialBfsKnn: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
2665
3945
|
readonly pivotMdsInit: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: any) => void;
|
|
2666
3946
|
readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
|
|
3947
|
+
readonly poincareMobiusAdd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2667
3948
|
readonly prismDistortion: (a: number, b: number, c: number) => void;
|
|
2668
3949
|
readonly prismDistortionWithEdges: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
2669
3950
|
readonly prismdistortion_sigmaDisp: (a: number) => number;
|
|
@@ -2681,6 +3962,7 @@ export interface InitOutput {
|
|
|
2681
3962
|
readonly prismoverlapremoval_totalIterations: (a: number) => number;
|
|
2682
3963
|
readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
2683
3964
|
readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
3965
|
+
readonly projectClusteredLayoutWithRadii: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
2684
3966
|
readonly projectClusteredRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2685
3967
|
readonly projectLayoutAxis: (a: number, b: number, c: any, d: any) => void;
|
|
2686
3968
|
readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
@@ -2689,12 +3971,114 @@ export interface InitOutput {
|
|
|
2689
3971
|
readonly relativeNeighborhoodEdges: (a: number, b: number) => void;
|
|
2690
3972
|
readonly removeCycles: (a: number, b: number) => void;
|
|
2691
3973
|
readonly representativeMds: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
3974
|
+
readonly resistanceCurvatureFlow: (a: number, b: number, c: any) => void;
|
|
3975
|
+
readonly resistancecurvatureflowresult_amgAllConverged: (a: number) => number;
|
|
3976
|
+
readonly resistancecurvatureflowresult_amgMaxRelativeResidual: (a: number) => number;
|
|
3977
|
+
readonly resistancecurvatureflowresult_amgTotalIterations: (a: number) => number;
|
|
3978
|
+
readonly resistancecurvatureflowresult_conductanceGraph: (a: number, b: number) => void;
|
|
3979
|
+
readonly resistancecurvatureflowresult_conductances: (a: number, b: number) => void;
|
|
3980
|
+
readonly resistancecurvatureflowresult_edgeLengths: (a: number, b: number) => void;
|
|
3981
|
+
readonly resistancecurvatureflowresult_edgeU: (a: number, b: number) => void;
|
|
3982
|
+
readonly resistancecurvatureflowresult_edgeV: (a: number, b: number) => void;
|
|
3983
|
+
readonly resistancecurvatureflowresult_effectiveResistances: (a: number, b: number) => void;
|
|
3984
|
+
readonly resistancecurvatureflowresult_expectedFoster: (a: number) => number;
|
|
3985
|
+
readonly resistancecurvatureflowresult_fosterRelErr: (a: number) => number;
|
|
3986
|
+
readonly resistancecurvatureflowresult_fosterSum: (a: number) => number;
|
|
3987
|
+
readonly resistancecurvatureflowresult_lengthGraph: (a: number, b: number) => void;
|
|
3988
|
+
readonly resistancecurvatureflowresult_linkCurvatures: (a: number, b: number) => void;
|
|
3989
|
+
readonly resistancecurvatureflowresult_maxLinkCurvature: (a: number) => number;
|
|
3990
|
+
readonly resistancecurvatureflowresult_maxVertexCurvature: (a: number) => number;
|
|
3991
|
+
readonly resistancecurvatureflowresult_meanLinkCurvature: (a: number) => number;
|
|
3992
|
+
readonly resistancecurvatureflowresult_meanVertexCurvature: (a: number) => number;
|
|
3993
|
+
readonly resistancecurvatureflowresult_minLinkCurvature: (a: number) => number;
|
|
3994
|
+
readonly resistancecurvatureflowresult_minVertexCurvature: (a: number) => number;
|
|
3995
|
+
readonly resistancecurvatureflowresult_numComponents: (a: number) => number;
|
|
3996
|
+
readonly resistancecurvatureflowresult_numEdges: (a: number) => number;
|
|
3997
|
+
readonly resistancecurvatureflowresult_numNodes: (a: number) => number;
|
|
3998
|
+
readonly resistancecurvatureflowresult_stdLinkCurvature: (a: number) => number;
|
|
3999
|
+
readonly resistancecurvatureflowresult_stepHistory: (a: number, b: number) => void;
|
|
4000
|
+
readonly resistancecurvatureflowresult_suggestedGeometry: (a: number, b: number) => void;
|
|
4001
|
+
readonly resistancecurvatureflowresult_suggestedManifold: (a: number, b: number) => void;
|
|
4002
|
+
readonly resistancecurvatureflowresult_usedExact: (a: number) => number;
|
|
4003
|
+
readonly resistancecurvatureflowresult_vertexCurvatures: (a: number, b: number) => void;
|
|
4004
|
+
readonly resistancecurvaturestep_amgMaxRelativeResidual: (a: number) => number;
|
|
4005
|
+
readonly resistancecurvaturestep_amgTotalIterations: (a: number) => number;
|
|
4006
|
+
readonly resistancecurvaturestep_expectedFoster: (a: number) => number;
|
|
4007
|
+
readonly resistancecurvaturestep_fosterRelErr: (a: number) => number;
|
|
4008
|
+
readonly resistancecurvaturestep_fosterSum: (a: number) => number;
|
|
4009
|
+
readonly resistancecurvaturestep_maxLinkCurvature: (a: number) => number;
|
|
4010
|
+
readonly resistancecurvaturestep_maxVertexCurvature: (a: number) => number;
|
|
4011
|
+
readonly resistancecurvaturestep_meanLinkCurvature: (a: number) => number;
|
|
4012
|
+
readonly resistancecurvaturestep_meanVertexCurvature: (a: number) => number;
|
|
4013
|
+
readonly resistancecurvaturestep_minLinkCurvature: (a: number) => number;
|
|
4014
|
+
readonly resistancecurvaturestep_minVertexCurvature: (a: number) => number;
|
|
4015
|
+
readonly resistancecurvaturestep_stdLinkCurvature: (a: number) => number;
|
|
4016
|
+
readonly resistancecurvaturestep_step: (a: number) => number;
|
|
4017
|
+
readonly resistancecurvaturestep_usedExact: (a: number) => number;
|
|
4018
|
+
readonly rhghlandmarksresult_allConverged: (a: number) => number;
|
|
4019
|
+
readonly rhghlandmarksresult_degCv: (a: number) => number;
|
|
4020
|
+
readonly rhghlandmarksresult_edgeMedScale: (a: number) => number;
|
|
4021
|
+
readonly rhghlandmarksresult_exp2: (a: number) => number;
|
|
4022
|
+
readonly rhghlandmarksresult_gamma: (a: number) => number;
|
|
4023
|
+
readonly rhghlandmarksresult_landmarks: (a: number) => number;
|
|
4024
|
+
readonly rhghlandmarksresult_leafFraction: (a: number) => number;
|
|
4025
|
+
readonly rhghlandmarksresult_maxPcgIters: (a: number) => number;
|
|
4026
|
+
readonly rhghlandmarksresult_meanDegree: (a: number) => number;
|
|
4027
|
+
readonly rhghlandmarksresult_numLandmarks: (a: number) => number;
|
|
4028
|
+
readonly rhghlandmarksresult_numProbes: (a: number) => number;
|
|
4029
|
+
readonly rhghlandmarksresult_pExp: (a: number) => number;
|
|
4030
|
+
readonly rhghlandmarksresult_sSw: (a: number) => number;
|
|
4031
|
+
readonly rhghlandmarksresult_totalPcgIters: (a: number) => number;
|
|
4032
|
+
readonly robustNormalizeLayout2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
4033
|
+
readonly rtaevaluation_isExact: (a: number) => number;
|
|
4034
|
+
readonly rtaevaluation_numLandmarks: (a: number) => number;
|
|
4035
|
+
readonly rtaevaluation_numStrata: (a: number) => number;
|
|
4036
|
+
readonly rtaevaluation_numTriplets: (a: number) => number;
|
|
4037
|
+
readonly rtaevaluation_rta: (a: number) => number;
|
|
4038
|
+
readonly rtaevaluation_toRecord: (a: number, b: number) => void;
|
|
2692
4039
|
readonly sampledCrossingNumber: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
4040
|
+
readonly sampledCrosslessness: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2693
4041
|
readonly sampledNp1: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2694
4042
|
readonly sampledNp2: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2695
4043
|
readonly sampledScaleNormalizedStress: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
2696
4044
|
readonly scaleNormalizedStress: (a: number, b: number, c: number) => void;
|
|
2697
4045
|
readonly scaleNormalizedStressFromDistances: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
4046
|
+
readonly screenedpoissonfield2d_evaluate: (a: number, b: number, c: number) => void;
|
|
4047
|
+
readonly screenedpoissonfield2d_evaluateInBounds: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4048
|
+
readonly screenedpoissonfield2d_exactAdjoint: (a: number) => number;
|
|
4049
|
+
readonly screenedpoissonfield2d_gridSize: (a: number) => number;
|
|
4050
|
+
readonly screenedpoissonfield2d_kernel: (a: number, b: number) => void;
|
|
4051
|
+
readonly screenedpoissonfield2d_new: (a: number, b: any) => void;
|
|
4052
|
+
readonly screenedpoissonfield2d_paddingFactor: (a: number) => number;
|
|
4053
|
+
readonly screenedpoissonfield2d_workspaceMemoryBytes: (a: number) => number;
|
|
4054
|
+
readonly screenedpoissonrefiner_applyEpochStep: (a: number, b: number, c: number) => void;
|
|
4055
|
+
readonly screenedpoissonrefiner_fromGraph: (a: number, b: number, c: any) => void;
|
|
4056
|
+
readonly screenedpoissonrefiner_isFinished: (a: number) => number;
|
|
4057
|
+
readonly screenedpoissonrefiner_iteration: (a: number) => number;
|
|
4058
|
+
readonly screenedpoissonrefiner_lastEnergy: (a: number) => number;
|
|
4059
|
+
readonly screenedpoissonrefiner_lastStats: (a: number) => number;
|
|
4060
|
+
readonly screenedpoissonrefiner_new: (a: number, b: number, c: any) => void;
|
|
4061
|
+
readonly screenedpoissonrefiner_numNodes: (a: number) => number;
|
|
4062
|
+
readonly screenedpoissonrefiner_run: (a: number, b: number, c: number) => void;
|
|
4063
|
+
readonly screenedpoissonrefiner_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
4064
|
+
readonly screenedpoissonrefiner_setCoarseTether: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
4065
|
+
readonly screenedpoissonrefiner_status: (a: number, b: number) => void;
|
|
4066
|
+
readonly screenedpoissonrefiner_step: (a: number, b: number, c: number) => void;
|
|
4067
|
+
readonly screenedpoissonrefiner_totalIterations: (a: number) => number;
|
|
4068
|
+
readonly screenedpoissonrefiner_workspaceMemoryBytes: (a: number) => number;
|
|
4069
|
+
readonly screenedpoissonresult_earlyExitNoExcess: (a: number) => number;
|
|
4070
|
+
readonly screenedpoissonresult_energy: (a: number) => number;
|
|
4071
|
+
readonly screenedpoissonresult_excessFraction: (a: number) => number;
|
|
4072
|
+
readonly screenedpoissonresult_excessMass: (a: number) => number;
|
|
4073
|
+
readonly screenedpoissonresult_fft2dCalls: (a: number) => number;
|
|
4074
|
+
readonly screenedpoissonresult_forceX: (a: number, b: number) => void;
|
|
4075
|
+
readonly screenedpoissonresult_forceY: (a: number, b: number) => void;
|
|
4076
|
+
readonly screenedpoissonresult_gridDim: (a: number) => number;
|
|
4077
|
+
readonly screenedpoissonresult_kappaUsed: (a: number) => number;
|
|
4078
|
+
readonly screenedpoissonresult_maxDensity: (a: number) => number;
|
|
4079
|
+
readonly screenedpoissonresult_padDim: (a: number) => number;
|
|
4080
|
+
readonly screenedpoissonresult_rhoMaxUsed: (a: number) => number;
|
|
4081
|
+
readonly screenedpoissonresult_sigmaUsed: (a: number) => number;
|
|
2698
4082
|
readonly selectMaxminSpPivots: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
2699
4083
|
readonly separationconstraint_gap: (a: number) => number;
|
|
2700
4084
|
readonly separationconstraint_left: (a: number) => number;
|
|
@@ -2713,6 +4097,9 @@ export interface InitOutput {
|
|
|
2713
4097
|
readonly sgdsolver_numSprings: (a: number) => number;
|
|
2714
4098
|
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;
|
|
2715
4099
|
readonly sgdsolver_pacmapGraph: (a: number, b: number, c: any) => void;
|
|
4100
|
+
readonly sgdsolver_pacmapGraphWithBackbone: (a: number, b: number, c: any) => void;
|
|
4101
|
+
readonly sgdsolver_pacmapGraphWithLandmarkDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
4102
|
+
readonly sgdsolver_pacmapGraphWithLandmarks: (a: number, b: number, c: number, d: any) => void;
|
|
2716
4103
|
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;
|
|
2717
4104
|
readonly sgdsolver_run: (a: number, b: number, c: number) => void;
|
|
2718
4105
|
readonly sgdsolver_runManifold: (a: number, b: number, c: number) => void;
|
|
@@ -2753,7 +4140,7 @@ export interface InitOutput {
|
|
|
2753
4140
|
readonly spatialintruderrefiner_currentKCap: (a: number) => number;
|
|
2754
4141
|
readonly spatialintruderrefiner_isFinished: (a: number) => number;
|
|
2755
4142
|
readonly spatialintruderrefiner_iteration: (a: number) => number;
|
|
2756
|
-
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;
|
|
4143
|
+
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, e1: number, f1: number, g1: number, h1: number) => void;
|
|
2757
4144
|
readonly spatialintruderrefiner_numNodes: (a: number) => number;
|
|
2758
4145
|
readonly spatialintruderrefiner_run: (a: number, b: number, c: number) => void;
|
|
2759
4146
|
readonly spatialintruderrefiner_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -2766,6 +4153,7 @@ export interface InitOutput {
|
|
|
2766
4153
|
readonly spatialrefinerroundstats_nFn: (a: number) => number;
|
|
2767
4154
|
readonly spatialrefinerroundstats_nFp: (a: number) => number;
|
|
2768
4155
|
readonly spatialrefinerroundstats_nPairsTotal: (a: number) => number;
|
|
4156
|
+
readonly spatialrefinerroundstats_nSep: (a: number) => number;
|
|
2769
4157
|
readonly spatialrefinerroundstats_round: (a: number) => number;
|
|
2770
4158
|
readonly spatialrefinerroundstats_skipped: (a: number) => number;
|
|
2771
4159
|
readonly spatialrefinerstats_dFloor: (a: number) => number;
|
|
@@ -2776,6 +4164,7 @@ export interface InitOutput {
|
|
|
2776
4164
|
readonly spatialrefinerstats_nFnTotal: (a: number) => number;
|
|
2777
4165
|
readonly spatialrefinerstats_nFpTotal: (a: number) => number;
|
|
2778
4166
|
readonly spatialrefinerstats_nPairsTotal: (a: number) => number;
|
|
4167
|
+
readonly spatialrefinerstats_nSepTotal: (a: number) => number;
|
|
2779
4168
|
readonly spatialrefinerstats_roundStats: (a: number, b: number) => void;
|
|
2780
4169
|
readonly spatialrefinerstats_roundsExecuted: (a: number) => number;
|
|
2781
4170
|
readonly spatialrefinerstats_scaleRatio: (a: number) => number;
|
|
@@ -2829,7 +4218,7 @@ export interface InitOutput {
|
|
|
2829
4218
|
readonly toruscrossing_segB: (a: number, b: number) => void;
|
|
2830
4219
|
readonly tsnetsolver_currentStageLr: (a: number) => number;
|
|
2831
4220
|
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;
|
|
2832
|
-
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;
|
|
4221
|
+
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, n1: number, o1: number) => void;
|
|
2833
4222
|
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;
|
|
2834
4223
|
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;
|
|
2835
4224
|
readonly tsnetsolver_isFinished: (a: number) => number;
|
|
@@ -2850,6 +4239,9 @@ export interface InitOutput {
|
|
|
2850
4239
|
readonly twohopknnresult_avgDeg2: (a: number) => number;
|
|
2851
4240
|
readonly twohopknnresult_k2Deg: (a: number, b: number) => void;
|
|
2852
4241
|
readonly twohopknnresult_knn: (a: number) => number;
|
|
4242
|
+
readonly twohopknnresult_n1hop: (a: number) => number;
|
|
4243
|
+
readonly twohopknnresult_n2hop: (a: number) => number;
|
|
4244
|
+
readonly twohopknnresult_nTruncated2hop: (a: number) => number;
|
|
2853
4245
|
readonly twohopknnresult_nnz: (a: number) => number;
|
|
2854
4246
|
readonly wasmMemory: () => any;
|
|
2855
4247
|
readonly wasm_start: () => void;
|