egraph 6.0.0-beta.3 → 6.0.0-beta.5

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.
@@ -18,6 +18,14 @@ export class AdjustedPatchNigDetail {
18
18
  readonly singletonPatchRatio: number;
19
19
  }
20
20
 
21
+ /**
22
+ * r" Symmetric positive semi-definite Laplacian variant accepted by `AmgPcgSolver.fromGraphLaplacian`.
23
+ */
24
+ export enum AmgLaplacianKind {
25
+ Combinatorial = 0,
26
+ SymmetricNormalized = 1,
27
+ }
28
+
21
29
  /**
22
30
  * Batched-RHS solution and diagnostics returned by `AmgPcgSolver.solveBatch()`.
23
31
  */
@@ -107,9 +115,9 @@ export class AmgPcgSolveResult {
107
115
  */
108
116
  readonly residualNorm: number;
109
117
  /**
110
- * Final solver lifecycle status string.
118
+ * Final solver lifecycle status.
111
119
  */
112
- readonly status: string;
120
+ readonly status: SolverStatus;
113
121
  }
114
122
 
115
123
  /**
@@ -130,21 +138,21 @@ export class AmgPcgSolver {
130
138
  */
131
139
  static fromCsr(num_nodes: number, indptr: Uint32Array | number[], indices: Uint32Array | number[], values: Float64Array | number[], options: any): AmgPcgSolver;
132
140
  /**
133
- * Constructs an `AmgPcgSolver` for a shifted graph Laplacian (`"combinatorial"` or `"symmetricNormalized"`).
141
+ * Constructs an `AmgPcgSolver` for a shifted graph Laplacian (`AmgLaplacianKind.Combinatorial` or `SymmetricNormalized`).
134
142
  */
135
- static fromGraphLaplacian(graph: CsrGraph, kind: any, shift: number | null | undefined, options: any): AmgPcgSolver;
143
+ static fromGraphLaplacian(graph: Graph, kind: any, shift: number | null | undefined, options: any): AmgPcgSolver;
136
144
  /**
137
145
  * Constructs an `AmgPcgSolver` for `I + gamma * L_sym` with exact `D^{1/2} 1` near-nullspace.
138
146
  */
139
- static fromGraphRegularizedLaplacian(graph: CsrGraph, gamma: number | null | undefined, options: any): AmgPcgSolver;
147
+ static fromGraphRegularizedLaplacian(graph: Graph, gamma: number | null | undefined, options: any): AmgPcgSolver;
140
148
  /**
141
- * Executes up to `steps` cooperative PCG iterations and returns the updated status string.
149
+ * Executes up to `steps` cooperative PCG iterations and returns the updated status.
142
150
  */
143
- runSteps(steps: number): string;
151
+ runSteps(steps: number): SolverStatus;
144
152
  /**
145
- * Runs the active cooperative solve to completion and returns the final status string.
153
+ * Runs the active cooperative solve to completion and returns the final status.
146
154
  */
147
- run(): string;
155
+ run(): SolverStatus;
148
156
  /**
149
157
  * Returns a copy of the current solution vector (`Float64Array`).
150
158
  */
@@ -160,11 +168,11 @@ export class AmgPcgSolver {
160
168
  /**
161
169
  * Initializes a cooperative PCG solve for `b` and optional initial guess `x0`.
162
170
  */
163
- startSolve(b: Float64Array | number[], x0?: Float64Array | number[] | null): string;
171
+ startSolve(b: Float64Array | number[], x0?: Float64Array | number[] | null): SolverStatus;
164
172
  /**
165
- * Executes a single cooperative PCG iteration and returns the updated status string.
173
+ * Executes a single cooperative PCG iteration and returns the updated status.
166
174
  */
167
- step(): string;
175
+ step(): SolverStatus;
168
176
  /**
169
177
  * Returns the coarsest-level matrix dimension.
170
178
  */
@@ -206,9 +214,9 @@ export class AmgPcgSolver {
206
214
  */
207
215
  readonly residualNorm: number;
208
216
  /**
209
- * Returns the current solver lifecycle status string.
217
+ * Returns the current solver lifecycle status.
210
218
  */
211
- readonly status: string;
219
+ readonly status: SolverStatus;
212
220
  /**
213
221
  * Returns the maximum scheduled iterations for the active solve.
214
222
  */
@@ -292,9 +300,37 @@ export class ArenaOctree3d {
292
300
  */
293
301
  computeMaxentRepulsion(theta?: number | null, q?: number | null, eps_sq?: number | null): Float32Array;
294
302
  /**
295
- * Constructs an empty reusable `ArenaOctree3d` workspace.
303
+ * Constructs an empty reusable `ArenaOctree3d` workspace with optional configuration.
304
+ */
305
+ constructor(options: any);
306
+ /**
307
+ * Validates and updates `coincidentDistSq` (finite and `>= 0`).
308
+ */
309
+ setCoincidentDistSq(coincident_dist_sq: number): void;
310
+ /**
311
+ * Validates and updates `entropyMinDist` (finite and `>= 0`).
312
+ */
313
+ setEntropyMinDist(entropy_min_dist: number): void;
314
+ /**
315
+ * Validates and updates the maximum subdivision depth (`>= 1`).
316
+ */
317
+ setMaxDepth(max_depth: number): void;
318
+ /**
319
+ * Validates and updates `traversalStackCap` (`>= 1`).
320
+ */
321
+ setTraversalStackCap(traversal_stack_cap: number): void;
322
+ /**
323
+ * Returns the squared coincidence threshold below which points share a leaf chain.
296
324
  */
297
- constructor();
325
+ readonly coincidentDistSq: number;
326
+ /**
327
+ * Returns the minimum distance threshold below which entropy repulsion is skipped.
328
+ */
329
+ readonly entropyMinDist: number;
330
+ /**
331
+ * Returns the maximum subdivision depth (`>= 1`).
332
+ */
333
+ readonly maxDepth: number;
298
334
  /**
299
335
  * Returns the total number of internal and leaf octree nodes allocated.
300
336
  */
@@ -303,6 +339,18 @@ export class ArenaOctree3d {
303
339
  * Returns the number of points currently indexed in the octree.
304
340
  */
305
341
  readonly pointCount: number;
342
+ /**
343
+ * Returns the minimum pre-reserved DFS traversal stack capacity (`>= 1`).
344
+ */
345
+ readonly traversalStackCap: number;
346
+ }
347
+
348
+ /**
349
+ * r" Layout optimization mode for `BackboneSolver`.
350
+ */
351
+ export enum BackboneLayoutMode {
352
+ StressMajorization = 0,
353
+ Sgd = 1,
306
354
  }
307
355
 
308
356
  /**
@@ -313,9 +361,9 @@ export class BackboneResult {
313
361
  free(): void;
314
362
  [Symbol.dispose](): void;
315
363
  /**
316
- * Returns a cloned weighted undirected `CsrGraph` representing the reweighted backbone.
364
+ * Returns a cloned weighted undirected `Graph` representing the reweighted backbone.
317
365
  */
318
- backboneCsr(): CsrGraph;
366
+ backboneCsr(): Graph;
319
367
  /**
320
368
  * Returns flat `[u0, v0, u1, v1, ...]` backbone edge endpoints (`Uint32Array`).
321
369
  */
@@ -351,19 +399,19 @@ export class BackboneSolver {
351
399
  /**
352
400
  * Constructs a `BackboneSolver` from `graph` and optional `BackboneOptions`.
353
401
  */
354
- constructor(graph: CsrGraph, options: any);
402
+ constructor(graph: Graph, options: any);
355
403
  /**
356
404
  * Executes up to `steps` backbone layout iterations on `layout` in place.
357
405
  */
358
- runSteps(layout: Layout2d, steps: number): string;
406
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
359
407
  /**
360
408
  * Runs backbone layout optimization to completion on `layout` in place.
361
409
  */
362
- run(layout: Layout2d): string;
410
+ run(layout: Layout2d): SolverStatus;
363
411
  /**
364
412
  * Executes one backbone layout iteration on `layout` in place.
365
413
  */
366
- step(layout: Layout2d): string;
414
+ step(layout: Layout2d): SolverStatus;
367
415
  /**
368
416
  * Returns `true` when the solver has converged or completed.
369
417
  */
@@ -377,15 +425,23 @@ export class BackboneSolver {
377
425
  */
378
426
  readonly numNodes: number;
379
427
  /**
380
- * Returns the solver lifecycle status string.
428
+ * Returns the solver lifecycle status (`SolverStatus`).
381
429
  */
382
- readonly status: string;
430
+ readonly status: SolverStatus;
383
431
  /**
384
432
  * Returns the scheduled iteration count.
385
433
  */
386
434
  readonly totalIterations: number | undefined;
387
435
  }
388
436
 
437
+ /**
438
+ * r" Symmetrization mode for 3-tier sparse barrier repulsion weights.
439
+ */
440
+ export enum BarrierSymmetry {
441
+ SymMax = 0,
442
+ SymAvg = 1,
443
+ }
444
+
389
445
  /**
390
446
  * Pure $O(\mathrm{deg} \cdot (k_{\mathrm{lm}} + d_{\mathrm{JL}}) \cdot |E|)$ regularized DoG
391
447
  * diffusion kernel backed by Chebyshev polynomials and deterministic JL diagonal probes.
@@ -405,7 +461,7 @@ export class ChebyshevDogKernel {
405
461
  /**
406
462
  * Builds a `ChebyshevDogKernel` from `graph` using Core-First MaxMin landmarks.
407
463
  */
408
- constructor(graph: CsrGraph, options: any);
464
+ constructor(graph: Graph, options: any);
409
465
  termsPsd(): Array<any>;
410
466
  /**
411
467
  * Converts the landmark kernel block into a `(numNodes, numLandmarks)` Normalized Varadhan table.
@@ -414,7 +470,7 @@ export class ChebyshevDogKernel {
414
470
  /**
415
471
  * Builds a `ChebyshevDogKernel` using explicitly provided `landmarks`.
416
472
  */
417
- static withLandmarks(graph: CsrGraph, landmarks: Uint32Array | number[], options: any): ChebyshevDogKernel;
473
+ static withLandmarks(graph: Graph, landmarks: Uint32Array | number[], options: any): ChebyshevDogKernel;
418
474
  readonly alpha: number;
419
475
  readonly betaAuto: number;
420
476
  readonly betaEff: number;
@@ -446,7 +502,7 @@ export class ClassDensityResult {
446
502
  export class ClassicalMds {
447
503
  free(): void;
448
504
  [Symbol.dispose](): void;
449
- generate(graph: CsrGraph): any;
505
+ generate(graph: Graph): any;
450
506
  constructor(options: any);
451
507
  }
452
508
 
@@ -486,6 +542,14 @@ export class ClusterAreaReport {
486
542
  readonly spatialCoherence: number;
487
543
  }
488
544
 
545
+ /**
546
+ * r" Cluster boundary refinement method for `ClusterRefineSolver` and `refineClusterLayout`.
547
+ */
548
+ export enum ClusterRefineMethod {
549
+ Kmeans = 0,
550
+ Hac = 1,
551
+ }
552
+
489
553
  /**
490
554
  * Cooperative cluster-faithful layout refiner (`Cluster-kmeans` / `Cluster-HAC`, `f32`).
491
555
  */
@@ -495,7 +559,7 @@ export class ClusterRefineSolver {
495
559
  /**
496
560
  * Constructs a `ClusterRefineSolver` with graph topology for `hac` mean edge-length scaling.
497
561
  */
498
- static fromGraph(graph: CsrGraph, labels: any, options: any): ClusterRefineSolver;
562
+ static fromGraph(graph: Graph, labels: any, options: any): ClusterRefineSolver;
499
563
  /**
500
564
  * Constructs a `ClusterRefineSolver` from `labels` without graph edge lengths.
501
565
  */
@@ -503,15 +567,15 @@ export class ClusterRefineSolver {
503
567
  /**
504
568
  * Executes up to `steps` refinement rounds on `layout` in place.
505
569
  */
506
- runSteps(layout: Layout2d, steps: number): string;
570
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
507
571
  /**
508
572
  * Runs cluster refinement to completion on `layout` in place.
509
573
  */
510
- run(layout: Layout2d): string;
574
+ run(layout: Layout2d): SolverStatus;
511
575
  /**
512
576
  * Executes one refinement round on `layout` in place.
513
577
  */
514
- step(layout: Layout2d): string;
578
+ step(layout: Layout2d): SolverStatus;
515
579
  /**
516
580
  * Returns `true` when the solver has converged or completed.
517
581
  */
@@ -533,9 +597,9 @@ export class ClusterRefineSolver {
533
597
  */
534
598
  readonly numNodes: number;
535
599
  /**
536
- * Returns the solver lifecycle status string.
600
+ * Returns the solver lifecycle status (`SolverStatus`).
537
601
  */
538
- readonly status: string;
602
+ readonly status: SolverStatus;
539
603
  /**
540
604
  * Returns the maximum scheduled iterations (`maxIterations`).
541
605
  */
@@ -550,7 +614,7 @@ export class CoarseBackbone {
550
614
  [Symbol.dispose](): void;
551
615
  generateResult(): CoarseBackboneResult;
552
616
  generate(): Layout2d;
553
- constructor(graph: CsrGraph, options: any);
617
+ constructor(graph: Graph, options: any);
554
618
  }
555
619
 
556
620
  /**
@@ -561,9 +625,9 @@ export class CoarseBackboneResult {
561
625
  free(): void;
562
626
  [Symbol.dispose](): void;
563
627
  /**
564
- * Returns the coarsest `CsrGraph` (`f32`).
628
+ * Returns the coarsest `Graph` (`f32`).
565
629
  */
566
- coarseGraph(): CsrGraph;
630
+ coarseGraph(): Graph;
567
631
  /**
568
632
  * Returns the coarse super-node `Layout2d` (`f32`) scaled consistently with `fineLayout`.
569
633
  */
@@ -597,6 +661,23 @@ export class CoarseBackboneResult {
597
661
  readonly scaleFactorApplied: number;
598
662
  }
599
663
 
664
+ /**
665
+ * r" Coarse distance estimation backend for `CoarseBackbone`.
666
+ */
667
+ export enum CoarseDistanceBackend {
668
+ Rhgh = 0,
669
+ ChebyshevDog = 1,
670
+ ShortestPath = 2,
671
+ }
672
+
673
+ /**
674
+ * r" Coarse super-edge target length model for `CoarseBackbone`.
675
+ */
676
+ export enum CoarseEdgeLengthMode {
677
+ ConductanceInverse = 0,
678
+ ResistanceCurvatureFlow = 1,
679
+ }
680
+
600
681
  /**
601
682
  * Output of `coarsenGraph`.
602
683
  */
@@ -609,9 +690,9 @@ export class CoarsenedGraphResult {
609
690
  */
610
691
  coarseSizes(): Uint32Array;
611
692
  /**
612
- * Returns a cloned handle to the weighted undirected coarsened `CsrGraph`.
693
+ * Returns a cloned handle to the weighted undirected coarsened `Graph`.
613
694
  */
614
- graph(): CsrGraph;
695
+ graph(): Graph;
615
696
  /**
616
697
  * Returns the compacted `0..numClusters` cluster ID for each original vertex (`Uint32Array`).
617
698
  */
@@ -630,9 +711,9 @@ export class CoarsenedHierarchyResult {
630
711
  free(): void;
631
712
  [Symbol.dispose](): void;
632
713
  /**
633
- * Returns a cloned handle to the coarsest super-graph `CsrGraph`.
714
+ * Returns a cloned handle to the coarsest super-graph `Graph`.
634
715
  */
635
- coarseGraph(): CsrGraph;
716
+ coarseGraph(): Graph;
636
717
  /**
637
718
  * Returns the original vertex counts per coarsest cluster (`Uint32Array`).
638
719
  */
@@ -694,108 +775,6 @@ export class CrossingSummary {
694
775
  readonly minAngleRad: number | undefined;
695
776
  }
696
777
 
697
- /**
698
- * Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
699
- */
700
- export class CsrGraph {
701
- private constructor();
702
- free(): void;
703
- [Symbol.dispose](): void;
704
- /**
705
- * Returns the degree (outgoing degree for directed graphs) of vertex `u`.
706
- */
707
- degree(u: number): number;
708
- /**
709
- * Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
710
- */
711
- edgeWeight(u: number, v: number): number | undefined;
712
- /**
713
- * Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
714
- */
715
- edges(): Uint32Array;
716
- /**
717
- * Constructs a `CsrGraph` from CSR `indptr`, `indices`, and optional `weights`.
718
- *
719
- * The optional trailing parameters accept either `(directed, sanitize)` booleans or an
720
- * options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
721
- * Defaults are `directed = false` and `sanitize = true`.
722
- */
723
- static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): CsrGraph;
724
- /**
725
- * Constructs a `CsrGraph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
726
- * and optional `weights`.
727
- */
728
- static fromEdgeList(num_nodes: number, edges: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): CsrGraph;
729
- /**
730
- * Returns `true` if an edge `(u, v)` exists in the graph.
731
- */
732
- hasEdge(u: number, v: number): boolean;
733
- /**
734
- * Returns a copy of the flat CSR `indices` neighbor array.
735
- */
736
- indices(): Uint32Array;
737
- /**
738
- * Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
739
- */
740
- indptr(): Uint32Array;
741
- /**
742
- * Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
743
- */
744
- inducedSubgraph(nodes: Uint32Array | number[]): CsrGraph;
745
- /**
746
- * Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
747
- */
748
- isConnected(): boolean;
749
- /**
750
- * Returns `true` if the graph is directed.
751
- */
752
- isDirected(): boolean;
753
- /**
754
- * Returns `true` if the graph contains zero vertices.
755
- */
756
- isEmpty(): boolean;
757
- /**
758
- * Returns `true` if explicit edge weights are stored.
759
- */
760
- isWeighted(): boolean;
761
- /**
762
- * Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
763
- */
764
- largestConnectedComponent(): LargestConnectedComponentResult;
765
- /**
766
- * Returns the number of vertices in the graph.
767
- */
768
- len(): number;
769
- /**
770
- * Returns a copy of the neighbor indices adjacent to vertex `u`.
771
- */
772
- neighbors(u: number): Uint32Array;
773
- /**
774
- * Returns the number of stored CSR half-edge entries (`indices().length`).
775
- */
776
- nnz(): number;
777
- /**
778
- * Returns the number of logical edges in the graph.
779
- */
780
- numEdges(): number;
781
- /**
782
- * Returns the number of vertices in the graph.
783
- */
784
- numNodes(): number;
785
- /**
786
- * Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
787
- */
788
- weights(): Float32Array | undefined;
789
- /**
790
- * Returns the number of vertices in the graph.
791
- */
792
- readonly length: number;
793
- /**
794
- * Returns the scalar weight dtype stored in WebAssembly (`"float32"`).
795
- */
796
- readonly weightDtype: string;
797
- }
798
-
799
778
  /**
800
779
  * Double-precision square Compressed Sparse Row matrix (`CsrMatrix`) with spectral bounds
801
780
  * and matrix-vector operations.
@@ -906,7 +885,15 @@ export class DelaunayResult {
906
885
  }
907
886
 
908
887
  /**
909
- * Reusable epoch-stamped single-source Dijkstra workspace over `CsrGraph`.
888
+ * r" Kernel family for `ScreenedPoissonField2d` and `ScreenedPoissonRefiner`.
889
+ */
890
+ export enum DensityFieldKernel {
891
+ ScreenedPoisson = 0,
892
+ SingleGaussian = 1,
893
+ }
894
+
895
+ /**
896
+ * Reusable epoch-stamped single-source Dijkstra workspace over `Graph`.
910
897
  */
911
898
  export class DijkstraWorkspace {
912
899
  free(): void;
@@ -915,7 +902,7 @@ export class DijkstraWorkspace {
915
902
  * Computes single-source shortest-path distances (`Float64Array`, `Infinity` for unreachable)
916
903
  * from `source` on `graph`, reusing internal workspace allocations.
917
904
  */
918
- dijkstraFrom(graph: CsrGraph, source: number): Float64Array;
905
+ dijkstraFrom(graph: Graph, source: number): Float64Array;
919
906
  /**
920
907
  * Ensures internal scratch capacity covers at least `numNodes` vertices.
921
908
  */
@@ -1015,35 +1002,35 @@ export class DogVaradhanLandmarks {
1015
1002
  }
1016
1003
 
1017
1004
  /**
1018
- * Cooperative multilevel negative-sampling `DRGraph` (Zhu et al., 2020) layout solver (`f32`).
1005
+ * Cooperative multilevel negative-sampling `DRGraph` (Zhu et al., 2021) layout solver (`f32`).
1019
1006
  */
1020
1007
  export class DrGraphSolver {
1021
1008
  free(): void;
1022
1009
  [Symbol.dispose](): void;
1023
- _run2d(layout: Layout2d): string;
1024
- _run3d(layout: Layout3d): string;
1025
- _runManifold(layout: ManifoldLayout2d): string;
1026
- _runNd(layout: LayoutNd): string;
1027
- _runSteps2d(layout: Layout2d, steps: number): string;
1028
- _runSteps3d(layout: Layout3d, steps: number): string;
1029
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
1030
- _runStepsNd(layout: LayoutNd, steps: number): string;
1031
- _step2d(layout: Layout2d): string;
1032
- _step3d(layout: Layout3d): string;
1033
- _stepManifold(layout: ManifoldLayout2d): string;
1034
- _stepNd(layout: LayoutNd): string;
1010
+ _run2d(layout: Layout2d): SolverStatus;
1011
+ _run3d(layout: Layout3d): SolverStatus;
1012
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
1013
+ _runNd(layout: LayoutNd): SolverStatus;
1014
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
1015
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
1016
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
1017
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
1018
+ _step2d(layout: Layout2d): SolverStatus;
1019
+ _step3d(layout: Layout3d): SolverStatus;
1020
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
1021
+ _stepNd(layout: LayoutNd): SolverStatus;
1035
1022
  /**
1036
1023
  * Constructs a `DrGraphSolver` from `graph` and `DrGraphOptions`.
1037
1024
  */
1038
- constructor(graph: CsrGraph, options: any);
1025
+ constructor(graph: Graph, options: any);
1039
1026
  readonly currentLr: number;
1040
1027
  readonly isFinished: boolean;
1041
1028
  readonly iteration: number;
1042
1029
  readonly numLevels: number;
1043
1030
  readonly numNodes: number;
1044
1031
  readonly numSprings: number;
1045
- readonly status: string;
1046
- readonly target: string;
1032
+ readonly status: SolverStatus;
1033
+ readonly target: TargetKind;
1047
1034
  readonly totalIterations: number | undefined;
1048
1035
  }
1049
1036
 
@@ -1056,11 +1043,11 @@ export class DynamicKdTree {
1056
1043
  /**
1057
1044
  * Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
1058
1045
  */
1059
- static fromFlat(coords: Float32Array | number[], n: number, dims: number): DynamicKdTree;
1046
+ static fromFlat(coords: Float32Array | number[], n: number, dims: number, options: any): DynamicKdTree;
1060
1047
  /**
1061
1048
  * Constructs a `DynamicKdTree` directly from a `LayoutNd`.
1062
1049
  */
1063
- static fromLayoutNd(layout: LayoutNd): DynamicKdTree;
1050
+ static fromLayoutNd(layout: LayoutNd, options: any): DynamicKdTree;
1064
1051
  /**
1065
1052
  * Returns `true` if the tree contains zero points.
1066
1053
  */
@@ -1084,11 +1071,15 @@ export class DynamicKdTree {
1084
1071
  /**
1085
1072
  * Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
1086
1073
  */
1087
- constructor(coords: Float32Array | number[], n: number, dims: number);
1074
+ constructor(coords: Float32Array | number[], n: number, dims: number, options: any);
1088
1075
  /**
1089
1076
  * Returns a `Float64Array` copy of point `index`'s coordinates.
1090
1077
  */
1091
1078
  point(index: number): Float64Array;
1079
+ /**
1080
+ * Validates and updates the leaf node bucket size (`>= 1`), rebuilding nodes if non-empty.
1081
+ */
1082
+ setLeafSize(leaf_size: number): void;
1092
1083
  /**
1093
1084
  * Returns all points `Array<{ index, distSq }>` within squared distance `radiusSq` of `query`.
1094
1085
  */
@@ -1101,6 +1092,10 @@ export class DynamicKdTree {
1101
1092
  * Returns the spatial dimensionality `D` of indexed points.
1102
1093
  */
1103
1094
  readonly dims: number;
1095
+ /**
1096
+ * Returns the maximum leaf node bucket size (`>= 1`).
1097
+ */
1098
+ readonly leafSize: number;
1104
1099
  /**
1105
1100
  * Returns the number of points indexed in the tree.
1106
1101
  */
@@ -1119,9 +1114,9 @@ export class EdgePolylines {
1119
1114
  static _fromParts2d(edge_offsets: Uint32Array | number[], points: Layout2d): EdgePolylines;
1120
1115
  static _fromParts3d(edge_offsets: Uint32Array | number[], points: Layout3d): EdgePolylines;
1121
1116
  static _fromPartsNd(edge_offsets: Uint32Array | number[], points: LayoutNd): EdgePolylines;
1122
- static _straightLineFromGraph2d(graph: CsrGraph, layout: Layout2d): EdgePolylines;
1123
- static _straightLineFromGraph3d(graph: CsrGraph, layout: Layout3d): EdgePolylines;
1124
- static _straightLineFromGraphNd(graph: CsrGraph, layout: LayoutNd): EdgePolylines;
1117
+ static _straightLineFromGraph2d(graph: Graph, layout: Layout2d): EdgePolylines;
1118
+ static _straightLineFromGraph3d(graph: Graph, layout: Layout3d): EdgePolylines;
1119
+ static _straightLineFromGraphNd(graph: Graph, layout: LayoutNd): EdgePolylines;
1125
1120
  /**
1126
1121
  * Returns a freshly allocated `Uint32Array` copy of `edgeOffsets`.
1127
1122
  */
@@ -1171,9 +1166,9 @@ export class EdgePolylines {
1171
1166
  */
1172
1167
  readonly numEdges: number;
1173
1168
  /**
1174
- * Returns the backing layout target string (`"layout2d"`, `"layout3d"`, or `"layoutNd"`).
1169
+ * Returns the backing layout `TargetKind` (`Layout2d`, `Layout3d`, or `LayoutNd`).
1175
1170
  */
1176
- readonly target: string;
1171
+ readonly target: TargetKind;
1177
1172
  /**
1178
1173
  * Returns the total number of control points across all edges.
1179
1174
  */
@@ -1296,15 +1291,15 @@ export class FdebSolver {
1296
1291
  /**
1297
1292
  * Executes up to `steps` FDEB bundling iterations in place on `polylines`.
1298
1293
  */
1299
- runSteps(polylines: EdgePolylines, steps: number): string;
1294
+ runSteps(polylines: EdgePolylines, steps: number): SolverStatus;
1300
1295
  /**
1301
1296
  * Runs FDEB bundling to completion in place on `polylines`.
1302
1297
  */
1303
- run(polylines: EdgePolylines): string;
1298
+ run(polylines: EdgePolylines): SolverStatus;
1304
1299
  /**
1305
1300
  * Executes one FDEB bundling iteration in place on `polylines`.
1306
1301
  */
1307
- step(polylines: EdgePolylines): string;
1302
+ step(polylines: EdgePolylines): SolverStatus;
1308
1303
  /**
1309
1304
  * Returns the current subdivision cycle index.
1310
1305
  */
@@ -1334,19 +1329,54 @@ export class FdebSolver {
1334
1329
  */
1335
1330
  readonly ptsPerEdge: number;
1336
1331
  /**
1337
- * Returns the solver lifecycle status string.
1332
+ * Returns the solver lifecycle status.
1338
1333
  */
1339
- readonly status: string;
1334
+ readonly status: SolverStatus;
1340
1335
  /**
1341
- * Returns the bound target storage kind (`"layout2d"`, `"layout3d"`, or `"layoutNd"`).
1336
+ * Returns the bound target storage kind (`TargetKind.Layout2d`, `Layout3d`, or `LayoutNd`).
1342
1337
  */
1343
- readonly target: string;
1338
+ readonly target: TargetKind;
1344
1339
  /**
1345
1340
  * Returns the total scheduled iterations across all subdivision cycles.
1346
1341
  */
1347
1342
  readonly totalIterations: number | undefined;
1348
1343
  }
1349
1344
 
1345
+ /**
1346
+ * r" Repulsion backend selector for `TFdpSolver`, `IbUmapSolver`, and `SelLayoutSolver`.
1347
+ */
1348
+ export enum FieldRepulsionBackend {
1349
+ Auto = 0,
1350
+ IbFft = 1,
1351
+ BarnesHut = 2,
1352
+ Exact = 3,
1353
+ }
1354
+
1355
+ /**
1356
+ * Radial KL repulsion kernel family for `TsNetSolver`.
1357
+ */
1358
+ export class FieldRepulsionKernel {
1359
+ private constructor();
1360
+ free(): void;
1361
+ [Symbol.dispose](): void;
1362
+ /**
1363
+ * Classic Student-t Cauchy kernel `(1 + r^2)^(-1)`.
1364
+ */
1365
+ static cauchy(): FieldRepulsionKernel;
1366
+ /**
1367
+ * Generalized Box-Cox gamma-tail Cauchy kernel `(1 + r^2)^(-gamma)` (`gamma in (0.25, 6.0]`).
1368
+ */
1369
+ static generalizedCauchy(gamma: number): FieldRepulsionKernel;
1370
+ /**
1371
+ * Rational screened Cauchy kernel `(1 + r^2)^(-1) * (1 + r^2 / ell^2)^(-1)`.
1372
+ */
1373
+ static screenedCauchy(screen_frac: number, min_screen?: number | null): FieldRepulsionKernel;
1374
+ readonly gamma: number | undefined;
1375
+ readonly kind: string;
1376
+ readonly minScreen: number | undefined;
1377
+ readonly screenFrac: number | undefined;
1378
+ }
1379
+
1350
1380
  /**
1351
1381
  * FFT field telemetry counters returned by `TsNetSolver.lastFftStats()`.
1352
1382
  */
@@ -1377,15 +1407,15 @@ export class ForbidOverlapRemoval {
1377
1407
  /**
1378
1408
  * Executes up to `steps` FORBID rounds on `layout` in place.
1379
1409
  */
1380
- runSteps(layout: Layout2d, steps: number): string;
1410
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
1381
1411
  /**
1382
1412
  * Runs FORBID overlap removal until `0` overlaps remain or `maxScaleIters` is reached.
1383
1413
  */
1384
- run(layout: Layout2d): string;
1414
+ run(layout: Layout2d): SolverStatus;
1385
1415
  /**
1386
1416
  * Executes one FORBID scaling + SGD round on `layout` in place.
1387
1417
  */
1388
- step(layout: Layout2d): string;
1418
+ step(layout: Layout2d): SolverStatus;
1389
1419
  /**
1390
1420
  * Returns `true` when the solver has converged or completed.
1391
1421
  */
@@ -1403,75 +1433,103 @@ export class ForbidOverlapRemoval {
1403
1433
  */
1404
1434
  readonly numNodes: number;
1405
1435
  /**
1406
- * Returns the solver lifecycle status string.
1436
+ * Returns the solver lifecycle status (`SolverStatus`).
1407
1437
  */
1408
- readonly status: string;
1438
+ readonly status: SolverStatus;
1409
1439
  /**
1410
1440
  * Returns the maximum scheduled scaling rounds (`maxScaleIters`).
1411
1441
  */
1412
1442
  readonly totalIterations: number | undefined;
1413
1443
  }
1414
1444
 
1445
+ /**
1446
+ * r" Algorithm variant for `ForbidOverlapRemoval`.
1447
+ */
1448
+ export enum ForbidVariant {
1449
+ Forbid = 0,
1450
+ ForbidPrime = 1,
1451
+ SparseForbid = 2,
1452
+ }
1453
+
1415
1454
  /**
1416
1455
  * Cooperative ForceAtlas2 (Jacomy et al., 2014) force-directed layout solver (`f32`).
1417
1456
  */
1418
1457
  export class ForceAtlas2Solver {
1419
1458
  free(): void;
1420
1459
  [Symbol.dispose](): void;
1421
- _run2d(layout: Layout2d): string;
1422
- _run3d(layout: Layout3d): string;
1423
- _runNd(layout: LayoutNd): string;
1424
- _runSteps2d(layout: Layout2d, steps: number): string;
1425
- _runSteps3d(layout: Layout3d, steps: number): string;
1426
- _runStepsNd(layout: LayoutNd, steps: number): string;
1427
- _step2d(layout: Layout2d): string;
1428
- _step3d(layout: Layout3d): string;
1429
- _stepNd(layout: LayoutNd): string;
1460
+ _run2d(layout: Layout2d): SolverStatus;
1461
+ _run3d(layout: Layout3d): SolverStatus;
1462
+ _runNd(layout: LayoutNd): SolverStatus;
1463
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
1464
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
1465
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
1466
+ _step2d(layout: Layout2d): SolverStatus;
1467
+ _step3d(layout: Layout3d): SolverStatus;
1468
+ _stepNd(layout: LayoutNd): SolverStatus;
1430
1469
  /**
1431
1470
  * Constructs a `ForceAtlas2Solver` from `graph` and optional `ForceAtlas2Options`.
1432
1471
  */
1433
- constructor(graph: CsrGraph, options: any);
1472
+ constructor(graph: Graph, options: any);
1434
1473
  nodeRadii(): Float64Array;
1435
- readonly backend: string;
1474
+ readonly backend: ForceBackend;
1436
1475
  readonly isFinished: boolean;
1437
1476
  readonly iteration: number;
1438
1477
  readonly maxDisplacement: number;
1439
1478
  readonly numNodes: number;
1440
- readonly status: string;
1441
- readonly target: string;
1479
+ readonly status: SolverStatus;
1480
+ readonly target: TargetKind;
1442
1481
  readonly totalIterations: number | undefined;
1443
1482
  }
1444
1483
 
1484
+ /**
1485
+ * r" Repulsion backend selector for `ForceAtlas2Solver`, `YifanHuSolver`, `LinLogSolver`, and `MaxentStressSolver`.
1486
+ */
1487
+ export enum ForceBackend {
1488
+ Auto = 0,
1489
+ Exact = 1,
1490
+ BarnesHut = 2,
1491
+ }
1492
+
1493
+ /**
1494
+ * r" Repulsion backend selector for `FruchtermanReingoldSolver`.
1495
+ */
1496
+ export enum FrBackend {
1497
+ Auto = 0,
1498
+ Exact = 1,
1499
+ BarnesHut = 2,
1500
+ Grid = 3,
1501
+ }
1502
+
1445
1503
  /**
1446
1504
  * Cooperative Fruchterman-Reingold (1991) force-directed layout solver (`f32`).
1447
1505
  */
1448
1506
  export class FruchtermanReingoldSolver {
1449
1507
  free(): void;
1450
1508
  [Symbol.dispose](): void;
1451
- _run2d(layout: Layout2d): string;
1452
- _run3d(layout: Layout3d): string;
1453
- _runManifold(layout: ManifoldLayout2d): string;
1454
- _runNd(layout: LayoutNd): string;
1455
- _runSteps2d(layout: Layout2d, steps: number): string;
1456
- _runSteps3d(layout: Layout3d, steps: number): string;
1457
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
1458
- _runStepsNd(layout: LayoutNd, steps: number): string;
1459
- _step2d(layout: Layout2d): string;
1460
- _step3d(layout: Layout3d): string;
1461
- _stepManifold(layout: ManifoldLayout2d): string;
1462
- _stepNd(layout: LayoutNd): string;
1509
+ _run2d(layout: Layout2d): SolverStatus;
1510
+ _run3d(layout: Layout3d): SolverStatus;
1511
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
1512
+ _runNd(layout: LayoutNd): SolverStatus;
1513
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
1514
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
1515
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
1516
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
1517
+ _step2d(layout: Layout2d): SolverStatus;
1518
+ _step3d(layout: Layout3d): SolverStatus;
1519
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
1520
+ _stepNd(layout: LayoutNd): SolverStatus;
1463
1521
  /**
1464
1522
  * Constructs a `FruchtermanReingoldSolver` from `graph` and optional `FruchtermanReingoldOptions`.
1465
1523
  */
1466
- constructor(graph: CsrGraph, options: any);
1467
- readonly backend: string;
1524
+ constructor(graph: Graph, options: any);
1525
+ readonly backend: FrBackend;
1468
1526
  readonly currentTemperature: number;
1469
1527
  readonly isFinished: boolean;
1470
1528
  readonly iteration: number;
1471
1529
  readonly numNodes: number;
1472
1530
  readonly optimalDistance: number;
1473
- readonly status: string;
1474
- readonly target: string;
1531
+ readonly status: SolverStatus;
1532
+ readonly target: TargetKind;
1475
1533
  readonly totalIterations: number | undefined;
1476
1534
  }
1477
1535
 
@@ -1498,15 +1556,15 @@ export class GTreeOverlapRemoval {
1498
1556
  /**
1499
1557
  * Executes up to `steps` GTree overlap removal passes on `layout` in place.
1500
1558
  */
1501
- runSteps(layout: Layout2d, steps: number): string;
1559
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
1502
1560
  /**
1503
1561
  * Runs GTree overlap removal until `0` overlaps remain or `maxIterations` is reached.
1504
1562
  */
1505
- run(layout: Layout2d): string;
1563
+ run(layout: Layout2d): SolverStatus;
1506
1564
  /**
1507
1565
  * Executes one GTree overlap removal pass on `layout` in place.
1508
1566
  */
1509
- step(layout: Layout2d): string;
1567
+ step(layout: Layout2d): SolverStatus;
1510
1568
  /**
1511
1569
  * Returns `true` when the solver has converged or completed.
1512
1570
  */
@@ -1524,9 +1582,9 @@ export class GTreeOverlapRemoval {
1524
1582
  */
1525
1583
  readonly numNodes: number;
1526
1584
  /**
1527
- * Returns the solver lifecycle status string.
1585
+ * Returns the solver lifecycle status (`SolverStatus`).
1528
1586
  */
1529
- readonly status: string;
1587
+ readonly status: SolverStatus;
1530
1588
  /**
1531
1589
  * Returns the maximum scheduled passes (`maxIterations`).
1532
1590
  */
@@ -1542,19 +1600,19 @@ export class GemSolver {
1542
1600
  /**
1543
1601
  * Constructs a `GemSolver` from `graph` and optional `GemOptions`.
1544
1602
  */
1545
- constructor(graph: CsrGraph, options: any);
1603
+ constructor(graph: Graph, options: any);
1546
1604
  /**
1547
1605
  * Executes up to `steps` GEM rounds on `layout` in place.
1548
1606
  */
1549
- runSteps(layout: Layout2d, steps: number): string;
1607
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
1550
1608
  /**
1551
1609
  * Runs GEM layout optimization to completion on `layout` in place.
1552
1610
  */
1553
- run(layout: Layout2d): string;
1611
+ run(layout: Layout2d): SolverStatus;
1554
1612
  /**
1555
1613
  * Executes one GEM round on `layout` in place.
1556
1614
  */
1557
- step(layout: Layout2d): string;
1615
+ step(layout: Layout2d): SolverStatus;
1558
1616
  /**
1559
1617
  * Returns `true` when the solver has converged or completed.
1560
1618
  */
@@ -1568,9 +1626,9 @@ export class GemSolver {
1568
1626
  */
1569
1627
  readonly numNodes: number;
1570
1628
  /**
1571
- * Returns the solver lifecycle status string.
1629
+ * Returns the solver lifecycle status.
1572
1630
  */
1573
- readonly status: string;
1631
+ readonly status: SolverStatus;
1574
1632
  /**
1575
1633
  * Returns the maximum scheduled iterations (`maxIterations`).
1576
1634
  */
@@ -1578,34 +1636,161 @@ export class GemSolver {
1578
1636
  }
1579
1637
 
1580
1638
  /**
1581
- * Cooperative `Graph-CNE` (Bohm et al., 2025) contrastive neighbor embedding solver (`f32`).
1639
+ * r" Outer cluster box arrangement mode for `GroupInABoxSolver`.
1640
+ */
1641
+ export enum GibBoxLayoutMode {
1642
+ SquarifiedTreemap = 0,
1643
+ ForceDirected = 1,
1644
+ }
1645
+
1646
+ /**
1647
+ * r" Intra-cluster layout solver for `GroupInABoxSolver`.
1648
+ */
1649
+ export enum GibIntraLayoutMode {
1650
+ Fr = 0,
1651
+ SgdFull = 1,
1652
+ YifanHu = 2,
1653
+ }
1654
+
1655
+ /**
1656
+ * Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
1657
+ */
1658
+ export class Graph {
1659
+ private constructor();
1660
+ free(): void;
1661
+ [Symbol.dispose](): void;
1662
+ /**
1663
+ * Returns the degree (outgoing degree for directed graphs) of vertex `u`.
1664
+ */
1665
+ degree(u: number): number;
1666
+ /**
1667
+ * Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
1668
+ */
1669
+ edgeWeight(u: number, v: number): number | undefined;
1670
+ /**
1671
+ * Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
1672
+ */
1673
+ edges(): Uint32Array;
1674
+ /**
1675
+ * Constructs a `Graph` from CSR `indptr`, `indices`, and optional `weights`.
1676
+ *
1677
+ * The optional trailing parameters accept either `(directed, sanitize)` booleans or an
1678
+ * options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
1679
+ * Defaults are `directed = false` and `sanitize = true`.
1680
+ */
1681
+ static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): Graph;
1682
+ /**
1683
+ * Constructs a `Graph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
1684
+ * and optional `weights`.
1685
+ */
1686
+ static fromEdgeList(num_nodes: number, edges: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): Graph;
1687
+ /**
1688
+ * Returns `true` if an edge `(u, v)` exists in the graph.
1689
+ */
1690
+ hasEdge(u: number, v: number): boolean;
1691
+ /**
1692
+ * Returns a copy of the flat CSR `indices` neighbor array.
1693
+ */
1694
+ indices(): Uint32Array;
1695
+ /**
1696
+ * Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
1697
+ */
1698
+ indptr(): Uint32Array;
1699
+ /**
1700
+ * Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
1701
+ */
1702
+ inducedSubgraph(nodes: Uint32Array | number[]): Graph;
1703
+ /**
1704
+ * Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
1705
+ */
1706
+ isConnected(): boolean;
1707
+ /**
1708
+ * Returns `true` if the graph is directed.
1709
+ */
1710
+ isDirected(): boolean;
1711
+ /**
1712
+ * Returns `true` if the graph contains zero vertices.
1713
+ */
1714
+ isEmpty(): boolean;
1715
+ /**
1716
+ * Returns `true` if explicit edge weights are stored.
1717
+ */
1718
+ isWeighted(): boolean;
1719
+ /**
1720
+ * Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
1721
+ */
1722
+ largestConnectedComponent(): LargestConnectedComponentResult;
1723
+ /**
1724
+ * Returns the number of vertices in the graph.
1725
+ */
1726
+ len(): number;
1727
+ /**
1728
+ * Returns a copy of the neighbor indices adjacent to vertex `u`.
1729
+ */
1730
+ neighbors(u: number): Uint32Array;
1731
+ /**
1732
+ * Returns the number of stored CSR half-edge entries (`indices().length`).
1733
+ */
1734
+ nnz(): number;
1735
+ /**
1736
+ * Returns the number of logical edges in the graph.
1737
+ */
1738
+ numEdges(): number;
1739
+ /**
1740
+ * Returns the number of vertices in the graph.
1741
+ */
1742
+ numNodes(): number;
1743
+ /**
1744
+ * Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
1745
+ */
1746
+ weights(): Float32Array | undefined;
1747
+ /**
1748
+ * Returns the number of vertices in the graph.
1749
+ */
1750
+ readonly length: number;
1751
+ /**
1752
+ * Returns the scalar weight dtype stored in WebAssembly (`WeightDtype.Float32`).
1753
+ */
1754
+ readonly weightDtype: WeightDtype;
1755
+ }
1756
+
1757
+ /**
1758
+ * r" Contrastive objective for `GraphCneSolver`.
1759
+ */
1760
+ export enum GraphCneObjective {
1761
+ InfoNce = 0,
1762
+ NegTSne = 1,
1763
+ }
1764
+
1765
+ /**
1766
+ * Cooperative `Graph-CNE` (Böhm et al., 2025) contrastive neighbor embedding solver (`f32`).
1582
1767
  */
1583
1768
  export class GraphCneSolver {
1584
1769
  free(): void;
1585
1770
  [Symbol.dispose](): void;
1586
- _run2d(layout: Layout2d): string;
1587
- _run3d(layout: Layout3d): string;
1588
- _runManifold(layout: ManifoldLayout2d): string;
1589
- _runNd(layout: LayoutNd): string;
1590
- _runSteps2d(layout: Layout2d, steps: number): string;
1591
- _runSteps3d(layout: Layout3d, steps: number): string;
1592
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
1593
- _runStepsNd(layout: LayoutNd, steps: number): string;
1594
- _step2d(layout: Layout2d): string;
1595
- _step3d(layout: Layout3d): string;
1596
- _stepManifold(layout: ManifoldLayout2d): string;
1597
- _stepNd(layout: LayoutNd): string;
1771
+ _run2d(layout: Layout2d): SolverStatus;
1772
+ _run3d(layout: Layout3d): SolverStatus;
1773
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
1774
+ _runNd(layout: LayoutNd): SolverStatus;
1775
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
1776
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
1777
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
1778
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
1779
+ _step2d(layout: Layout2d): SolverStatus;
1780
+ _step3d(layout: Layout3d): SolverStatus;
1781
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
1782
+ _stepNd(layout: LayoutNd): SolverStatus;
1598
1783
  /**
1599
1784
  * Constructs a `GraphCneSolver` from `graph` and `GraphCneOptions`.
1600
1785
  */
1601
- constructor(graph: CsrGraph, options: any);
1786
+ constructor(graph: Graph, options: any);
1602
1787
  readonly currentLr: number;
1603
1788
  readonly isFinished: boolean;
1604
1789
  readonly iteration: number;
1605
1790
  readonly numNodes: number;
1606
1791
  readonly numSprings: number;
1607
- readonly status: string;
1608
- readonly target: string;
1792
+ readonly status: SolverStatus;
1793
+ readonly target: TargetKind;
1609
1794
  readonly totalIterations: number | undefined;
1610
1795
  }
1611
1796
 
@@ -1615,15 +1800,15 @@ export class GraphCneSolver {
1615
1800
  export class GripSolver {
1616
1801
  free(): void;
1617
1802
  [Symbol.dispose](): void;
1618
- constructor(graph: CsrGraph, options: any);
1619
- runSteps(layout: Layout2d, steps: number): string;
1620
- run(layout: Layout2d): string;
1621
- step(layout: Layout2d): string;
1803
+ constructor(graph: Graph, options: any);
1804
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
1805
+ run(layout: Layout2d): SolverStatus;
1806
+ step(layout: Layout2d): SolverStatus;
1622
1807
  readonly isFinished: boolean;
1623
1808
  readonly iteration: number;
1624
1809
  readonly numLevels: number;
1625
1810
  readonly numNodes: number;
1626
- readonly status: string;
1811
+ readonly status: SolverStatus;
1627
1812
  readonly totalIterations: number | undefined;
1628
1813
  }
1629
1814
 
@@ -1643,19 +1828,19 @@ export class GroupInABoxSolver {
1643
1828
  /**
1644
1829
  * Constructs a `GroupInABoxSolver` from `graph`, `labels`, and optional `GroupInABoxOptions`.
1645
1830
  */
1646
- constructor(graph: CsrGraph, labels: any, options: any);
1831
+ constructor(graph: Graph, labels: any, options: any);
1647
1832
  /**
1648
1833
  * Executes up to `steps` intra-box layout iterations on `layout` in place.
1649
1834
  */
1650
- runSteps(layout: Layout2d, steps: number): string;
1835
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
1651
1836
  /**
1652
1837
  * Runs Group-in-a-Box intra-cluster optimization to completion on `layout` in place.
1653
1838
  */
1654
- run(layout: Layout2d): string;
1839
+ run(layout: Layout2d): SolverStatus;
1655
1840
  /**
1656
1841
  * Executes one intra-box layout iteration across active clusters on `layout` in place.
1657
1842
  */
1658
- step(layout: Layout2d): string;
1843
+ step(layout: Layout2d): SolverStatus;
1659
1844
  /**
1660
1845
  * Returns `true` when the solver has converged or completed.
1661
1846
  */
@@ -1669,9 +1854,9 @@ export class GroupInABoxSolver {
1669
1854
  */
1670
1855
  readonly numNodes: number;
1671
1856
  /**
1672
- * Returns the solver lifecycle status string.
1857
+ * Returns the solver lifecycle status (`SolverStatus`).
1673
1858
  */
1674
- readonly status: string;
1859
+ readonly status: SolverStatus;
1675
1860
  /**
1676
1861
  * Returns the scheduled intra-cluster iteration count.
1677
1862
  */
@@ -1684,26 +1869,26 @@ export class GroupInABoxSolver {
1684
1869
  export class GuMapSolver {
1685
1870
  free(): void;
1686
1871
  [Symbol.dispose](): void;
1687
- _run2d(layout: Layout2d): string;
1688
- _run3d(layout: Layout3d): string;
1689
- _runManifold(layout: ManifoldLayout2d): string;
1690
- _runNd(layout: LayoutNd): string;
1691
- _runSteps2d(layout: Layout2d, steps: number): string;
1692
- _runSteps3d(layout: Layout3d, steps: number): string;
1693
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
1694
- _runStepsNd(layout: LayoutNd, steps: number): string;
1695
- _step2d(layout: Layout2d): string;
1696
- _step3d(layout: Layout3d): string;
1697
- _stepManifold(layout: ManifoldLayout2d): string;
1698
- _stepNd(layout: LayoutNd): string;
1872
+ _run2d(layout: Layout2d): SolverStatus;
1873
+ _run3d(layout: Layout3d): SolverStatus;
1874
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
1875
+ _runNd(layout: LayoutNd): SolverStatus;
1876
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
1877
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
1878
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
1879
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
1880
+ _step2d(layout: Layout2d): SolverStatus;
1881
+ _step3d(layout: Layout3d): SolverStatus;
1882
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
1883
+ _stepNd(layout: LayoutNd): SolverStatus;
1699
1884
  /**
1700
1885
  * Constructs a `GuMapSolver` directly from a fuzzy simplicial set `SparseProbabilities`.
1701
1886
  */
1702
1887
  static fromFuzzySet(probs: SparseProbabilities, options: any): GuMapSolver;
1703
1888
  /**
1704
- * Constructs a `GuMapSolver` from a `CsrGraph` using 1+2-hop pairs and DoG Varadhan landmarks.
1889
+ * Constructs a `GuMapSolver` from a `Graph` using 1+2-hop pairs and DoG Varadhan landmarks.
1705
1890
  */
1706
- static fromGraphDog(graph: CsrGraph, options: any): GuMapSolver;
1891
+ static fromGraphDog(graph: Graph, options: any): GuMapSolver;
1707
1892
  /**
1708
1893
  * Constructs a `GuMapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
1709
1894
  */
@@ -1711,11 +1896,11 @@ export class GuMapSolver {
1711
1896
  /**
1712
1897
  * Constructs a `GuMapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop priority CSR.
1713
1898
  */
1714
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): GuMapSolver;
1899
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): GuMapSolver;
1715
1900
  /**
1716
1901
  * Constructs a `GuMapSolver` from `graph` using 1+2-hop pairs and DoG Varadhan landmarks.
1717
1902
  */
1718
- constructor(graph: CsrGraph, options: any);
1903
+ constructor(graph: Graph, options: any);
1719
1904
  readonly a: number;
1720
1905
  readonly ab: Float64Array;
1721
1906
  readonly b: number;
@@ -1723,8 +1908,8 @@ export class GuMapSolver {
1723
1908
  readonly iteration: number;
1724
1909
  readonly numEdges: number;
1725
1910
  readonly numNodes: number;
1726
- readonly status: string;
1727
- readonly target: string;
1911
+ readonly status: SolverStatus;
1912
+ readonly target: TargetKind;
1728
1913
  readonly totalIterations: number | undefined;
1729
1914
  }
1730
1915
 
@@ -1735,7 +1920,7 @@ export class GuMapSolver {
1735
1920
  export class Hde {
1736
1921
  free(): void;
1737
1922
  [Symbol.dispose](): void;
1738
- generate(graph: CsrGraph): any;
1923
+ generate(graph: Graph): any;
1739
1924
  constructor(options: any);
1740
1925
  }
1741
1926
 
@@ -1776,6 +1961,38 @@ export class HybridKnnResult {
1776
1961
  readonly nnz: number;
1777
1962
  }
1778
1963
 
1964
+ /**
1965
+ * Per-vertex hub-damping policy for `IbUmapSolver`.
1966
+ */
1967
+ export class IbUmapHubDamping {
1968
+ private constructor();
1969
+ free(): void;
1970
+ [Symbol.dispose](): void;
1971
+ /**
1972
+ * Explicit caller-supplied per-vertex hub damping factors `eta_i >= 0.0`.
1973
+ */
1974
+ static explicit(hub_eta: any): IbUmapHubDamping;
1975
+ /**
1976
+ * Generalized inverse-degree power hub damping (`eta_i = max(deg(i), 1)^(-exponent)`).
1977
+ */
1978
+ static inverseDegreePower(exponent: number): IbUmapHubDamping;
1979
+ /**
1980
+ * Classic inverse-degree hub damping (`eta_i = 1 / max(deg(i), 1)`).
1981
+ */
1982
+ static inverseDegree(): IbUmapHubDamping;
1983
+ /**
1984
+ * Median-row-sum hub damping preserving unit step sizes on typical vertices.
1985
+ */
1986
+ static medianRowSum(): IbUmapHubDamping;
1987
+ /**
1988
+ * Disable hub damping (`eta_i = 1.0`).
1989
+ */
1990
+ static none(): IbUmapHubDamping;
1991
+ readonly exponent: number | undefined;
1992
+ readonly hubEta: Float64Array | undefined;
1993
+ readonly kind: string;
1994
+ }
1995
+
1779
1996
  /**
1780
1997
  * Cooperative interpolation-based batch Graph UMAP (`ibUMAP`) solver (`f32`, `layout2d`).
1781
1998
  */
@@ -1794,29 +2011,41 @@ export class IbUmapSolver {
1794
2011
  /**
1795
2012
  * Constructs an `IbUmapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop pairs.
1796
2013
  */
1797
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): IbUmapSolver;
2014
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): IbUmapSolver;
2015
+ /**
2016
+ * Returns the effective per-vertex hub damping factors $\eta_i$ (`Float64Array`).
2017
+ */
2018
+ hubEta(): Float64Array;
1798
2019
  /**
1799
- * Constructs an `IbUmapSolver` from a `CsrGraph` using $O(|E|)$ 1+2-hop pairs and
2020
+ * Constructs an `IbUmapSolver` from a `Graph` using $O(|E|)$ 1+2-hop pairs and
1800
2021
  * regularized DoG Varadhan landmark ALT distances.
1801
2022
  */
1802
- constructor(graph: CsrGraph, options: any);
1803
- runSteps(layout: Layout2d, steps: number): string;
1804
- run(layout: Layout2d): string;
1805
- step(layout: Layout2d): string;
2023
+ constructor(graph: Graph, options: any);
2024
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
2025
+ run(layout: Layout2d): SolverStatus;
2026
+ step(layout: Layout2d): SolverStatus;
1806
2027
  readonly a: number;
1807
2028
  readonly ab: Float64Array;
1808
2029
  readonly b: number;
1809
- readonly backend: string;
2030
+ readonly backend: FieldRepulsionBackend;
1810
2031
  readonly isFinished: boolean;
1811
2032
  readonly iteration: number;
1812
2033
  readonly numEdges: number;
1813
2034
  readonly numNodes: number;
1814
- readonly status: string;
1815
- readonly target: string;
2035
+ readonly status: SolverStatus;
2036
+ readonly target: TargetKind;
1816
2037
  readonly totalFft2dCalls: number;
1817
2038
  readonly totalIterations: number | undefined;
1818
2039
  }
1819
2040
 
2041
+ /**
2042
+ * r" B-spline interpolation order for FFT density/kernel evaluation.
2043
+ */
2044
+ export enum InterpolationOrder {
2045
+ Bilinear = 1,
2046
+ Cubic = 3,
2047
+ }
2048
+
1820
2049
  /**
1821
2050
  * Output of `kmeansPlusPlus`.
1822
2051
  */
@@ -1880,18 +2109,18 @@ export class KMeansResult {
1880
2109
  export class KamadaKawaiSolver {
1881
2110
  free(): void;
1882
2111
  [Symbol.dispose](): void;
1883
- _run2d(layout: Layout2d): string;
1884
- _run3d(layout: Layout3d): string;
1885
- _runManifold(layout: ManifoldLayout2d): string;
1886
- _runNd(layout: LayoutNd): string;
1887
- _runSteps2d(layout: Layout2d, steps: number): string;
1888
- _runSteps3d(layout: Layout3d, steps: number): string;
1889
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
1890
- _runStepsNd(layout: LayoutNd, steps: number): string;
1891
- _step2d(layout: Layout2d): string;
1892
- _step3d(layout: Layout3d): string;
1893
- _stepManifold(layout: ManifoldLayout2d): string;
1894
- _stepNd(layout: LayoutNd): string;
2112
+ _run2d(layout: Layout2d): SolverStatus;
2113
+ _run3d(layout: Layout3d): SolverStatus;
2114
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
2115
+ _runNd(layout: LayoutNd): SolverStatus;
2116
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
2117
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
2118
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
2119
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
2120
+ _step2d(layout: Layout2d): SolverStatus;
2121
+ _step3d(layout: Layout3d): SolverStatus;
2122
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
2123
+ _stepNd(layout: LayoutNd): SolverStatus;
1895
2124
  /**
1896
2125
  * Constructs a `KamadaKawaiSolver` from a flat row-major `(numNodes, numNodes)` distance matrix.
1897
2126
  */
@@ -1899,16 +2128,16 @@ export class KamadaKawaiSolver {
1899
2128
  /**
1900
2129
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
1901
2130
  */
1902
- static fromGraph(graph: CsrGraph, options: any): KamadaKawaiSolver;
2131
+ static fromGraph(graph: Graph, options: any): KamadaKawaiSolver;
1903
2132
  /**
1904
2133
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
1905
2134
  */
1906
- constructor(graph: CsrGraph, options: any);
2135
+ constructor(graph: Graph, options: any);
1907
2136
  readonly isFinished: boolean;
1908
2137
  readonly iteration: number;
1909
2138
  readonly numNodes: number;
1910
- readonly status: string;
1911
- readonly target: string;
2139
+ readonly status: SolverStatus;
2140
+ readonly target: TargetKind;
1912
2141
  readonly totalIterations: number | undefined;
1913
2142
  }
1914
2143
 
@@ -1952,7 +2181,7 @@ export class KnnGraph {
1952
2181
  export class KorenSpectral {
1953
2182
  free(): void;
1954
2183
  [Symbol.dispose](): void;
1955
- generate(graph: CsrGraph): any;
2184
+ generate(graph: Graph): any;
1956
2185
  constructor(options: any);
1957
2186
  }
1958
2187
 
@@ -1993,49 +2222,58 @@ export class LabelPropagationResult {
1993
2222
  readonly numCommunities: number;
1994
2223
  }
1995
2224
 
2225
+ /**
2226
+ * r" Graph Laplacian matrix variant for `laplacian`.
2227
+ */
2228
+ export enum LaplacianKind {
2229
+ Combinatorial = 0,
2230
+ SymmetricNormalized = 1,
2231
+ RandomWalk = 2,
2232
+ }
2233
+
1996
2234
  /**
1997
2235
  * Cooperative single-threaded deterministic `LargeVis` (Tang et al., 2016) layout solver (`f32`).
1998
2236
  */
1999
2237
  export class LargeVisSolver {
2000
2238
  free(): void;
2001
2239
  [Symbol.dispose](): void;
2002
- _run2d(layout: Layout2d): string;
2003
- _run3d(layout: Layout3d): string;
2004
- _runManifold(layout: ManifoldLayout2d): string;
2005
- _runNd(layout: LayoutNd): string;
2006
- _runSteps2d(layout: Layout2d, steps: number): string;
2007
- _runSteps3d(layout: Layout3d, steps: number): string;
2008
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
2009
- _runStepsNd(layout: LayoutNd, steps: number): string;
2010
- _step2d(layout: Layout2d): string;
2011
- _step3d(layout: Layout3d): string;
2012
- _stepManifold(layout: ManifoldLayout2d): string;
2013
- _stepNd(layout: LayoutNd): string;
2240
+ _run2d(layout: Layout2d): SolverStatus;
2241
+ _run3d(layout: Layout3d): SolverStatus;
2242
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
2243
+ _runNd(layout: LayoutNd): SolverStatus;
2244
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
2245
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
2246
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
2247
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
2248
+ _step2d(layout: Layout2d): SolverStatus;
2249
+ _step3d(layout: Layout3d): SolverStatus;
2250
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
2251
+ _stepNd(layout: LayoutNd): SolverStatus;
2014
2252
  /**
2015
2253
  * Constructs a `LargeVisSolver` from `graph` and `LargeVisOptions`.
2016
2254
  */
2017
- constructor(graph: CsrGraph, options: any);
2255
+ constructor(graph: Graph, options: any);
2018
2256
  readonly currentLr: number;
2019
2257
  readonly isFinished: boolean;
2020
2258
  readonly iteration: number;
2021
2259
  readonly numNodes: number;
2022
2260
  readonly numSprings: number;
2023
- readonly status: string;
2024
- readonly target: string;
2261
+ readonly status: SolverStatus;
2262
+ readonly target: TargetKind;
2025
2263
  readonly totalIterations: number | undefined;
2026
2264
  }
2027
2265
 
2028
2266
  /**
2029
- * Largest connected component result returned by `CsrGraph.largestConnectedComponent()`.
2267
+ * Largest connected component result returned by `Graph.largestConnectedComponent()`.
2030
2268
  */
2031
2269
  export class LargestConnectedComponentResult {
2032
2270
  private constructor();
2033
2271
  free(): void;
2034
2272
  [Symbol.dispose](): void;
2035
2273
  /**
2036
- * Returns a cloned handle to the induced `CsrGraph` of the largest connected component.
2274
+ * Returns a cloned handle to the induced `Graph` of the largest connected component.
2037
2275
  */
2038
- graph(): CsrGraph;
2276
+ graph(): Graph;
2039
2277
  /**
2040
2278
  * Alias for `originalNodeIds()`.
2041
2279
  */
@@ -2046,6 +2284,14 @@ export class LargestConnectedComponentResult {
2046
2284
  originalNodeIds(): Uint32Array;
2047
2285
  }
2048
2286
 
2287
+ /**
2288
+ * r" Hierarchical layering algorithm for directed acyclic graphs.
2289
+ */
2290
+ export enum LayeringMethod {
2291
+ LongestPath = 0,
2292
+ NetworkSimplex = 1,
2293
+ }
2294
+
2049
2295
  /**
2050
2296
  * Contiguous interleaved `[x0, y0, x1, y1, ...]` 2D node coordinate buffer (`f32`)
2051
2297
  * suitable for zero-copy `Float32Array` linear-memory views via `coordsView()`.
@@ -2219,6 +2465,14 @@ export class Layout3d {
2219
2465
  readonly numNodes: number;
2220
2466
  }
2221
2467
 
2468
+ /**
2469
+ * r" Coordinate axis selector for 1D separation projection on 2D layouts.
2470
+ */
2471
+ export enum LayoutAxis {
2472
+ X = 0,
2473
+ Y = 1,
2474
+ }
2475
+
2222
2476
  /**
2223
2477
  * Coordinate-collapse and zero-length edge degeneracy diagnostics returned by `layoutDegeneracy`.
2224
2478
  */
@@ -2312,6 +2566,14 @@ export class LayoutNd {
2312
2566
  readonly numNodes: number;
2313
2567
  }
2314
2568
 
2569
+ /**
2570
+ * r" Quality objective for `leidenCommunities`.
2571
+ */
2572
+ export enum LeidenObjective {
2573
+ Modularity = 0,
2574
+ Cpm = 1,
2575
+ }
2576
+
2315
2577
  /**
2316
2578
  * Community detection output returned by `leidenCommunities`.
2317
2579
  */
@@ -2353,6 +2615,14 @@ export class LeidenResult {
2353
2615
  readonly quality: number;
2354
2616
  }
2355
2617
 
2618
+ /**
2619
+ * r" Repulsion weighting model for `LinLogSolver`.
2620
+ */
2621
+ export enum LinLogRepulsion {
2622
+ EdgeRepulsion = 0,
2623
+ NodeRepulsion = 1,
2624
+ }
2625
+
2356
2626
  /**
2357
2627
  * Cooperative Noack (2007/2009) LinLog / $(a, r)$-PolyLog force-directed layout solver (`f32`).
2358
2628
  */
@@ -2362,27 +2632,27 @@ export class LinLogSolver {
2362
2632
  _energy2d(layout: Layout2d): number;
2363
2633
  _energy3d(layout: Layout3d): number;
2364
2634
  _energyNd(layout: LayoutNd): number;
2365
- _run2d(layout: Layout2d): string;
2366
- _run3d(layout: Layout3d): string;
2367
- _runNd(layout: LayoutNd): string;
2368
- _runSteps2d(layout: Layout2d, steps: number): string;
2369
- _runSteps3d(layout: Layout3d, steps: number): string;
2370
- _runStepsNd(layout: LayoutNd, steps: number): string;
2371
- _step2d(layout: Layout2d): string;
2372
- _step3d(layout: Layout3d): string;
2373
- _stepNd(layout: LayoutNd): string;
2635
+ _run2d(layout: Layout2d): SolverStatus;
2636
+ _run3d(layout: Layout3d): SolverStatus;
2637
+ _runNd(layout: LayoutNd): SolverStatus;
2638
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
2639
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
2640
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
2641
+ _step2d(layout: Layout2d): SolverStatus;
2642
+ _step3d(layout: Layout3d): SolverStatus;
2643
+ _stepNd(layout: LayoutNd): SolverStatus;
2374
2644
  masses(): Float64Array;
2375
2645
  /**
2376
2646
  * Constructs a `LinLogSolver` from `graph` and optional `LinLogOptions`.
2377
2647
  */
2378
- constructor(graph: CsrGraph, options: any);
2379
- readonly backend: string;
2648
+ constructor(graph: Graph, options: any);
2649
+ readonly backend: ForceBackend;
2380
2650
  readonly isFinished: boolean;
2381
2651
  readonly iteration: number;
2382
2652
  readonly maxDisplacement: number;
2383
2653
  readonly numNodes: number;
2384
- readonly status: string;
2385
- readonly target: string;
2654
+ readonly status: SolverStatus;
2655
+ readonly target: TargetKind;
2386
2656
  readonly totalIterations: number | undefined;
2387
2657
  }
2388
2658
 
@@ -2424,9 +2694,19 @@ export class LouvainResult {
2424
2694
  }
2425
2695
 
2426
2696
  /**
2427
- * Non-Euclidean 2D node layout (`f32`) constrained to `"hyperbolicPoincare"`,
2428
- * `"hyperbolicLorentz"`, `"spherical"`, or `"torus"`, exposing zero-copy `coordsView()` via a
2429
- * synced interleaved mirror.
2697
+ * r" Non-Euclidean 2D manifold geometry for `ManifoldLayout2d`.
2698
+ */
2699
+ export enum ManifoldKind {
2700
+ HyperbolicPoincare = 0,
2701
+ HyperbolicLorentz = 1,
2702
+ Spherical = 2,
2703
+ Torus2d = 3,
2704
+ }
2705
+
2706
+ /**
2707
+ * Non-Euclidean 2D node layout (`f32`) constrained to `ManifoldKind`
2708
+ * (`HyperbolicPoincare`, `HyperbolicLorentz`, `Spherical`, or `Torus2d`), exposing zero-copy
2709
+ * `coordsView()` via a synced interleaved mirror.
2430
2710
  */
2431
2711
  export class ManifoldLayout2d {
2432
2712
  private constructor();
@@ -2459,15 +2739,15 @@ export class ManifoldLayout2d {
2459
2739
  /**
2460
2740
  * Creates a `ManifoldLayout2d` from flat interleaved `[x0, y0, ...]` coordinates, projecting onto `kind`.
2461
2741
  */
2462
- static fromCoords(kind: string, coords: Float32Array | number[]): ManifoldLayout2d;
2742
+ static fromCoords(kind: any, coords: Float32Array | number[]): ManifoldLayout2d;
2463
2743
  /**
2464
2744
  * Creates a `ManifoldLayout2d` from a Euclidean `Layout2d` scaled safely inside `maxRadius` (default `0.7`).
2465
2745
  */
2466
- static fromLayoutScaled(kind: string, layout: Layout2d, max_radius?: number | null): ManifoldLayout2d;
2746
+ static fromLayoutScaled(kind: any, layout: Layout2d, max_radius?: number | null): ManifoldLayout2d;
2467
2747
  /**
2468
2748
  * Creates a `ManifoldLayout2d` from a Euclidean `Layout2d`, projecting points onto `kind`.
2469
2749
  */
2470
- static fromLayout(kind: string, layout: Layout2d): ManifoldLayout2d;
2750
+ static fromLayout(kind: any, layout: Layout2d): ManifoldLayout2d;
2471
2751
  /**
2472
2752
  * Computes the exact geodesic distance between vertices `i` and `j`.
2473
2753
  */
@@ -2483,7 +2763,7 @@ export class ManifoldLayout2d {
2483
2763
  /**
2484
2764
  * Creates a deterministically seeded `ManifoldLayout2d` for `n` vertices on geometry `kind`.
2485
2765
  */
2486
- static init(kind: string, n: number, options: any): ManifoldLayout2d;
2766
+ static init(kind: any, n: number, options: any): ManifoldLayout2d;
2487
2767
  /**
2488
2768
  * Returns `true` if every coordinate in the manifold layout is finite.
2489
2769
  */
@@ -2497,7 +2777,7 @@ export class ManifoldLayout2d {
2497
2777
  */
2498
2778
  len(): number;
2499
2779
  /**
2500
- * Returns `{ scale, aspect }` metric parameters.
2780
+ * Returns `{ scale, aspect, poincareEps }` metric parameters.
2501
2781
  */
2502
2782
  metric(): any;
2503
2783
  /**
@@ -2515,7 +2795,7 @@ export class ManifoldLayout2d {
2515
2795
  /**
2516
2796
  * Creates a deterministically seeded safe random initialization on `kind`.
2517
2797
  */
2518
- static randomInit(kind: string, n: number, options: any): ManifoldLayout2d;
2798
+ static randomInit(kind: any, n: number, options: any): ManifoldLayout2d;
2519
2799
  /**
2520
2800
  * Isometrically recenters the Poincaré disk layout so vertex `index` moves to `(0, 0)`.
2521
2801
  */
@@ -2532,6 +2812,10 @@ export class ManifoldLayout2d {
2532
2812
  * Sets the physical aspect ratio (`> 0`) without mutating stored coordinates.
2533
2813
  */
2534
2814
  setAspect(aspect: number): void;
2815
+ /**
2816
+ * Sets the Poincaré boundary clamp epsilon (`0 < eps < 0.5` in `f32`) without mutating coordinates.
2817
+ */
2818
+ setPoincareEps(eps: number): void;
2535
2819
  /**
2536
2820
  * Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
2537
2821
  */
@@ -2567,11 +2851,11 @@ export class ManifoldLayout2d {
2567
2851
  /**
2568
2852
  * Returns a rigidly panned `Torus2d` `ManifoldLayout2d` minimizing boundary-wrapped edges.
2569
2853
  */
2570
- torusAutoPan(graph: CsrGraph): ManifoldLayout2d;
2854
+ torusAutoPan(graph: Graph): ManifoldLayout2d;
2571
2855
  /**
2572
2856
  * Initializes a flat 2D torus layout via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
2573
2857
  */
2574
- static torusSpectralPhaseInit(graph: CsrGraph, seed: any): ManifoldLayout2d;
2858
+ static torusSpectralPhaseInit(graph: Graph, seed: any): ManifoldLayout2d;
2575
2859
  /**
2576
2860
  * Returns the first coordinate (`x` or `lon`) of vertex `index`.
2577
2861
  */
@@ -2583,19 +2867,23 @@ export class ManifoldLayout2d {
2583
2867
  /**
2584
2868
  * Creates a zero-initialized `ManifoldLayout2d` for `n` vertices on geometry `kind`.
2585
2869
  */
2586
- static zeros(kind: string, n: number): ManifoldLayout2d;
2870
+ static zeros(kind: any, n: number): ManifoldLayout2d;
2587
2871
  /**
2588
2872
  * Returns the physical aspect ratio (`Lx / Ly` on `Torus2d`, `> 0`).
2589
2873
  */
2590
2874
  readonly aspect: number;
2591
2875
  /**
2592
- * Returns the canonical manifold kind string: `"hyperbolicPoincare"`, `"hyperbolicLorentz"`, `"spherical"`, or `"torus"`.
2876
+ * Returns the canonical `ManifoldKind` enum variant.
2593
2877
  */
2594
- readonly kind: string;
2878
+ readonly kind: ManifoldKind;
2595
2879
  /**
2596
2880
  * Returns the number of vertices in the manifold layout.
2597
2881
  */
2598
2882
  readonly numNodes: number;
2883
+ /**
2884
+ * Returns the Poincaré boundary clamp epsilon (`> 0` and `< 0.5`).
2885
+ */
2886
+ readonly poincareEps: number;
2599
2887
  /**
2600
2888
  * Returns the physical geodesic scale factor (`> 0`).
2601
2889
  */
@@ -2608,30 +2896,59 @@ export class ManifoldLayout2d {
2608
2896
  export class MaxentStressSolver {
2609
2897
  free(): void;
2610
2898
  [Symbol.dispose](): void;
2611
- _run2d(layout: Layout2d): string;
2612
- _run3d(layout: Layout3d): string;
2613
- _runNd(layout: LayoutNd): string;
2614
- _runSteps2d(layout: Layout2d, steps: number): string;
2615
- _runSteps3d(layout: Layout3d, steps: number): string;
2616
- _runStepsNd(layout: LayoutNd, steps: number): string;
2617
- _step2d(layout: Layout2d): string;
2618
- _step3d(layout: Layout3d): string;
2619
- _stepNd(layout: LayoutNd): string;
2899
+ _run2d(layout: Layout2d): SolverStatus;
2900
+ _run3d(layout: Layout3d): SolverStatus;
2901
+ _runNd(layout: LayoutNd): SolverStatus;
2902
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
2903
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
2904
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
2905
+ _step2d(layout: Layout2d): SolverStatus;
2906
+ _step3d(layout: Layout3d): SolverStatus;
2907
+ _stepNd(layout: LayoutNd): SolverStatus;
2620
2908
  /**
2621
2909
  * Constructs a `MaxentStressSolver` from `graph` and optional `MaxentStressOptions`.
2622
2910
  */
2623
- constructor(graph: CsrGraph, options: any);
2624
- readonly backend: string;
2911
+ constructor(graph: Graph, options: any);
2912
+ readonly backend: ForceBackend;
2625
2913
  readonly currentAlpha: number;
2626
2914
  readonly effectiveQ: number;
2627
2915
  readonly isFinished: boolean;
2628
2916
  readonly iteration: number;
2629
2917
  readonly numNodes: number;
2630
- readonly status: string;
2631
- readonly target: string;
2918
+ readonly status: SolverStatus;
2919
+ readonly target: TargetKind;
2632
2920
  readonly totalIterations: number | undefined;
2633
2921
  }
2634
2922
 
2923
+ /**
2924
+ * Distance weighting rule for `UnifiedMetricAnchor`.
2925
+ */
2926
+ export class MetricAnchorWeighting {
2927
+ private constructor();
2928
+ free(): void;
2929
+ [Symbol.dispose](): void;
2930
+ /**
2931
+ * Symmetric inverse-square distance weighting `w(d) = 1 / d^2`.
2932
+ */
2933
+ static balancedInvD2(): MetricAnchorWeighting;
2934
+ /**
2935
+ * Pure inverse-power distance weighting `w(d) = 1 / d^power` (`power > 0`).
2936
+ */
2937
+ static inversePower(power: number): MetricAnchorWeighting;
2938
+ /**
2939
+ * Smoothly distance-gated long-range metric weighting (`dGate >= 0`, `power > 0`).
2940
+ */
2941
+ static longRangeGated(d_gate: number, power: number): MetricAnchorWeighting;
2942
+ /**
2943
+ * Scale-adaptive distance-gated weighting (`medianFrac >= 0`, `power > 0`).
2944
+ */
2945
+ static relativeLongRangeGated(median_frac: number, power: number): MetricAnchorWeighting;
2946
+ readonly dGate: number | undefined;
2947
+ readonly kind: string;
2948
+ readonly medianFrac: number | undefined;
2949
+ readonly power: number | undefined;
2950
+ }
2951
+
2635
2952
  /**
2636
2953
  * Selective quality metric report returned by `evaluateMetrics`.
2637
2954
  *
@@ -2700,6 +3017,60 @@ export class MetricReport {
2700
3017
  readonly torusCrossingNumber: number | undefined;
2701
3018
  }
2702
3019
 
3020
+ /**
3021
+ * r" Individual quality metric selectors passed to `evaluateMetrics`.
3022
+ */
3023
+ export enum MetricTarget {
3024
+ ScaleNormalizedStress = 0,
3025
+ SampledScaleNormalizedStress = 1,
3026
+ GeodesicDistortion = 2,
3027
+ CrossingNumber = 3,
3028
+ CrossingEdges = 4,
3029
+ CrossingAngle = 5,
3030
+ SampledCrossingNumber = 6,
3031
+ Crosslessness = 7,
3032
+ SampledCrosslessness = 8,
3033
+ TorusCrossingNumber = 9,
3034
+ CrossingEdgesTorus = 10,
3035
+ NeighborhoodPreservation1Hop = 11,
3036
+ NeighborhoodPreservation2Hop = 12,
3037
+ SampledNp1 = 13,
3038
+ SampledNp2 = 14,
3039
+ GabrielGraphProperty = 15,
3040
+ NodeResolution = 16,
3041
+ RelativeNeighborhoodPreservation = 17,
3042
+ GabrielGraphPreservation = 18,
3043
+ AspectRatio = 19,
3044
+ AngularResolution = 20,
3045
+ MinimumAngle = 21,
3046
+ MinimumAngleA1 = 22,
3047
+ LayoutDegeneracy = 23,
3048
+ IdealEdgeLengths = 24,
3049
+ PrismDistortion = 25,
3050
+ AdjustedPatchNig = 26,
3051
+ ClusterAreaFaithfulness = 27,
3052
+ LandmarkStratifiedRta = 28,
3053
+ DistanceConsistency = 29,
3054
+ DistributionConsistency = 30,
3055
+ ClassDensityMeasure = 31,
3056
+ HistogramDensityMeasure = 32,
3057
+ SepmeKnng = 33,
3058
+ SepmeRng = 34,
3059
+ SepmeGab = 35,
3060
+ SepmeGong = 36,
3061
+ NeighborhoodHit = 37,
3062
+ SilhouetteScore = 38,
3063
+ CalinskiHarabaszScore = 39,
3064
+ DaviesBouldinScore = 40,
3065
+ CqKmeansAri = 41,
3066
+ CqKmeansAmi = 42,
3067
+ CqHacHom = 43,
3068
+ CqHacAmi = 44,
3069
+ PairwiseDistanceOverlapError = 45,
3070
+ SprawlterNn = 46,
3071
+ NorMetrics = 47,
3072
+ }
3073
+
2703
3074
  /**
2704
3075
  * DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
2705
3076
  */
@@ -2727,6 +3098,15 @@ export class NorMetricsResult {
2727
3098
  readonly spChA: number;
2728
3099
  }
2729
3100
 
3101
+ /**
3102
+ * r" Pivot selection strategy for Ortmann et al. (2016) sparse stress SGD.
3103
+ */
3104
+ export enum OrtmannPivotStrategy {
3105
+ KmeansSp = 0,
3106
+ MaxminRandomSp = 1,
3107
+ MaxminSp = 2,
3108
+ }
3109
+
2730
3110
  /**
2731
3111
  * Result of `PacmapGraphSolver.withBackbone`.
2732
3112
  */
@@ -2754,46 +3134,46 @@ export class PacmapBackboneResult {
2754
3134
  export class PacmapGraphSolver {
2755
3135
  free(): void;
2756
3136
  [Symbol.dispose](): void;
2757
- _run2d(layout: Layout2d): string;
2758
- _run3d(layout: Layout3d): string;
2759
- _runManifold(layout: ManifoldLayout2d): string;
2760
- _runNd(layout: LayoutNd): string;
2761
- _runSteps2d(layout: Layout2d, steps: number): string;
2762
- _runSteps3d(layout: Layout3d, steps: number): string;
2763
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
2764
- _runStepsNd(layout: LayoutNd, steps: number): string;
2765
- _step2d(layout: Layout2d): string;
2766
- _step3d(layout: Layout3d): string;
2767
- _stepManifold(layout: ManifoldLayout2d): string;
2768
- _stepNd(layout: LayoutNd): string;
3137
+ _run2d(layout: Layout2d): SolverStatus;
3138
+ _run3d(layout: Layout3d): SolverStatus;
3139
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
3140
+ _runNd(layout: LayoutNd): SolverStatus;
3141
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
3142
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
3143
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
3144
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
3145
+ _step2d(layout: Layout2d): SolverStatus;
3146
+ _step3d(layout: Layout3d): SolverStatus;
3147
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
3148
+ _stepNd(layout: LayoutNd): SolverStatus;
2769
3149
  /**
2770
3150
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
2771
3151
  */
2772
- static fromGraph(graph: CsrGraph, options: any): PacmapGraphSolver;
3152
+ static fromGraph(graph: Graph, options: any): PacmapGraphSolver;
2773
3153
  /**
2774
3154
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
2775
3155
  */
2776
- constructor(graph: CsrGraph, options: any);
3156
+ constructor(graph: Graph, options: any);
2777
3157
  /**
2778
3158
  * Initializes an area-reserved coarse backbone `Layout2d` (`f32`) together with a configured
2779
3159
  * `PacmapGraphSolver` for end-to-end multilevel layout.
2780
3160
  */
2781
- static withBackbone(graph: CsrGraph, options: any): PacmapBackboneResult;
3161
+ static withBackbone(graph: Graph, options: any): PacmapBackboneResult;
2782
3162
  /**
2783
3163
  * Constructs a `PacmapGraphSolver` from a flat row-major `(numNodes, numLandmarks)` distance table.
2784
3164
  */
2785
- static withLandmarkDistances(graph: CsrGraph, landmark_dists: Float64Array | number[], num_landmarks: number, options: any): PacmapGraphSolver;
3165
+ static withLandmarkDistances(graph: Graph, landmark_dists: Float64Array | number[], num_landmarks: number, options: any): PacmapGraphSolver;
2786
3166
  /**
2787
3167
  * Constructs a `PacmapGraphSolver` reusing precomputed `DogVaradhanLandmarks`.
2788
3168
  */
2789
- static withLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): PacmapGraphSolver;
3169
+ static withLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): PacmapGraphSolver;
2790
3170
  readonly isFinished: boolean;
2791
3171
  readonly iteration: number;
2792
3172
  readonly numHinges: number;
2793
3173
  readonly numNodes: number;
2794
3174
  readonly numSprings: number;
2795
- readonly status: string;
2796
- readonly target: string;
3175
+ readonly status: SolverStatus;
3176
+ readonly target: TargetKind;
2797
3177
  readonly totalIterations: number | undefined;
2798
3178
  }
2799
3179
 
@@ -2847,10 +3227,56 @@ export class PfsPrimeOverlapRemoval {
2847
3227
  export class PivotMds {
2848
3228
  free(): void;
2849
3229
  [Symbol.dispose](): void;
2850
- generate(graph: CsrGraph): any;
3230
+ _generateDist(): any;
3231
+ _generateGraph(graph: Graph): any;
3232
+ _generateWithReportDist(): PivotMdsReportResult;
3233
+ _generateWithReportGraph(graph: Graph): PivotMdsReportResult;
3234
+ /**
3235
+ * Constructs a `PivotMds` generator from a flat pivot-major `(numPivots * numNodes)`
3236
+ * distance buffer (`Float64Array`, `Uint32Array`, `Uint16Array`, `Uint8Array`, or `number[]`).
3237
+ */
3238
+ static fromPivotDistances(pivot_distances_kn: any, num_nodes: number, num_pivots: number, options: any): PivotMds;
2851
3239
  constructor(options: any);
2852
3240
  }
2853
3241
 
3242
+ /**
3243
+ * Spectral summary returned by `PivotMds.generateWithReport()`.
3244
+ */
3245
+ export class PivotMdsReport {
3246
+ private constructor();
3247
+ free(): void;
3248
+ [Symbol.dispose](): void;
3249
+ /**
3250
+ * Returns descending Gram-matrix eigenvalues of $C^T C$ (`Float64Array`).
3251
+ */
3252
+ eigenvalues(): Float64Array;
3253
+ /**
3254
+ * Returns the fraction of positive Gram-matrix variance explained by the top `dims` modes.
3255
+ */
3256
+ explainedVarianceRatio(dims: number): number;
3257
+ /**
3258
+ * Returns the 2D spectral metric embeddability ratio $\rho_{2\mathrm{D}} \in [0, 1]$.
3259
+ */
3260
+ readonly embeddability2d: number;
3261
+ }
3262
+
3263
+ /**
3264
+ * Combined layout and spectral report returned by `PivotMds.generateWithReport()`.
3265
+ */
3266
+ export class PivotMdsReportResult {
3267
+ private constructor();
3268
+ free(): void;
3269
+ [Symbol.dispose](): void;
3270
+ /**
3271
+ * Returns the generated `Layout2d`, `Layout3d`, or `LayoutNd`.
3272
+ */
3273
+ layout(): any;
3274
+ /**
3275
+ * Returns the spectral `PivotMdsReport`.
3276
+ */
3277
+ report(): PivotMdsReport;
3278
+ }
3279
+
2854
3280
  /**
2855
3281
  * PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
2856
3282
  */
@@ -2891,15 +3317,15 @@ export class PrismOverlapRemoval {
2891
3317
  /**
2892
3318
  * Executes up to `steps` PRISM rounds on `layout` in place.
2893
3319
  */
2894
- runSteps(layout: Layout2d, steps: number): string;
3320
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
2895
3321
  /**
2896
3322
  * Runs PRISM overlap removal until `0` overlaps remain or `maxIterations` is reached.
2897
3323
  */
2898
- run(layout: Layout2d): string;
3324
+ run(layout: Layout2d): SolverStatus;
2899
3325
  /**
2900
3326
  * Executes one PRISM proximity-stress round on `layout` in place.
2901
3327
  */
2902
- step(layout: Layout2d): string;
3328
+ step(layout: Layout2d): SolverStatus;
2903
3329
  /**
2904
3330
  * Returns `true` when the solver has converged (`0` overlaps) or completed.
2905
3331
  */
@@ -2917,9 +3343,9 @@ export class PrismOverlapRemoval {
2917
3343
  */
2918
3344
  readonly numNodes: number;
2919
3345
  /**
2920
- * Returns the solver lifecycle status string.
3346
+ * Returns the solver lifecycle status (`SolverStatus`).
2921
3347
  */
2922
- readonly status: string;
3348
+ readonly status: SolverStatus;
2923
3349
  /**
2924
3350
  * Returns the maximum scheduled PRISM rounds (`maxIterations`).
2925
3351
  */
@@ -2927,13 +3353,13 @@ export class PrismOverlapRemoval {
2927
3353
  }
2928
3354
 
2929
3355
  /**
2930
- * Resistance-distance MDS (`RdMds`) `LayoutGenerator` supporting
2931
- * `"layout2d"`, `"layout3d"`, and `"layoutNd"`.
3356
+ * Resistance-Distance MDS (`RdMds`, Onoue 2026) `LayoutGenerator` supporting
3357
+ * `TargetKind.Layout2d`, `TargetKind.Layout3d`, and `TargetKind.LayoutNd`.
2932
3358
  */
2933
3359
  export class RdMds {
2934
3360
  free(): void;
2935
3361
  [Symbol.dispose](): void;
2936
- generate(graph: CsrGraph): any;
3362
+ generate(graph: Graph): any;
2937
3363
  constructor(options: any);
2938
3364
  }
2939
3365
 
@@ -2945,9 +3371,9 @@ export class ResistanceCurvatureFlowResult {
2945
3371
  free(): void;
2946
3372
  [Symbol.dispose](): void;
2947
3373
  /**
2948
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final conductances `w_e = 1 / l_e`.
3374
+ * Builds a weighted undirected `Graph` (`f32`) storing final conductances `w_e = 1 / l_e`.
2949
3375
  */
2950
- conductanceGraph(): CsrGraph;
3376
+ conductanceGraph(): Graph;
2951
3377
  /**
2952
3378
  * Returns final edge conductances `w_e = 1 / l_e` (`Float64Array`).
2953
3379
  */
@@ -2969,9 +3395,9 @@ export class ResistanceCurvatureFlowResult {
2969
3395
  */
2970
3396
  effectiveResistances(): Float64Array;
2971
3397
  /**
2972
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final edge lengths `l_e`.
3398
+ * Builds a weighted undirected `Graph` (`f32`) storing final edge lengths `l_e`.
2973
3399
  */
2974
- lengthGraph(): CsrGraph;
3400
+ lengthGraph(): Graph;
2975
3401
  /**
2976
3402
  * Returns final link resistance curvatures `kappa_res(u, v)` (`Float64Array`).
2977
3403
  */
@@ -3049,13 +3475,13 @@ export class ResistanceCurvatureFlowResult {
3049
3475
  */
3050
3476
  readonly stdLinkCurvature: number;
3051
3477
  /**
3052
- * Returns the suggested 2D geometry (`"hyperbolic"`, `"spherical"`, `"torus"`, or `"euclidean"`).
3478
+ * Returns the suggested 2D geometry (`SuggestedGeometry`).
3053
3479
  */
3054
- readonly suggestedGeometry: string;
3480
+ readonly suggestedGeometry: SuggestedGeometry;
3055
3481
  /**
3056
- * Returns the suggested `ManifoldKind` (`"hyperbolicPoincare"`, `"spherical"`, `"torus"`), or `undefined`.
3482
+ * Returns the suggested `ManifoldKind`, or `undefined`.
3057
3483
  */
3058
- readonly suggestedManifold: string | undefined;
3484
+ readonly suggestedManifold: ManifoldKind | undefined;
3059
3485
  /**
3060
3486
  * Returns `true` if the final evaluation used the exact dense pseudoinverse solver.
3061
3487
  */
@@ -3222,9 +3648,9 @@ export class ScreenedPoissonField2d {
3222
3648
  */
3223
3649
  readonly gridSize: number;
3224
3650
  /**
3225
- * Returns the active kernel name (`"screenedPoisson"` or `"singleGaussian"`).
3651
+ * Returns the active kernel enum variant (`DensityFieldKernel`).
3226
3652
  */
3227
- readonly kernel: string;
3653
+ readonly kernel: DensityFieldKernel;
3228
3654
  /**
3229
3655
  * Returns the zero-padding multiplier (`1` or `2`).
3230
3656
  */
@@ -3244,7 +3670,7 @@ export class ScreenedPoissonRefiner {
3244
3670
  /**
3245
3671
  * Creates a `ScreenedPoissonRefiner` retaining 1-hop edges from `graph` for optional anchors.
3246
3672
  */
3247
- static fromGraph(graph: CsrGraph, options: any): ScreenedPoissonRefiner;
3673
+ static fromGraph(graph: Graph, options: any): ScreenedPoissonRefiner;
3248
3674
  /**
3249
3675
  * Returns telemetry from the most recent density field evaluation.
3250
3676
  */
@@ -3256,11 +3682,11 @@ export class ScreenedPoissonRefiner {
3256
3682
  /**
3257
3683
  * Executes up to `steps` density refinement steps on `layout` in place.
3258
3684
  */
3259
- runSteps(layout: Layout2d, steps: number): string;
3685
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
3260
3686
  /**
3261
3687
  * Runs density refinement to completion or early convergence on `layout` in place.
3262
3688
  */
3263
- run(layout: Layout2d): string;
3689
+ run(layout: Layout2d): SolverStatus;
3264
3690
  /**
3265
3691
  * Attaches or replaces a coarse-level cluster centroid tether (`alignClusteredCentroids`).
3266
3692
  */
@@ -3268,7 +3694,7 @@ export class ScreenedPoissonRefiner {
3268
3694
  /**
3269
3695
  * Executes one density refinement step on `layout` in place.
3270
3696
  */
3271
- step(layout: Layout2d): string;
3697
+ step(layout: Layout2d): SolverStatus;
3272
3698
  /**
3273
3699
  * Returns total heap bytes allocated by the underlying density field workspace.
3274
3700
  */
@@ -3290,9 +3716,9 @@ export class ScreenedPoissonRefiner {
3290
3716
  */
3291
3717
  readonly numNodes: number;
3292
3718
  /**
3293
- * Returns the solver lifecycle status string.
3719
+ * Returns the solver lifecycle status (`SolverStatus`).
3294
3720
  */
3295
- readonly status: string;
3721
+ readonly status: SolverStatus;
3296
3722
  /**
3297
3723
  * Returns the configured maximum number of refinement iterations.
3298
3724
  */
@@ -3360,6 +3786,14 @@ export class ScreenedPoissonResult {
3360
3786
  readonly sigmaUsed: number;
3361
3787
  }
3362
3788
 
3789
+ /**
3790
+ * r" Underlying layout solver backend for `SelLayoutSolver`.
3791
+ */
3792
+ export enum SelLayoutBackend {
3793
+ Fr = 0,
3794
+ TFdp = 1,
3795
+ }
3796
+
3363
3797
  /**
3364
3798
  * Cooperative Xue et al. (2025) Structural Entropy Layout (`SEL`) solver (`f32`).
3365
3799
  */
@@ -3373,19 +3807,19 @@ export class SelLayoutSolver {
3373
3807
  /**
3374
3808
  * Constructs a `SelLayoutSolver` from `graph` and optional `SelOptions`.
3375
3809
  */
3376
- constructor(graph: CsrGraph, options: any);
3810
+ constructor(graph: Graph, options: any);
3377
3811
  /**
3378
3812
  * Executes up to `steps` SEL layout iterations on `layout` in place.
3379
3813
  */
3380
- runSteps(layout: Layout2d, steps: number): string;
3814
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
3381
3815
  /**
3382
3816
  * Runs SEL layout optimization to completion on `layout` in place.
3383
3817
  */
3384
- run(layout: Layout2d): string;
3818
+ run(layout: Layout2d): SolverStatus;
3385
3819
  /**
3386
3820
  * Executes one SEL layout iteration on `layout` in place.
3387
3821
  */
3388
- step(layout: Layout2d): string;
3822
+ step(layout: Layout2d): SolverStatus;
3389
3823
  /**
3390
3824
  * Returns `true` when the solver has converged or completed.
3391
3825
  */
@@ -3403,15 +3837,26 @@ export class SelLayoutSolver {
3403
3837
  */
3404
3838
  readonly seTarget: number;
3405
3839
  /**
3406
- * Returns the solver lifecycle status string.
3840
+ * Returns the solver lifecycle status.
3407
3841
  */
3408
- readonly status: string;
3842
+ readonly status: SolverStatus;
3409
3843
  /**
3410
3844
  * Returns the scheduled iteration count.
3411
3845
  */
3412
3846
  readonly totalIterations: number | undefined;
3413
3847
  }
3414
3848
 
3849
+ /**
3850
+ * r" Structural entropy edge-weight mapping for `SelLayoutSolver`.
3851
+ */
3852
+ export enum SelWeightMapping {
3853
+ Sigmoid = 0,
3854
+ Linear = 1,
3855
+ Tanh = 2,
3856
+ CustomLogistic = 3,
3857
+ Binary = 4,
3858
+ }
3859
+
3415
3860
  /**
3416
3861
  * One-dimensional separation constraint enforcing `coord[left] + gap <= coord[right]`.
3417
3862
  */
@@ -3436,6 +3881,14 @@ export class SeparationConstraint {
3436
3881
  readonly right: number;
3437
3882
  }
3438
3883
 
3884
+ /**
3885
+ * r" Space-filling curve ordering for `SfcLayout`.
3886
+ */
3887
+ export enum SfcCurveKind {
3888
+ Hilbert = 0,
3889
+ Morton = 1,
3890
+ }
3891
+
3439
3892
  /**
3440
3893
  * Canonical community-ordered Space-Filling Curve (`SFC`) layout generator (`f32`).
3441
3894
  */
@@ -3449,7 +3902,7 @@ export class SfcLayout {
3449
3902
  /**
3450
3903
  * Constructs an `SfcLayout` generator from `graph` and optional `SfcOptions`.
3451
3904
  */
3452
- constructor(graph: CsrGraph, options: any);
3905
+ constructor(graph: Graph, options: any);
3453
3906
  /**
3454
3907
  * Returns the deterministic community-ordered vertex permutation (`Uint32Array`).
3455
3908
  */
@@ -3466,40 +3919,56 @@ export class SfcLayout {
3466
3919
  export class Sgd2Solver {
3467
3920
  free(): void;
3468
3921
  [Symbol.dispose](): void;
3469
- _run2d(layout: Layout2d): string;
3470
- _run3d(layout: Layout3d): string;
3471
- _runManifold(layout: ManifoldLayout2d): string;
3472
- _runNd(layout: LayoutNd): string;
3473
- _runScheduleWindow2d(layout: Layout2d, start_iter: number, count: number): string;
3474
- _runScheduleWindow3d(layout: Layout3d, start_iter: number, count: number): string;
3475
- _runScheduleWindowManifold(layout: ManifoldLayout2d, start_iter: number, count: number): string;
3476
- _runScheduleWindowNd(layout: LayoutNd, start_iter: number, count: number): string;
3477
- _runSteps2d(layout: Layout2d, steps: number): string;
3478
- _runSteps3d(layout: Layout3d, steps: number): string;
3479
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
3480
- _runStepsNd(layout: LayoutNd, steps: number): string;
3481
- _step2d(layout: Layout2d): string;
3482
- _step3d(layout: Layout3d): string;
3483
- _stepManifold(layout: ManifoldLayout2d): string;
3484
- _stepNd(layout: LayoutNd): string;
3922
+ _run2d(layout: Layout2d): SolverStatus;
3923
+ _run3d(layout: Layout3d): SolverStatus;
3924
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
3925
+ _runNd(layout: LayoutNd): SolverStatus;
3926
+ _runScheduleWindow2d(layout: Layout2d, start_iter: number, count: number): SolverStatus;
3927
+ _runScheduleWindow3d(layout: Layout3d, start_iter: number, count: number): SolverStatus;
3928
+ _runScheduleWindowManifold(layout: ManifoldLayout2d, start_iter: number, count: number): SolverStatus;
3929
+ _runScheduleWindowNd(layout: LayoutNd, start_iter: number, count: number): SolverStatus;
3930
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
3931
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
3932
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
3933
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
3934
+ _step2d(layout: Layout2d): SolverStatus;
3935
+ _step3d(layout: Layout3d): SolverStatus;
3936
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
3937
+ _stepNd(layout: LayoutNd): SolverStatus;
3485
3938
  /**
3486
3939
  * Constructs a preconditioned mini-batch stress SGD solver from `graph` and `Sgd2Options`.
3487
3940
  */
3488
- constructor(graph: CsrGraph, options: any);
3941
+ constructor(graph: Graph, options: any);
3489
3942
  /**
3490
3943
  * Resets the iteration schedule and RNG without reallocating stored pair buffers.
3491
3944
  */
3492
3945
  resetSchedule(options: any): void;
3946
+ readonly batchSize: number;
3493
3947
  readonly currentEta: number;
3948
+ readonly damping: number;
3949
+ readonly eps: number;
3494
3950
  readonly isFinished: boolean;
3495
3951
  readonly iteration: number;
3496
3952
  readonly numNodes: number;
3497
3953
  readonly numSprings: number;
3498
- readonly status: string;
3499
- readonly target: string;
3954
+ readonly status: SolverStatus;
3955
+ readonly stepScale: number;
3956
+ readonly target: TargetKind;
3500
3957
  readonly totalIterations: number | undefined;
3501
3958
  }
3502
3959
 
3960
+ /**
3961
+ * r" Step-size annealing schedule kind for `SgdSolver`.
3962
+ */
3963
+ export enum SgdScheduleKind {
3964
+ Exponential = 0,
3965
+ Linear = 1,
3966
+ Quadratic = 2,
3967
+ Reciprocal = 3,
3968
+ Constant = 4,
3969
+ Squared = 5,
3970
+ }
3971
+
3503
3972
  /**
3504
3973
  * Cooperative SoA `u32` SGD solver supporting full APSP, explicit pairs, packed symmetric pairs,
3505
3974
  * random-pair sampling, Omega, streaming negatives, 3-tier sparse barrier, and Ortmann Sparse
@@ -3511,67 +3980,67 @@ export class SgdSolver {
3511
3980
  /**
3512
3981
  * Runs 2D Euclidean SGD optimization to completion in place.
3513
3982
  */
3514
- _run2d(layout: Layout2d): string;
3983
+ _run2d(layout: Layout2d): SolverStatus;
3515
3984
  /**
3516
3985
  * Runs 3D Euclidean SGD optimization to completion in place.
3517
3986
  */
3518
- _run3d(layout: Layout3d): string;
3987
+ _run3d(layout: Layout3d): SolverStatus;
3519
3988
  /**
3520
3989
  * Runs non-Euclidean manifold SGD optimization to completion in place.
3521
3990
  */
3522
- _runManifold(layout: ManifoldLayout2d): string;
3991
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
3523
3992
  /**
3524
3993
  * Runs N-D Euclidean SGD optimization to completion in place.
3525
3994
  */
3526
- _runNd(layout: LayoutNd): string;
3995
+ _runNd(layout: LayoutNd): SolverStatus;
3527
3996
  /**
3528
3997
  * Executes `count` 2D Euclidean SGD iterations over schedule indices `startIter..startIter + count`.
3529
3998
  */
3530
- _runScheduleWindow2d(layout: Layout2d, start_iter: number, count: number): string;
3999
+ _runScheduleWindow2d(layout: Layout2d, start_iter: number, count: number): SolverStatus;
3531
4000
  /**
3532
4001
  * Executes `count` 3D Euclidean SGD iterations over schedule indices `startIter..startIter + count`.
3533
4002
  */
3534
- _runScheduleWindow3d(layout: Layout3d, start_iter: number, count: number): string;
4003
+ _runScheduleWindow3d(layout: Layout3d, start_iter: number, count: number): SolverStatus;
3535
4004
  /**
3536
4005
  * Executes `count` Manifold SGD iterations over schedule indices `startIter..startIter + count`.
3537
4006
  */
3538
- _runScheduleWindowManifold(layout: ManifoldLayout2d, start_iter: number, count: number): string;
4007
+ _runScheduleWindowManifold(layout: ManifoldLayout2d, start_iter: number, count: number): SolverStatus;
3539
4008
  /**
3540
4009
  * Executes `count` N-D Euclidean SGD iterations over schedule indices `startIter..startIter + count`.
3541
4010
  */
3542
- _runScheduleWindowNd(layout: LayoutNd, start_iter: number, count: number): string;
4011
+ _runScheduleWindowNd(layout: LayoutNd, start_iter: number, count: number): SolverStatus;
3543
4012
  /**
3544
4013
  * Executes up to `steps` 2D Euclidean SGD iterations in place.
3545
4014
  */
3546
- _runSteps2d(layout: Layout2d, steps: number): string;
4015
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
3547
4016
  /**
3548
4017
  * Executes up to `steps` 3D Euclidean SGD iterations in place.
3549
4018
  */
3550
- _runSteps3d(layout: Layout3d, steps: number): string;
4019
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
3551
4020
  /**
3552
4021
  * Executes up to `steps` non-Euclidean manifold SGD iterations in place.
3553
4022
  */
3554
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
4023
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
3555
4024
  /**
3556
4025
  * Executes up to `steps` N-D Euclidean SGD iterations in place.
3557
4026
  */
3558
- _runStepsNd(layout: LayoutNd, steps: number): string;
4027
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
3559
4028
  /**
3560
4029
  * Executes one 2D Euclidean SGD iteration in place.
3561
4030
  */
3562
- _step2d(layout: Layout2d): string;
4031
+ _step2d(layout: Layout2d): SolverStatus;
3563
4032
  /**
3564
4033
  * Executes one 3D Euclidean SGD iteration in place.
3565
4034
  */
3566
- _step3d(layout: Layout3d): string;
4035
+ _step3d(layout: Layout3d): SolverStatus;
3567
4036
  /**
3568
4037
  * Executes one non-Euclidean manifold SGD iteration in place.
3569
4038
  */
3570
- _stepManifold(layout: ManifoldLayout2d): string;
4039
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
3571
4040
  /**
3572
4041
  * Executes one N-D Euclidean SGD iteration in place.
3573
4042
  */
3574
- _stepNd(layout: LayoutNd): string;
4043
+ _stepNd(layout: LayoutNd): SolverStatus;
3575
4044
  /**
3576
4045
  * Returns regularized DoG Varadhan landmark diagnostics `DogStats` when constructed via
3577
4046
  * `sparseBarrierDog`, or `undefined` otherwise.
@@ -3595,23 +4064,32 @@ export class SgdSolver {
3595
4064
  /**
3596
4065
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
3597
4066
  */
3598
- static full(graph: CsrGraph, options: any): SgdSolver;
4067
+ static full(graph: Graph, options: any): SgdSolver;
3599
4068
  /**
3600
4069
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
3601
4070
  */
3602
- constructor(graph: CsrGraph, options: any);
4071
+ constructor(graph: Graph, options: any);
3603
4072
  /**
3604
- * Constructs an Omega SGD solver from a flat row-major `(numNodes, dims)` spectral embedding.
4073
+ * Constructs an Onoue (2026) Omega resistance-distance SGD solver combining 1-hop edges with
4074
+ * `k` randomly sampled partner pairs per node using Euclidean distances in a flat row-major
4075
+ * `(numNodes, dims)` spectral embedding.
3605
4076
  */
3606
- static omega(graph: CsrGraph, embedding: Float64Array | number[], dims: number, options: any): SgdSolver;
4077
+ static omega(graph: Graph, embedding: Float64Array | number[], dims: number, options: any): SgdSolver;
4078
+ /**
4079
+ * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver from preselected `pivots`
4080
+ * and a precomputed pivot-major `(pivots.length * numNodes)` distance buffer
4081
+ * (`Float64Array`/`Uint32Array`/`Uint16Array`/`Uint8Array`/`number[]`).
4082
+ */
4083
+ static ortmannSparseStressFromPivots(graph: Graph, pivots: any, pivot_distances_kn: any, options: any): SgdSolver;
3607
4084
  /**
3608
4085
  * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver.
3609
4086
  */
3610
- static ortmannSparseStress(graph: CsrGraph, options: any): SgdSolver;
4087
+ static ortmannSparseStress(graph: Graph, options: any): SgdSolver;
3611
4088
  /**
3612
- * Constructs a random-pair sparse SGD solver combining 1-hop edges with sampled random pairs.
4089
+ * Constructs an Onoue (2026) random-pair sparse stress SGD solver combining 1-hop edges with
4090
+ * sampled random pairs using exact shortest-path distances.
3613
4091
  */
3614
- static randomPair(graph: CsrGraph, options: any): SgdSolver;
4092
+ static randomPair(graph: Graph, options: any): SgdSolver;
3615
4093
  /**
3616
4094
  * Resets the SGD learning-rate schedule and RNG without reallocating stored pair buffers.
3617
4095
  */
@@ -3619,11 +4097,11 @@ export class SgdSolver {
3619
4097
  /**
3620
4098
  * Computes regularized Chebyshev DoG Varadhan landmarks and constructs a 3-tier Sparse Barrier SGD solver.
3621
4099
  */
3622
- static sparseBarrierDog(graph: CsrGraph, options: any): SgdSolver;
4100
+ static sparseBarrierDog(graph: Graph, options: any): SgdSolver;
3623
4101
  /**
3624
4102
  * Constructs a 3-tier Sparse Barrier SGD solver from precomputed `DogVaradhanLandmarks`.
3625
4103
  */
3626
- static sparseBarrierFromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
4104
+ static sparseBarrierFromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
3627
4105
  /**
3628
4106
  * Returns `SparseBarrierStats` when constructed via `sparseBarrierFromLandmarks` or
3629
4107
  * `sparseBarrierDog`, or `undefined` otherwise.
@@ -3632,7 +4110,7 @@ export class SgdSolver {
3632
4110
  /**
3633
4111
  * Constructs a minimal-RAM SGD solver storing 1-hop springs and streaming non-edge negatives.
3634
4112
  */
3635
- static streamingNegatives(graph: CsrGraph, options: any): SgdSolver;
4113
+ static streamingNegatives(graph: Graph, options: any): SgdSolver;
3636
4114
  /**
3637
4115
  * Returns the learning rate `eta` for the upcoming iteration (`0.0` once finished).
3638
4116
  */
@@ -3662,17 +4140,17 @@ export class SgdSolver {
3662
4140
  */
3663
4141
  readonly numSprings: number;
3664
4142
  /**
3665
- * Returns the solver lifecycle status string.
4143
+ * Returns the solver lifecycle status.
3666
4144
  */
3667
- readonly status: string;
4145
+ readonly status: SolverStatus;
3668
4146
  /**
3669
4147
  * Returns `true` when this solver targets `ManifoldLayout2d`.
3670
4148
  */
3671
4149
  readonly supportsManifold: boolean;
3672
4150
  /**
3673
- * Returns the configured layout target kind (`'layout2d' | 'layout3d' | 'layoutNd' | 'manifold2d'`).
4151
+ * Returns the configured layout `TargetKind`.
3674
4152
  */
3675
- readonly target: string;
4153
+ readonly target: TargetKind;
3676
4154
  /**
3677
4155
  * Returns the scheduled maximum iteration count (`iterations`), if fixed.
3678
4156
  */
@@ -3685,31 +4163,42 @@ export class SgdSolver {
3685
4163
  export class SnapTFdpSolver {
3686
4164
  free(): void;
3687
4165
  [Symbol.dispose](): void;
3688
- _run2d(layout: Layout2d): string;
3689
- _run3d(layout: Layout3d): string;
3690
- _runManifold(layout: ManifoldLayout2d): string;
3691
- _runNd(layout: LayoutNd): string;
3692
- _runSteps2d(layout: Layout2d, steps: number): string;
3693
- _runSteps3d(layout: Layout3d, steps: number): string;
3694
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
3695
- _runStepsNd(layout: LayoutNd, steps: number): string;
3696
- _step2d(layout: Layout2d): string;
3697
- _step3d(layout: Layout3d): string;
3698
- _stepManifold(layout: ManifoldLayout2d): string;
3699
- _stepNd(layout: LayoutNd): string;
4166
+ _run2d(layout: Layout2d): SolverStatus;
4167
+ _run3d(layout: Layout3d): SolverStatus;
4168
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
4169
+ _runNd(layout: LayoutNd): SolverStatus;
4170
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
4171
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
4172
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
4173
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
4174
+ _step2d(layout: Layout2d): SolverStatus;
4175
+ _step3d(layout: Layout3d): SolverStatus;
4176
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
4177
+ _stepNd(layout: LayoutNd): SolverStatus;
3700
4178
  /**
3701
4179
  * Constructs a `SnapTFdpSolver` from `graph` and `SnapTFdpOptions`.
3702
4180
  */
3703
- constructor(graph: CsrGraph, options: any);
4181
+ constructor(graph: Graph, options: any);
3704
4182
  readonly isFinished: boolean;
3705
4183
  readonly iteration: number;
3706
4184
  readonly numNodes: number;
3707
4185
  readonly numSprings: number;
3708
- readonly status: string;
3709
- readonly target: string;
4186
+ readonly status: SolverStatus;
4187
+ readonly target: TargetKind;
3710
4188
  readonly totalIterations: number | undefined;
3711
4189
  }
3712
4190
 
4191
+ /**
4192
+ * r" Cooperative iterative solver lifecycle status.
4193
+ */
4194
+ export enum SolverStatus {
4195
+ Initialized = 0,
4196
+ Running = 1,
4197
+ Converged = 2,
4198
+ Completed = 3,
4199
+ Failed = 4,
4200
+ }
4201
+
3713
4202
  /**
3714
4203
  * Extracted canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays (`u < v`).
3715
4204
  */
@@ -3834,15 +4323,15 @@ export class SpatialIntruderRefiner {
3834
4323
  /**
3835
4324
  * Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
3836
4325
  */
3837
- constructor(graph: CsrGraph, options: any);
4326
+ constructor(graph: Graph, options: any);
3838
4327
  /**
3839
4328
  * Executes up to `steps` refinement rounds on `layout` in place.
3840
4329
  */
3841
- runSteps(layout: Layout2d, steps: number): string;
4330
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
3842
4331
  /**
3843
4332
  * Runs refinement rounds to completion or early convergence on `layout` in place.
3844
4333
  */
3845
- run(layout: Layout2d): string;
4334
+ run(layout: Layout2d): SolverStatus;
3846
4335
  /**
3847
4336
  * Updates the active-set neighborhood cap `kCap` for subsequent refinement rounds.
3848
4337
  */
@@ -3854,7 +4343,7 @@ export class SpatialIntruderRefiner {
3854
4343
  /**
3855
4344
  * Executes one active-set refinement round on `layout` in place.
3856
4345
  */
3857
- step(layout: Layout2d): string;
4346
+ step(layout: Layout2d): SolverStatus;
3858
4347
  /**
3859
4348
  * Returns the current dynamic active-set neighborhood cap `kCap`.
3860
4349
  */
@@ -3872,9 +4361,9 @@ export class SpatialIntruderRefiner {
3872
4361
  */
3873
4362
  readonly numNodes: number;
3874
4363
  /**
3875
- * Returns the solver lifecycle status string.
4364
+ * Returns the solver lifecycle status (`SolverStatus`).
3876
4365
  */
3877
- readonly status: string;
4366
+ readonly status: SolverStatus;
3878
4367
  /**
3879
4368
  * Returns the maximum scheduled refinement rounds.
3880
4369
  */
@@ -4113,7 +4602,16 @@ export class StressEvaluation {
4113
4602
  }
4114
4603
 
4115
4604
  /**
4116
- * Cooperative Gansner-Koren-North (2004) Stress Majorization layout solver (`f32`)
4605
+ * r" Solver backend selector for `StressMajorizationSolver`.
4606
+ */
4607
+ export enum StressMajorizationBackend {
4608
+ Auto = 0,
4609
+ EuclideanPcg = 1,
4610
+ GeodesicGradient = 2,
4611
+ }
4612
+
4613
+ /**
4614
+ * Cooperative Gansner, Koren, & North (2005) Stress Majorization layout solver (`f32`)
4117
4615
  * across `Layout2d`, `Layout3d`, `LayoutNd`, and `ManifoldLayout2d`.
4118
4616
  */
4119
4617
  export class StressMajorizationSolver {
@@ -4123,18 +4621,18 @@ export class StressMajorizationSolver {
4123
4621
  _computeStress3d(layout: Layout3d): number;
4124
4622
  _computeStressManifold(layout: ManifoldLayout2d): number;
4125
4623
  _computeStressNd(layout: LayoutNd): number;
4126
- _run2d(layout: Layout2d): string;
4127
- _run3d(layout: Layout3d): string;
4128
- _runManifold(layout: ManifoldLayout2d): string;
4129
- _runNd(layout: LayoutNd): string;
4130
- _runSteps2d(layout: Layout2d, steps: number): string;
4131
- _runSteps3d(layout: Layout3d, steps: number): string;
4132
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
4133
- _runStepsNd(layout: LayoutNd, steps: number): string;
4134
- _step2d(layout: Layout2d): string;
4135
- _step3d(layout: Layout3d): string;
4136
- _stepManifold(layout: ManifoldLayout2d): string;
4137
- _stepNd(layout: LayoutNd): string;
4624
+ _run2d(layout: Layout2d): SolverStatus;
4625
+ _run3d(layout: Layout3d): SolverStatus;
4626
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
4627
+ _runNd(layout: LayoutNd): SolverStatus;
4628
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
4629
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
4630
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
4631
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
4632
+ _step2d(layout: Layout2d): SolverStatus;
4633
+ _step3d(layout: Layout3d): SolverStatus;
4634
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
4635
+ _stepNd(layout: LayoutNd): SolverStatus;
4138
4636
  /**
4139
4637
  * Constructs a `StressMajorizationSolver` from a flat row-major `(numNodes, numNodes)` distance matrix.
4140
4638
  */
@@ -4142,21 +4640,31 @@ export class StressMajorizationSolver {
4142
4640
  /**
4143
4641
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
4144
4642
  */
4145
- static fromGraph(graph: CsrGraph, options: any): StressMajorizationSolver;
4643
+ static fromGraph(graph: Graph, options: any): StressMajorizationSolver;
4146
4644
  /**
4147
4645
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
4148
4646
  */
4149
- constructor(graph: CsrGraph, options: any);
4150
- readonly backend: string;
4647
+ constructor(graph: Graph, options: any);
4648
+ readonly backend: StressMajorizationBackend;
4151
4649
  readonly isFinished: boolean;
4152
4650
  readonly iteration: number;
4153
4651
  readonly lastStress: number | undefined;
4154
4652
  readonly numNodes: number;
4155
- readonly status: string;
4156
- readonly target: string;
4653
+ readonly status: SolverStatus;
4654
+ readonly target: TargetKind;
4157
4655
  readonly totalIterations: number | undefined;
4158
4656
  }
4159
4657
 
4658
+ /**
4659
+ * r" Target 2D geometry suggested by link resistance curvature flow.
4660
+ */
4661
+ export enum SuggestedGeometry {
4662
+ Hyperbolic = 0,
4663
+ Spherical = 1,
4664
+ Torus = 2,
4665
+ Euclidean = 3,
4666
+ }
4667
+
4160
4668
  /**
4161
4669
  * Cooperative bounded Student-$t$ force-directed placement (`t-FDP`) solver (`f32`)
4162
4670
  * supporting `ibFft`, `barnesHut`, and `exact` repulsion backends across 2D, 3D, and N-D.
@@ -4164,36 +4672,46 @@ export class StressMajorizationSolver {
4164
4672
  export class TFdpSolver {
4165
4673
  free(): void;
4166
4674
  [Symbol.dispose](): void;
4167
- _run2d(layout: Layout2d): string;
4168
- _run3d(layout: Layout3d): string;
4169
- _runNd(layout: LayoutNd): string;
4170
- _runSteps2d(layout: Layout2d, steps: number): string;
4171
- _runSteps3d(layout: Layout3d, steps: number): string;
4172
- _runStepsNd(layout: LayoutNd, steps: number): string;
4173
- _step2d(layout: Layout2d): string;
4174
- _step3d(layout: Layout3d): string;
4175
- _stepNd(layout: LayoutNd): string;
4675
+ _run2d(layout: Layout2d): SolverStatus;
4676
+ _run3d(layout: Layout3d): SolverStatus;
4677
+ _runNd(layout: LayoutNd): SolverStatus;
4678
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
4679
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
4680
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
4681
+ _step2d(layout: Layout2d): SolverStatus;
4682
+ _step3d(layout: Layout3d): SolverStatus;
4683
+ _stepNd(layout: LayoutNd): SolverStatus;
4176
4684
  /**
4177
4685
  * Constructs a `TFdpSolver` from a `KnnGraph` (`fromKnn(knn, options?)`) or CSR slices
4178
4686
  * (`fromKnn(indptr, indices, weights?, options?)`).
4179
4687
  */
4180
4688
  static fromKnn(knn_or_indptr: any, indices_or_options: any, weights_or_options: any, options: any): TFdpSolver;
4181
4689
  /**
4182
- * Constructs a `TFdpSolver` directly from a `CsrGraph`.
4690
+ * Constructs a `TFdpSolver` directly from a `Graph`.
4183
4691
  */
4184
- constructor(graph: CsrGraph, options: any);
4185
- readonly backend: string;
4692
+ constructor(graph: Graph, options: any);
4693
+ readonly backend: FieldRepulsionBackend;
4186
4694
  readonly currentRho: number;
4187
4695
  readonly isFinished: boolean;
4188
4696
  readonly iteration: number;
4189
4697
  readonly numEdges: number;
4190
4698
  readonly numNodes: number;
4191
- readonly status: string;
4192
- readonly target: string;
4699
+ readonly status: SolverStatus;
4700
+ readonly target: TargetKind;
4193
4701
  readonly totalFft2dCalls: number;
4194
4702
  readonly totalIterations: number | undefined;
4195
4703
  }
4196
4704
 
4705
+ /**
4706
+ * r" Coordinate buffer target geometry for solvers and layout generators.
4707
+ */
4708
+ export enum TargetKind {
4709
+ Layout2d = 0,
4710
+ Layout3d = 1,
4711
+ LayoutNd = 2,
4712
+ Manifold2d = 3,
4713
+ }
4714
+
4197
4715
  /**
4198
4716
  * Periodic `[0, 1)^2` torus crossing edge sub-segment pair returned by `crossingEdgesTorus`.
4199
4717
  */
@@ -4220,31 +4738,46 @@ export class TorusCrossing {
4220
4738
  readonly v2: number;
4221
4739
  }
4222
4740
 
4741
+ /**
4742
+ * r" Repulsion backend selector for `TsNetSolver`.
4743
+ */
4744
+ export enum TsNetBackend {
4745
+ Auto = 0,
4746
+ Auto2d = 1,
4747
+ Auto3d = 2,
4748
+ Exact = 3,
4749
+ BarnesHut = 4,
4750
+ FitFft = 5,
4751
+ LinearFft = 6,
4752
+ }
4753
+
4223
4754
  /**
4224
4755
  * Cooperative unified tsNET / BH-tsNET / FIt-tsNET / L-tsNET solver (`f32`).
4225
4756
  */
4226
4757
  export class TsNetSolver {
4227
4758
  free(): void;
4228
4759
  [Symbol.dispose](): void;
4229
- _run2d(layout: Layout2d): string;
4230
- _run3d(layout: Layout3d): string;
4231
- _runManifold(layout: ManifoldLayout2d): string;
4232
- _runNd(layout: LayoutNd): string;
4233
- _runSteps2d(layout: Layout2d, steps: number): string;
4234
- _runSteps3d(layout: Layout3d, steps: number): string;
4235
- _runStepsManifold(layout: ManifoldLayout2d, steps: number): string;
4236
- _runStepsNd(layout: LayoutNd, steps: number): string;
4237
- _step2d(layout: Layout2d): string;
4238
- _step3d(layout: Layout3d): string;
4239
- _stepManifold(layout: ManifoldLayout2d): string;
4240
- _stepNd(layout: LayoutNd): string;
4241
- static fromGraphPartialBfs(graph: CsrGraph, options: any): TsNetSolver;
4760
+ static _fromProbabilitiesWithConformalNoAnchor(probs: SparseProbabilities, stages: any, edge_tether: any, options: any): TsNetSolver;
4761
+ static _fromProbabilitiesWithConformalWithAnchor(probs: SparseProbabilities, stages: any, edge_tether: any, metric_anchor: UnifiedMetricAnchor, options: any): TsNetSolver;
4762
+ _run2d(layout: Layout2d): SolverStatus;
4763
+ _run3d(layout: Layout3d): SolverStatus;
4764
+ _runManifold(layout: ManifoldLayout2d): SolverStatus;
4765
+ _runNd(layout: LayoutNd): SolverStatus;
4766
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
4767
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
4768
+ _runStepsManifold(layout: ManifoldLayout2d, steps: number): SolverStatus;
4769
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
4770
+ _step2d(layout: Layout2d): SolverStatus;
4771
+ _step3d(layout: Layout3d): SolverStatus;
4772
+ _stepManifold(layout: ManifoldLayout2d): SolverStatus;
4773
+ _stepNd(layout: LayoutNd): SolverStatus;
4774
+ static fromGraphPartialBfs(graph: Graph, options: any): TsNetSolver;
4242
4775
  /**
4243
4776
  * Constructs a `TsNetSolver` from `graph` using direct row-normalized `A1 + w2 * A2`
4244
4777
  * affinity with configurable 2-hop sampling `mode` and optional `maxBridgeDegree`.
4245
4778
  */
4246
- static fromGraphRowNormalizedWithOptions(graph: CsrGraph, options: any): TsNetSolver;
4247
- static fromGraphRowNormalized(graph: CsrGraph, options: any): TsNetSolver;
4779
+ static fromGraphRowNormalizedWithOptions(graph: Graph, options: any): TsNetSolver;
4780
+ static fromGraphRowNormalized(graph: Graph, options: any): TsNetSolver;
4248
4781
  static fromKnn(knn: KnnGraph, options: any): TsNetSolver;
4249
4782
  /**
4250
4783
  * Constructs a `TsNetSolver` from precomputed symmetric `SparseProbabilities` and explicit `stages`.
@@ -4252,18 +4785,18 @@ export class TsNetSolver {
4252
4785
  static fromProbabilitiesWithStages(probs: SparseProbabilities, stages: any, options: any): TsNetSolver;
4253
4786
  static fromProbabilities(probs: SparseProbabilities, options: any): TsNetSolver;
4254
4787
  lastFftStats(): FitFieldStats | undefined;
4255
- constructor(graph: CsrGraph, options: any);
4256
- static pure2Hop(graph: CsrGraph, options: any): TsNetSolver;
4257
- readonly backend: string;
4788
+ constructor(graph: Graph, options: any);
4789
+ static pure2Hop(graph: Graph, options: any): TsNetSolver;
4790
+ readonly backend: TsNetBackend;
4258
4791
  readonly currentStageLr: number;
4259
4792
  readonly isFinished: boolean;
4260
4793
  readonly iteration: number;
4261
4794
  readonly numNodes: number;
4262
- readonly resolvedBackend: string;
4263
- readonly samplingMode: string | undefined;
4795
+ readonly resolvedBackend: TsNetBackend;
4796
+ readonly samplingMode: TwoHopSamplingMode | undefined;
4264
4797
  readonly stageIndex: number;
4265
- readonly status: string;
4266
- readonly target: string;
4798
+ readonly status: SolverStatus;
4799
+ readonly target: TargetKind;
4267
4800
  readonly totalFft2dCalls: number;
4268
4801
  readonly totalIterations: number | undefined;
4269
4802
  }
@@ -4278,11 +4811,15 @@ export class TsNetStage {
4278
4811
  * Constructs a validated `TsNetStage` from `(iterations, options?)` or `{ iterations, ... }`.
4279
4812
  */
4280
4813
  constructor(iterations_or_options: any, options: any);
4814
+ readonly coercive1hop: number;
4281
4815
  readonly exaggeration: number;
4282
4816
  readonly iterations: number;
4283
4817
  readonly lambdaC: number;
4284
4818
  readonly lambdaKl: number;
4819
+ readonly lambdaMetric: number;
4285
4820
  readonly lambdaR: number;
4821
+ readonly spring1hop: number;
4822
+ readonly springDeadzone: number;
4286
4823
  }
4287
4824
 
4288
4825
  /**
@@ -4312,13 +4849,13 @@ export class TwoHopCsr {
4312
4849
  free(): void;
4313
4850
  [Symbol.dispose](): void;
4314
4851
  /**
4315
- * Returns a cloned handle to the canonical unweighted 1-hop `CsrGraph`.
4852
+ * Returns a cloned handle to the canonical unweighted 1-hop `Graph`.
4316
4853
  */
4317
- hop1(): CsrGraph;
4854
+ hop1(): Graph;
4318
4855
  /**
4319
- * Returns a cloned handle to the disjoint pure 2-hop `CsrGraph`.
4856
+ * Returns a cloned handle to the disjoint pure 2-hop `Graph`.
4320
4857
  */
4321
- hop2(): CsrGraph;
4858
+ hop2(): Graph;
4322
4859
  }
4323
4860
 
4324
4861
  /**
@@ -4362,33 +4899,86 @@ export class TwoHopKnnResult {
4362
4899
  readonly nnz: number;
4363
4900
  }
4364
4901
 
4902
+ /**
4903
+ * r" 2-hop pair sampling strategy for sparse 1+2-hop neighborhood extraction.
4904
+ */
4905
+ export enum TwoHopSamplingMode {
4906
+ DegreeOrderedHubSuppressed = 0,
4907
+ TwoStepRandomWalk = 1,
4908
+ }
4909
+
4910
+ /**
4911
+ * Persistent scale-aligned global metric skeleton anchor for conformal `TsNetSolver`.
4912
+ */
4913
+ export class UnifiedMetricAnchor {
4914
+ private constructor();
4915
+ free(): void;
4916
+ [Symbol.dispose](): void;
4917
+ /**
4918
+ * Builds a `UnifiedMetricAnchor` from a flat row-major `(numNodes, dim)` continuous embedding.
4919
+ */
4920
+ static fromEmbeddingPivots(embedding_row_major: any, num_nodes: number, dim: number, pivots: any, options: any): UnifiedMetricAnchor;
4921
+ /**
4922
+ * Builds a `UnifiedMetricAnchor` from floating-point shortest-path pivot distances (`Infinity` unreachable).
4923
+ */
4924
+ static fromF64Pivots(num_nodes: number, pivots: any, pivot_distances: any, options: any): UnifiedMetricAnchor;
4925
+ /**
4926
+ * Builds a `UnifiedMetricAnchor` from integer hop-distance pivot rows (`Uint32Array`/`Uint16Array`/`Uint8Array`).
4927
+ */
4928
+ static fromHopPivots(num_nodes: number, pivots: any, pivot_distances: any, options: any): UnifiedMetricAnchor;
4929
+ /**
4930
+ * Returns the flat pivot-major ideal distances (`Float32Array`, `<= 0.0` inactive).
4931
+ */
4932
+ pivotDistances(): Float32Array;
4933
+ /**
4934
+ * Returns the selected anchor pivot vertex indices (`Uint32Array`).
4935
+ */
4936
+ pivots(): Uint32Array;
4937
+ /**
4938
+ * Returns the flat pivot-major normalized anchor weights (`Float32Array`).
4939
+ */
4940
+ weights(): Float32Array;
4941
+ readonly activeFraction: number;
4942
+ readonly numNodes: number;
4943
+ readonly scaleAlpha: number;
4944
+ readonly softEps: number;
4945
+ readonly sumWd2: number;
4946
+ }
4947
+
4948
+ /**
4949
+ * r" Scalar edge-weight storage precision supported by WebAssembly `Graph`.
4950
+ */
4951
+ export enum WeightDtype {
4952
+ Float32 = 0,
4953
+ }
4954
+
4365
4955
  /**
4366
4956
  * Cooperative multilevel Yifan Hu (2005) force-directed layout solver (`f32`).
4367
4957
  */
4368
4958
  export class YifanHuSolver {
4369
4959
  free(): void;
4370
4960
  [Symbol.dispose](): void;
4371
- _run2d(layout: Layout2d): string;
4372
- _run3d(layout: Layout3d): string;
4373
- _runNd(layout: LayoutNd): string;
4374
- _runSteps2d(layout: Layout2d, steps: number): string;
4375
- _runSteps3d(layout: Layout3d, steps: number): string;
4376
- _runStepsNd(layout: LayoutNd, steps: number): string;
4377
- _step2d(layout: Layout2d): string;
4378
- _step3d(layout: Layout3d): string;
4379
- _stepNd(layout: LayoutNd): string;
4961
+ _run2d(layout: Layout2d): SolverStatus;
4962
+ _run3d(layout: Layout3d): SolverStatus;
4963
+ _runNd(layout: LayoutNd): SolverStatus;
4964
+ _runSteps2d(layout: Layout2d, steps: number): SolverStatus;
4965
+ _runSteps3d(layout: Layout3d, steps: number): SolverStatus;
4966
+ _runStepsNd(layout: LayoutNd, steps: number): SolverStatus;
4967
+ _step2d(layout: Layout2d): SolverStatus;
4968
+ _step3d(layout: Layout3d): SolverStatus;
4969
+ _stepNd(layout: LayoutNd): SolverStatus;
4380
4970
  /**
4381
4971
  * Constructs a `YifanHuSolver` from `graph` and optional `YifanHuOptions`.
4382
4972
  */
4383
- constructor(graph: CsrGraph, options: any);
4384
- readonly backend: string;
4973
+ constructor(graph: Graph, options: any);
4974
+ readonly backend: ForceBackend;
4385
4975
  readonly currentLevel: number;
4386
4976
  readonly isFinished: boolean;
4387
4977
  readonly iteration: number;
4388
4978
  readonly numLevels: number;
4389
4979
  readonly numNodes: number;
4390
- readonly status: string;
4391
- readonly target: string;
4980
+ readonly status: SolverStatus;
4981
+ readonly target: TargetKind;
4392
4982
  readonly totalIterations: number | undefined;
4393
4983
  }
4394
4984
 
@@ -4419,12 +5009,12 @@ export function _cqKmeansNd(layout: LayoutNd, labels: any, options: any): Partit
4419
5009
  /**
4420
5010
  * Finds all crossing edge sub-segment pairs on the unit torus `[0, 1)^2` for `Layout2d`.
4421
5011
  */
4422
- export function _crossingEdgesTorus2d(graph: CsrGraph, layout: Layout2d): TorusCrossing[];
5012
+ export function _crossingEdgesTorus2d(graph: Graph, layout: Layout2d): TorusCrossing[];
4423
5013
 
4424
5014
  /**
4425
5015
  * Finds all crossing edge sub-segment pairs on the flat torus for `ManifoldLayout2d` (`torus2d`).
4426
5016
  */
4427
- export function _crossingEdgesTorusManifold(graph: CsrGraph, layout: ManifoldLayout2d): TorusCrossing[];
5017
+ export function _crossingEdgesTorusManifold(graph: Graph, layout: ManifoldLayout2d): TorusCrossing[];
4428
5018
 
4429
5019
  export function _daviesBouldinScore2d(layout: Layout2d, labels: any): number;
4430
5020
 
@@ -4437,13 +5027,13 @@ export function _daviesBouldinScoreNd(layout: LayoutNd, labels: any): number;
4437
5027
  /**
4438
5028
  * Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
4439
5029
  */
4440
- export function _dggPreservation2d(graph: CsrGraph, layout: Layout2d): number;
5030
+ export function _dggPreservation2d(graph: Graph, layout: Layout2d): number;
4441
5031
 
4442
- export function _dggPreservation3d(graph: CsrGraph, layout: Layout3d): number;
5032
+ export function _dggPreservation3d(graph: Graph, layout: Layout3d): number;
4443
5033
 
4444
- export function _dggPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5034
+ export function _dggPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
4445
5035
 
4446
- export function _dggPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
5036
+ export function _dggPreservationNd(graph: Graph, layout: LayoutNd): number;
4447
5037
 
4448
5038
  export function _distanceConsistency2d(layout: Layout2d, labels: any): number;
4449
5039
 
@@ -4464,38 +5054,38 @@ export function _distributionConsistencyNd(layout: LayoutNd, labels: any, option
4464
5054
  /**
4465
5055
  * Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
4466
5056
  */
4467
- export function _drngPreservation2d(graph: CsrGraph, layout: Layout2d): number;
5057
+ export function _drngPreservation2d(graph: Graph, layout: Layout2d): number;
4468
5058
 
4469
- export function _drngPreservation3d(graph: CsrGraph, layout: Layout3d): number;
5059
+ export function _drngPreservation3d(graph: Graph, layout: Layout3d): number;
4470
5060
 
4471
- export function _drngPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5061
+ export function _drngPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
4472
5062
 
4473
- export function _drngPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
5063
+ export function _drngPreservationNd(graph: Graph, layout: LayoutNd): number;
4474
5064
 
4475
5065
  /**
4476
5066
  * Selectively evaluates quality metrics on `Layout2d` without an `originalLayout`.
4477
5067
  */
4478
- export function _evaluateMetrics2d(graph: CsrGraph, layout: Layout2d, targets: any, options: any): MetricReport;
5068
+ export function _evaluateMetrics2d(graph: Graph, layout: Layout2d, targets: any, options: any): MetricReport;
4479
5069
 
4480
5070
  /**
4481
5071
  * Selectively evaluates quality metrics on `Layout2d` with a reference `originalLayout`.
4482
5072
  */
4483
- export function _evaluateMetrics2dWithOriginal(graph: CsrGraph, layout: Layout2d, targets: any, options: any, original_layout: Layout2d): MetricReport;
5073
+ export function _evaluateMetrics2dWithOriginal(graph: Graph, layout: Layout2d, targets: any, options: any, original_layout: Layout2d): MetricReport;
4484
5074
 
4485
5075
  /**
4486
5076
  * Selectively evaluates quality metrics on `Layout3d`, skipping unrequested work.
4487
5077
  */
4488
- export function _evaluateMetrics3d(graph: CsrGraph, layout: Layout3d, targets: any, options: any): MetricReport;
5078
+ export function _evaluateMetrics3d(graph: Graph, layout: Layout3d, targets: any, options: any): MetricReport;
4489
5079
 
4490
5080
  /**
4491
5081
  * Selectively evaluates quality metrics on `ManifoldLayout2d`, skipping unrequested work.
4492
5082
  */
4493
- export function _evaluateMetricsManifold(graph: CsrGraph, layout: ManifoldLayout2d, targets: any, options: any): MetricReport;
5083
+ export function _evaluateMetricsManifold(graph: Graph, layout: ManifoldLayout2d, targets: any, options: any): MetricReport;
4494
5084
 
4495
5085
  /**
4496
5086
  * Selectively evaluates quality metrics on `LayoutNd`, skipping unrequested work.
4497
5087
  */
4498
- export function _evaluateMetricsNd(graph: CsrGraph, layout: LayoutNd, targets: any, options: any): MetricReport;
5088
+ export function _evaluateMetricsNd(graph: Graph, layout: LayoutNd, targets: any, options: any): MetricReport;
4499
5089
 
4500
5090
  /**
4501
5091
  * Extracts exact undirected Gabriel Graph (`GG`) edges as flat `[u0, v0, ...]` (`Uint32Array`).
@@ -4511,47 +5101,47 @@ export function _gabrielGraphEdgesNd(layout: LayoutNd): Uint32Array;
4511
5101
  /**
4512
5102
  * Computes Gabriel graph condition violations across `graph` edges under `layout`.
4513
5103
  */
4514
- export function _gabrielGraphProperty2d(graph: CsrGraph, layout: Layout2d): number;
5104
+ export function _gabrielGraphProperty2d(graph: Graph, layout: Layout2d): number;
4515
5105
 
4516
- export function _gabrielGraphProperty3d(graph: CsrGraph, layout: Layout3d): number;
5106
+ export function _gabrielGraphProperty3d(graph: Graph, layout: Layout3d): number;
4517
5107
 
4518
- export function _gabrielGraphPropertyManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5108
+ export function _gabrielGraphPropertyManifold(graph: Graph, layout: ManifoldLayout2d): number;
4519
5109
 
4520
- export function _gabrielGraphPropertyNd(graph: CsrGraph, layout: LayoutNd): number;
5110
+ export function _gabrielGraphPropertyNd(graph: Graph, layout: LayoutNd): number;
4521
5111
 
4522
5112
  /**
4523
5113
  * Evaluates ideal edge-length preservation error sum for `graph` under `layout`.
4524
5114
  */
4525
- export function _idealEdgeLengths2d(graph: CsrGraph, layout: Layout2d): number;
5115
+ export function _idealEdgeLengths2d(graph: Graph, layout: Layout2d): number;
4526
5116
 
4527
- export function _idealEdgeLengths3d(graph: CsrGraph, layout: Layout3d): number;
5117
+ export function _idealEdgeLengths3d(graph: Graph, layout: Layout3d): number;
4528
5118
 
4529
- export function _idealEdgeLengthsManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5119
+ export function _idealEdgeLengthsManifold(graph: Graph, layout: ManifoldLayout2d): number;
4530
5120
 
4531
- export function _idealEdgeLengthsNd(graph: CsrGraph, layout: LayoutNd): number;
5121
+ export function _idealEdgeLengthsNd(graph: Graph, layout: LayoutNd): number;
4532
5122
 
4533
5123
  /**
4534
5124
  * Evaluates ideal edge-length preservation error against a uniform `unitEdgeLength > 0`.
4535
5125
  */
4536
- export function _idealEdgeLengthsWithUnit2d(graph: CsrGraph, layout: Layout2d, unit_edge_length: number): number;
5126
+ export function _idealEdgeLengthsWithUnit2d(graph: Graph, layout: Layout2d, unit_edge_length: number): number;
4537
5127
 
4538
- export function _idealEdgeLengthsWithUnit3d(graph: CsrGraph, layout: Layout3d, unit_edge_length: number): number;
5128
+ export function _idealEdgeLengthsWithUnit3d(graph: Graph, layout: Layout3d, unit_edge_length: number): number;
4539
5129
 
4540
- export function _idealEdgeLengthsWithUnitManifold(graph: CsrGraph, layout: ManifoldLayout2d, unit_edge_length: number): number;
5130
+ export function _idealEdgeLengthsWithUnitManifold(graph: Graph, layout: ManifoldLayout2d, unit_edge_length: number): number;
4541
5131
 
4542
- export function _idealEdgeLengthsWithUnitNd(graph: CsrGraph, layout: LayoutNd, unit_edge_length: number): number;
5132
+ export function _idealEdgeLengthsWithUnitNd(graph: Graph, layout: LayoutNd, unit_edge_length: number): number;
4543
5133
 
4544
- export function _landmarkStratifiedRta2d(graph: CsrGraph, layout: Layout2d, options: any): number;
5134
+ export function _landmarkStratifiedRta2d(graph: Graph, layout: Layout2d, options: any): number;
4545
5135
 
4546
- export function _landmarkStratifiedRta3d(graph: CsrGraph, layout: Layout3d, options: any): number;
5136
+ export function _landmarkStratifiedRta3d(graph: Graph, layout: Layout3d, options: any): number;
4547
5137
 
4548
- export function _landmarkStratifiedRtaDetail2d(graph: CsrGraph, layout: Layout2d, options: any): RtaEvaluation;
5138
+ export function _landmarkStratifiedRtaDetail2d(graph: Graph, layout: Layout2d, options: any): RtaEvaluation;
4549
5139
 
4550
- export function _landmarkStratifiedRtaDetail3d(graph: CsrGraph, layout: Layout3d, options: any): RtaEvaluation;
5140
+ export function _landmarkStratifiedRtaDetail3d(graph: Graph, layout: Layout3d, options: any): RtaEvaluation;
4551
5141
 
4552
- export function _landmarkStratifiedRtaDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): RtaEvaluation;
5142
+ export function _landmarkStratifiedRtaDetailManifold(graph: Graph, layout: ManifoldLayout2d, options: any): RtaEvaluation;
4553
5143
 
4554
- export function _landmarkStratifiedRtaDetailNd(graph: CsrGraph, layout: LayoutNd, options: any): RtaEvaluation;
5144
+ export function _landmarkStratifiedRtaDetailNd(graph: Graph, layout: LayoutNd, options: any): RtaEvaluation;
4555
5145
 
4556
5146
  export function _landmarkStratifiedRtaFromLandmarks2d(layout: Layout2d, landmark_ids: any, landmark_dists: any, options: any): RtaEvaluation;
4557
5147
 
@@ -4561,20 +5151,20 @@ export function _landmarkStratifiedRtaFromLandmarksManifold(layout: ManifoldLayo
4561
5151
 
4562
5152
  export function _landmarkStratifiedRtaFromLandmarksNd(layout: LayoutNd, landmark_ids: any, landmark_dists: any, options: any): RtaEvaluation;
4563
5153
 
4564
- export function _landmarkStratifiedRtaManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5154
+ export function _landmarkStratifiedRtaManifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4565
5155
 
4566
- export function _landmarkStratifiedRtaNd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5156
+ export function _landmarkStratifiedRtaNd(graph: Graph, layout: LayoutNd, options: any): number;
4567
5157
 
4568
5158
  /**
4569
5159
  * Evaluates duplicate-node (`f32`/`f64`), zero-length edge, and bounding-box degeneracies.
4570
5160
  */
4571
- export function _layoutDegeneracy2d(graph: CsrGraph, layout: Layout2d): LayoutDegeneracy;
5161
+ export function _layoutDegeneracy2d(graph: Graph, layout: Layout2d): LayoutDegeneracy;
4572
5162
 
4573
- export function _layoutDegeneracy3d(graph: CsrGraph, layout: Layout3d): LayoutDegeneracy;
5163
+ export function _layoutDegeneracy3d(graph: Graph, layout: Layout3d): LayoutDegeneracy;
4574
5164
 
4575
- export function _layoutDegeneracyManifold(graph: CsrGraph, layout: ManifoldLayout2d): LayoutDegeneracy;
5165
+ export function _layoutDegeneracyManifold(graph: Graph, layout: ManifoldLayout2d): LayoutDegeneracy;
4576
5166
 
4577
- export function _layoutDegeneracyNd(graph: CsrGraph, layout: LayoutNd): LayoutDegeneracy;
5167
+ export function _layoutDegeneracyNd(graph: Graph, layout: LayoutNd): LayoutDegeneracy;
4578
5168
 
4579
5169
  export function _neighborhoodHit2d(layout: Layout2d, labels: any, options: any): number;
4580
5170
 
@@ -4587,24 +5177,24 @@ export function _neighborhoodHitNd(layout: LayoutNd, labels: any, options: any):
4587
5177
  /**
4588
5178
  * Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
4589
5179
  */
4590
- export function _neighborhoodPreservation1Hop2d(graph: CsrGraph, layout: Layout2d): number;
5180
+ export function _neighborhoodPreservation1Hop2d(graph: Graph, layout: Layout2d): number;
4591
5181
 
4592
- export function _neighborhoodPreservation1Hop3d(graph: CsrGraph, layout: Layout3d): number;
5182
+ export function _neighborhoodPreservation1Hop3d(graph: Graph, layout: Layout3d): number;
4593
5183
 
4594
- export function _neighborhoodPreservation1HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5184
+ export function _neighborhoodPreservation1HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
4595
5185
 
4596
- export function _neighborhoodPreservation1HopNd(graph: CsrGraph, layout: LayoutNd): number;
5186
+ export function _neighborhoodPreservation1HopNd(graph: Graph, layout: LayoutNd): number;
4597
5187
 
4598
5188
  /**
4599
5189
  * Computes `StaticKdTree`-accelerated 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]`.
4600
5190
  */
4601
- export function _neighborhoodPreservation2Hop2d(graph: CsrGraph, layout: Layout2d): number;
5191
+ export function _neighborhoodPreservation2Hop2d(graph: Graph, layout: Layout2d): number;
4602
5192
 
4603
- export function _neighborhoodPreservation2Hop3d(graph: CsrGraph, layout: Layout3d): number;
5193
+ export function _neighborhoodPreservation2Hop3d(graph: Graph, layout: Layout3d): number;
4604
5194
 
4605
- export function _neighborhoodPreservation2HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5195
+ export function _neighborhoodPreservation2HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
4606
5196
 
4607
- export function _neighborhoodPreservation2HopNd(graph: CsrGraph, layout: LayoutNd): number;
5197
+ export function _neighborhoodPreservation2HopNd(graph: Graph, layout: LayoutNd): number;
4608
5198
 
4609
5199
  /**
4610
5200
  * Computes the one-sided hinge node-resolution violation sum of `layout`.
@@ -4639,53 +5229,53 @@ export function _relativeNeighborhoodEdgesNd(layout: LayoutNd): Uint32Array;
4639
5229
  /**
4640
5230
  * Estimates 1-hop neighborhood preservation (`NP1`) via vertex sampling (`options?: { numSamples?, seed? }`).
4641
5231
  */
4642
- export function _sampledNp12d(graph: CsrGraph, layout: Layout2d, options: any): number;
5232
+ export function _sampledNp12d(graph: Graph, layout: Layout2d, options: any): number;
4643
5233
 
4644
- export function _sampledNp13d(graph: CsrGraph, layout: Layout3d, options: any): number;
5234
+ export function _sampledNp13d(graph: Graph, layout: Layout3d, options: any): number;
4645
5235
 
4646
- export function _sampledNp1Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5236
+ export function _sampledNp1Manifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4647
5237
 
4648
- export function _sampledNp1Nd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5238
+ export function _sampledNp1Nd(graph: Graph, layout: LayoutNd, options: any): number;
4649
5239
 
4650
5240
  /**
4651
5241
  * Estimates 2-hop neighborhood preservation (`NP2`) via vertex sampling (`options?: { numSamples?, seed? }`).
4652
5242
  */
4653
- export function _sampledNp22d(graph: CsrGraph, layout: Layout2d, options: any): number;
5243
+ export function _sampledNp22d(graph: Graph, layout: Layout2d, options: any): number;
4654
5244
 
4655
- export function _sampledNp23d(graph: CsrGraph, layout: Layout3d, options: any): number;
5245
+ export function _sampledNp23d(graph: Graph, layout: Layout3d, options: any): number;
4656
5246
 
4657
- export function _sampledNp2Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5247
+ export function _sampledNp2Manifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4658
5248
 
4659
- export function _sampledNp2Nd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5249
+ export function _sampledNp2Nd(graph: Graph, layout: LayoutNd, options: any): number;
4660
5250
 
4661
5251
  /**
4662
5252
  * Computes $O(kN)$ pivot-sampled Scale-Normalized Stress (`SNS`) (`options?: { numPivots?, seed? }`).
4663
5253
  */
4664
- export function _sampledScaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d, options: any): number;
5254
+ export function _sampledScaleNormalizedStress2d(graph: Graph, layout: Layout2d, options: any): number;
4665
5255
 
4666
- export function _sampledScaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d, options: any): number;
5256
+ export function _sampledScaleNormalizedStress3d(graph: Graph, layout: Layout3d, options: any): number;
4667
5257
 
4668
- export function _sampledScaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5258
+ export function _sampledScaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4669
5259
 
4670
- export function _sampledScaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5260
+ export function _sampledScaleNormalizedStressNd(graph: Graph, layout: LayoutNd, options: any): number;
4671
5261
 
4672
5262
  /**
4673
5263
  * Computes closed-form Scale-Normalized Stress (`SNS`) in `[0.0, 1.0]` for `graph` and `layout`.
4674
5264
  */
4675
- export function _scaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d): number;
5265
+ export function _scaleNormalizedStress2d(graph: Graph, layout: Layout2d): number;
4676
5266
 
4677
- export function _scaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d): number;
5267
+ export function _scaleNormalizedStress3d(graph: Graph, layout: Layout3d): number;
4678
5268
 
4679
5269
  /**
4680
5270
  * Computes detailed closed-form Scale-Normalized Stress (`SNS`) diagnostics for `graph` and `layout`.
4681
5271
  */
4682
- export function _scaleNormalizedStressDetail2d(graph: CsrGraph, layout: Layout2d): StressEvaluation;
5272
+ export function _scaleNormalizedStressDetail2d(graph: Graph, layout: Layout2d): StressEvaluation;
4683
5273
 
4684
- export function _scaleNormalizedStressDetail3d(graph: CsrGraph, layout: Layout3d): StressEvaluation;
5274
+ export function _scaleNormalizedStressDetail3d(graph: Graph, layout: Layout3d): StressEvaluation;
4685
5275
 
4686
- export function _scaleNormalizedStressDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d): StressEvaluation;
5276
+ export function _scaleNormalizedStressDetailManifold(graph: Graph, layout: ManifoldLayout2d): StressEvaluation;
4687
5277
 
4688
- export function _scaleNormalizedStressDetailNd(graph: CsrGraph, layout: LayoutNd): StressEvaluation;
5278
+ export function _scaleNormalizedStressDetailNd(graph: Graph, layout: LayoutNd): StressEvaluation;
4689
5279
 
4690
5280
  /**
4691
5281
  * Computes closed-form Scale-Normalized Stress (`SNS`) from a flat row-major `N * N` `distances`
@@ -4699,9 +5289,9 @@ export function _scaleNormalizedStressFromDistancesManifold(layout: ManifoldLayo
4699
5289
 
4700
5290
  export function _scaleNormalizedStressFromDistancesNd(layout: LayoutNd, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
4701
5291
 
4702
- export function _scaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5292
+ export function _scaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d): number;
4703
5293
 
4704
- export function _scaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd): number;
5294
+ export function _scaleNormalizedStressNd(graph: Graph, layout: LayoutNd): number;
4705
5295
 
4706
5296
  export function _sepmeGab2d(layout: Layout2d, labels: any): number;
4707
5297
 
@@ -4746,22 +5336,22 @@ export function _silhouetteScoreNd(layout: LayoutNd, labels: any): number;
4746
5336
  /**
4747
5337
  * Counts non-adjacent edge sub-segment crossings on the flat unit torus `[0, 1)^2` for `Layout2d`.
4748
5338
  */
4749
- export function _torusCrossingNumber2d(graph: CsrGraph, layout: Layout2d): number;
5339
+ export function _torusCrossingNumber2d(graph: Graph, layout: Layout2d): number;
4750
5340
 
4751
5341
  /**
4752
5342
  * Counts non-adjacent edge sub-segment crossings on the flat torus for `ManifoldLayout2d` (`torus2d`).
4753
5343
  */
4754
- export function _torusCrossingNumberManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5344
+ export function _torusCrossingNumberManifold(graph: Graph, layout: ManifoldLayout2d): number;
4755
5345
 
4756
5346
  /**
4757
5347
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `Layout2d`.
4758
5348
  */
4759
- export function _torusLayoutEdgeSegments2d(graph: CsrGraph, layout: Layout2d): Float64Array;
5349
+ export function _torusLayoutEdgeSegments2d(graph: Graph, layout: Layout2d): Float64Array;
4760
5350
 
4761
5351
  /**
4762
5352
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `ManifoldLayout2d`.
4763
5353
  */
4764
- export function _torusLayoutEdgeSegmentsManifold(graph: CsrGraph, layout: ManifoldLayout2d): Float64Array;
5354
+ export function _torusLayoutEdgeSegmentsManifold(graph: Graph, layout: ManifoldLayout2d): Float64Array;
4765
5355
 
4766
5356
  /**
4767
5357
  * Returns adaptive Chebyshev polynomial degree for diffusion time `t`.
@@ -4803,22 +5393,22 @@ export function alignClusteredCentroids(fine_layout: Layout2d, coarse_layout: La
4803
5393
  /**
4804
5394
  * Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
4805
5395
  */
4806
- export function allPairsBfs(graph: CsrGraph, unit_edge_length?: number | null): Float64Array;
5396
+ export function allPairsBfs(graph: Graph, unit_edge_length?: number | null): Float64Array;
4807
5397
 
4808
5398
  /**
4809
5399
  * Computes the flat row-major `(numNodes, numNodes)` all-pairs Dijkstra distance matrix (`Float64Array`).
4810
5400
  */
4811
- export function allPairsDijkstra(graph: CsrGraph): Float64Array;
5401
+ export function allPairsDijkstra(graph: Graph): Float64Array;
4812
5402
 
4813
5403
  /**
4814
5404
  * Computes the exponential angular-resolution penalty sum over incident edge pairs.
4815
5405
  */
4816
- export function angularResolution(graph: CsrGraph, layout: Layout2d): number;
5406
+ export function angularResolution(graph: Graph, layout: Layout2d): number;
4817
5407
 
4818
5408
  /**
4819
5409
  * Constructs a symmetric PSD Coifman-Lafon anisotropic graph Laplacian `L_aniso`.
4820
5410
  */
4821
- export function anisotropicLaplacian(graph: CsrGraph, options: any): AnisotropicLaplacianResult;
5411
+ export function anisotropicLaplacian(graph: Graph, options: any): AnisotropicLaplacianResult;
4822
5412
 
4823
5413
  /**
4824
5414
  * Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
@@ -4832,19 +5422,19 @@ export function applyRelativeDistanceFloor(d1: Float64Array, d2: Float64Array, d
4832
5422
  export function aspectRatio(layout: Layout2d): number;
4833
5423
 
4834
5424
  /**
4835
- * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `CsrGraph`.
5425
+ * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `Graph`.
4836
5426
  */
4837
- export function assignLayers(graph: CsrGraph, method: any): Uint32Array;
5427
+ export function assignLayers(graph: Graph, method: any): Uint32Array;
4838
5428
 
4839
5429
  /**
4840
5430
  * Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
4841
5431
  */
4842
- export function bfsSingleSource(graph: CsrGraph, source: number, unit_edge_length?: number | null): Float64Array;
5432
+ export function bfsSingleSource(graph: Graph, source: number, unit_edge_length?: number | null): Float64Array;
4843
5433
 
4844
5434
  /**
4845
5435
  * Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
4846
5436
  */
4847
- export function buildCapped12hopKnn(graph: CsrGraph, max_2hop_per_node: number | null | undefined, seed: any): TwoHopKnnResult;
5437
+ export function buildCapped12hopKnn(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): TwoHopKnnResult;
4848
5438
 
4849
5439
  /**
4850
5440
  * Builds 2-term Difference-of-Gaussians filter terms `[[1 - betaFloor, t1], [-alpha * (1 - betaFloor), t2]]`.
@@ -4860,12 +5450,12 @@ export function buildGumap12hopPriorityCsr(num_nodes: number, u1: Uint32Array |
4860
5450
  /**
4861
5451
  * Builds a hybrid 1+2-hop + two-step coarse `StaticKdTree` + full-$D$ reranked `KnnGraph`.
4862
5452
  */
4863
- export function buildHybridAdaptiveKnn(graph: CsrGraph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options: any): HybridKnnResult;
5453
+ export function buildHybridAdaptiveKnn(graph: Graph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options: any): HybridKnnResult;
4864
5454
 
4865
5455
  /**
4866
5456
  * Builds a pure 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
4867
5457
  */
4868
- export function buildPure2hopKnn(graph: CsrGraph): TwoHopKnnResult;
5458
+ export function buildPure2hopKnn(graph: Graph): TwoHopKnnResult;
4869
5459
 
4870
5460
  /**
4871
5461
  * Builds parameter-free R1 regularized DoG terms from $\sigma_\lambda$.
@@ -4881,7 +5471,7 @@ export function buildRerankKnn(coords: Float64Array | number[], num_nodes: numbe
4881
5471
  /**
4882
5472
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`.
4883
5473
  */
4884
- export function chebyshevDogJlEmbedding(graph: CsrGraph, options: any): Float64Array;
5474
+ export function chebyshevDogJlEmbedding(graph: Graph, options: any): Float64Array;
4885
5475
 
4886
5476
  /**
4887
5477
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`
@@ -4892,7 +5482,7 @@ export function chebyshevDogJlEmbeddingMatrix(matrix: CsrMatrix, options: any):
4892
5482
  /**
4893
5483
  * Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
4894
5484
  */
4895
- export function chebyshevHeatSpmv(graph: CsrGraph, vectors: Float64Array | number[], num_cols: number, t: number, options: any): Float64Array;
5485
+ export function chebyshevHeatSpmv(graph: Graph, vectors: Float64Array | number[], num_cols: number, t: number, options: any): Float64Array;
4896
5486
 
4897
5487
  /**
4898
5488
  * Applies Chebyshev heat diffusion $\exp(-t A)$ to a row-major `(numNodes, numCols)` buffer
@@ -4908,12 +5498,12 @@ export function classDensityMeasure(layout: Layout2d, labels: any, options: any)
4908
5498
  /**
4909
5499
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`, default `dims = 2`).
4910
5500
  */
4911
- export function classicalMds(graph: CsrGraph, dims?: number | null): LayoutNd;
5501
+ export function classicalMds(graph: Graph, dims?: number | null): LayoutNd;
4912
5502
 
4913
5503
  /**
4914
5504
  * Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
4915
5505
  */
4916
- export function classicalMds2d(graph: CsrGraph): Layout2d;
5506
+ export function classicalMds2d(graph: Graph): Layout2d;
4917
5507
 
4918
5508
  /**
4919
5509
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`) from a flat `(numNodes, numNodes)`
@@ -4934,22 +5524,22 @@ export function clusterAreaFaithfulnessDetail(layout: Layout2d, labels: any, opt
4934
5524
  /**
4935
5525
  * Runs coarse Louvain edge-length-first area reservation and non-SPD backbone initialization.
4936
5526
  */
4937
- export function coarseBackboneInit(graph: CsrGraph, options: any): CoarseBackboneResult;
5527
+ export function coarseBackboneInit(graph: Graph, options: any): CoarseBackboneResult;
4938
5528
 
4939
5529
  /**
4940
- * Coarsens an undirected `CsrGraph` by contracting vertices that share a cluster label.
5530
+ * Coarsens an undirected `Graph` by contracting vertices that share a cluster label.
4941
5531
  */
4942
- export function coarsenGraph(graph: CsrGraph, labels: Uint32Array | number[]): CoarsenedGraphResult;
5532
+ export function coarsenGraph(graph: Graph, labels: Uint32Array | number[]): CoarsenedGraphResult;
4943
5533
 
4944
5534
  /**
4945
5535
  * Builds the combinatorial graph Laplacian $L = D - A$ as a `CsrMatrix`.
4946
5536
  */
4947
- export function combinatorialLaplacian(graph: CsrGraph): CsrMatrix;
5537
+ export function combinatorialLaplacian(graph: Graph): CsrMatrix;
4948
5538
 
4949
5539
  /**
4950
5540
  * Computes exact distinct 1-hop + 2-hop neighborhood sizes $|B_2(u) \setminus \{u\}|$.
4951
5541
  */
4952
- export function compute2hopNeighborhoodSizes(graph: CsrGraph): Uint32Array;
5542
+ export function compute2hopNeighborhoodSizes(graph: Graph): Uint32Array;
4953
5543
 
4954
5544
  /**
4955
5545
  * Computes Chebyshev expansion coefficients for $\sum_m w_m \exp(-t_m \lambda)$ over `[0, lambdaMax]`.
@@ -4959,18 +5549,18 @@ export function computeChebyshevBandpassCoefficients(terms: any, lambda_max?: nu
4959
5549
  /**
4960
5550
  * Computes heat-diffusion spectral embedding $D^{-1/2} U \exp(-0.5 t \Lambda)$.
4961
5551
  */
4962
- export function computeDiffusionEmbedding(graph: CsrGraph, options: any): SpectralEmbeddingResult;
5552
+ export function computeDiffusionEmbedding(graph: Graph, options: any): SpectralEmbeddingResult;
4963
5553
 
4964
5554
  /**
4965
5555
  * Computes effective edge resistances and Foster's theorem diagnostics via exact pseudoinverse
4966
5556
  * (for small graphs) or Spielman-Srivastava JL projection solved with `AmgPcgSolver`.
4967
5557
  */
4968
- export function computeEffectiveResistances(graph: CsrGraph, options: any): EffectiveResistanceResult;
5558
+ export function computeEffectiveResistances(graph: Graph, options: any): EffectiveResistanceResult;
4969
5559
 
4970
5560
  /**
4971
5561
  * Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
4972
5562
  */
4973
- export function computeFuzzySimplicialSet(knn: KnnGraph, sigma_iters?: number | null, sigma_tolerance?: number | null): SparseProbabilities;
5563
+ export function computeFuzzySimplicialSet(knn: KnnGraph, sigma_iters_or_options: any, sigma_tolerance?: number | null, fuzzy_threshold?: number | null): SparseProbabilities;
4974
5564
 
4975
5565
  /**
4976
5566
  * Computes parameter-free Horvitz-Thompson repulsion scaling $\gamma_{\mathrm{eff}}$.
@@ -4985,69 +5575,69 @@ export function computeKnnProbabilities(knn: KnnGraph, perplexities: Float64Arra
4985
5575
  /**
4986
5576
  * Computes scalar median 2-hop adaptive perplexity.
4987
5577
  */
4988
- export function computeMedian2hopPerplexity(graph: CsrGraph, options: any): number;
5578
+ export function computeMedian2hopPerplexity(graph: Graph, options: any): number;
4989
5579
 
4990
5580
  /**
4991
5581
  * Computes per-node 2-hop adaptive perplexities.
4992
5582
  */
4993
- export function computeNodewise2hopPerplexities(graph: CsrGraph, options: any): Float64Array;
5583
+ export function computeNodewise2hopPerplexities(graph: Graph, options: any): Float64Array;
4994
5584
 
4995
5585
  /**
4996
5586
  * Computes pure-Rust pivoted `RHGH` landmark tables via `AmgPcgSolver` + JL diagonal probes.
4997
5587
  */
4998
- export function computePivotedRhghLandmarks(graph: CsrGraph, options: any): RhghLandmarksResult;
5588
+ export function computePivotedRhghLandmarks(graph: Graph, options: any): RhghLandmarksResult;
4999
5589
 
5000
5590
  /**
5001
5591
  * Computes pure-Rust pivoted `RHGH` landmark distances as `{ landmarks: RhghLandmarks, result: RhghLandmarksResult }`.
5002
5592
  */
5003
- export function computePivotedRhghLandmarksResult(graph: CsrGraph, options: any): RhghLandmarks;
5593
+ export function computePivotedRhghLandmarksResult(graph: Graph, options: any): RhghLandmarks;
5004
5594
 
5005
5595
  /**
5006
5596
  * Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
5007
5597
  */
5008
- export function computeRegularizedDogVaradhanLandmarks(graph: CsrGraph, options: any): DogVaradhanLandmarks;
5598
+ export function computeRegularizedDogVaradhanLandmarks(graph: Graph, options: any): DogVaradhanLandmarks;
5009
5599
 
5010
5600
  /**
5011
5601
  * Computes regularized DoG Varadhan landmark tables from a custom symmetric PSD `CsrMatrix`
5012
5602
  * with dynamic `[0, lambdaMax]` spectrum scaling.
5013
5603
  */
5014
- export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: CsrGraph, matrix: CsrMatrix, options: any): DogVaradhanLandmarks;
5604
+ export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: Graph, matrix: CsrMatrix, options: any): DogVaradhanLandmarks;
5015
5605
 
5016
5606
  /**
5017
- * Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
5607
+ * Computes an Onoue (2026) effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
5018
5608
  */
5019
- export function computeResistanceEmbedding(graph: CsrGraph, options: any): SpectralEmbeddingResult;
5609
+ export function computeResistanceEmbedding(graph: Graph, options: any): SpectralEmbeddingResult;
5020
5610
 
5021
5611
  /**
5022
5612
  * Returns all non-adjacent crossing edge pairs in `graph` under `layout`.
5023
5613
  */
5024
- export function crossingEdges(graph: CsrGraph, layout: Layout2d): CrossingPair[];
5614
+ export function crossingEdges(graph: Graph, layout: Layout2d): CrossingPair[];
5025
5615
 
5026
5616
  /**
5027
5617
  * Finds all hyperbolic geodesic crossing pairs on `HyperbolicPoincare` or `HyperbolicLorentz`.
5028
5618
  */
5029
- export function crossingEdgesHyperbolic(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
5619
+ export function crossingEdgesHyperbolic(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
5030
5620
 
5031
5621
  /**
5032
5622
  * Finds all shortest great-circle geodesic arc crossing pairs on `ManifoldKind::Spherical`.
5033
5623
  */
5034
- export function crossingEdgesSpherical(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
5624
+ export function crossingEdgesSpherical(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
5035
5625
 
5036
5626
  /**
5037
5627
  * Computes both exact crossing count and crossing-angle statistics in a single sweep pass.
5038
5628
  */
5039
- export function crossingSummary(graph: CsrGraph, layout: Layout2d): CrossingSummary;
5629
+ export function crossingSummary(graph: Graph, layout: Layout2d): CrossingSummary;
5040
5630
 
5041
5631
  /**
5042
5632
  * Computes exact DRGraph Eq. (17) crosslessness $1 - \sqrt{c / c_{\max}} \in [0.0, 1.0]$.
5043
5633
  */
5044
- export function crosslessness(graph: CsrGraph, layout: Layout2d): number;
5634
+ export function crosslessness(graph: Graph, layout: Layout2d): number;
5045
5635
 
5046
5636
  /**
5047
5637
  * Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
5048
5638
  * returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
5049
5639
  */
5050
- export function cycleEdges(graph: CsrGraph): Uint32Array;
5640
+ export function cycleEdges(graph: Graph): Uint32Array;
5051
5641
 
5052
5642
  /**
5053
5643
  * Returns static `DatasetInfo` records for all built-in benchmark datasets.
@@ -5065,9 +5655,9 @@ export function datasetInfo(name: string): DatasetInfo | undefined;
5065
5655
  export function declutterTwins2d(layout: Layout2d, options: any): number;
5066
5656
 
5067
5657
  /**
5068
- * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `CsrGraph`.
5658
+ * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `Graph`.
5069
5659
  */
5070
- export function delaunayToCsr(layout: Layout2d): CsrGraph;
5660
+ export function delaunayToCsr(layout: Layout2d): Graph;
5071
5661
 
5072
5662
  /**
5073
5663
  * Computes the deterministic 2D Delaunay triangulation of `layout`.
@@ -5077,7 +5667,7 @@ export function delaunayTriangulation(layout: Layout2d): DelaunayResult;
5077
5667
  /**
5078
5668
  * Computes weighted single-source Dijkstra shortest-path distances from `source` (`Float64Array`).
5079
5669
  */
5080
- export function dijkstraSingleSource(graph: CsrGraph, source: number): Float64Array;
5670
+ export function dijkstraSingleSource(graph: Graph, source: number): Float64Array;
5081
5671
 
5082
5672
  /**
5083
5673
  * Computes the undirected angle in `[0.0, pi]` radians between 2D vectors `(x1, y1)` and `(x2, y2)`,
@@ -5088,43 +5678,48 @@ export function edgeAngle(x1: number, y1: number, x2: number, y2: number): numbe
5088
5678
  /**
5089
5679
  * Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
5090
5680
  */
5091
- export function extract1hop2hopCsr(graph: CsrGraph): TwoHopCsr;
5681
+ export function extract1hop2hopCsr(graph: Graph): TwoHopCsr;
5682
+
5683
+ /**
5684
+ * Computes continuous degree-normalized 1-hop slack-tether weights aligned with `probs.indices()`.
5685
+ */
5686
+ export function extract1hopTetherWeights(graph: Graph, probs: SparseProbabilities, options: any): Float32Array;
5092
5687
 
5093
5688
  /**
5094
- * Extracts the Quadrilateral Simmelian Backbone from an undirected `CsrGraph`.
5689
+ * Extracts the Quadrilateral Simmelian Backbone from an undirected `Graph`.
5095
5690
  */
5096
- export function extractQuadrilateralBackbone(graph: CsrGraph, options: any): BackboneResult;
5691
+ export function extractQuadrilateralBackbone(graph: Graph, options: any): BackboneResult;
5097
5692
 
5098
5693
  /**
5099
5694
  * Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
5100
5695
  */
5101
- export function extractSparse1hop2hopPairs(graph: CsrGraph, max_2hop_per_node: number | null | undefined, seed: any): Sparse12HopPairs;
5696
+ export function extractSparse1hop2hopPairs(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): Sparse12HopPairs;
5102
5697
 
5103
5698
  /**
5104
5699
  * Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode` and optional `maxBridgeDegree`.
5105
5700
  */
5106
- export function extractSparse1hop2hopPairsWithMode(graph: CsrGraph, options: any): Sparse12HopPairs;
5701
+ export function extractSparse1hop2hopPairsWithMode(graph: Graph, options: any): Sparse12HopPairs;
5107
5702
 
5108
5703
  /**
5109
5704
  * Fits low-dimensional UMAP parameters `[a, b]` from `minDist` and `spread`.
5110
5705
  */
5111
- export function findAbParams(min_dist?: number | null, spread?: number | null): Float64Array;
5706
+ export function findAbParams(min_dist: number | null | undefined, spread: number | null | undefined, options: any): Float64Array;
5112
5707
 
5113
5708
  /**
5114
- * Generates a regular hyperbolic branching tree `CsrGraph` with `branchingFactor` and `depth`.
5709
+ * Generates a regular hyperbolic branching tree `Graph` with `branchingFactor` and `depth`.
5115
5710
  */
5116
- export function generateHyperbolicTree(branching_factor: number, depth: number): CsrGraph;
5711
+ export function generateHyperbolicTree(branching_factor: number, depth: number): Graph;
5117
5712
 
5118
5713
  /**
5119
5714
  * Generates hierarchical separation constraints `y[u] + gap <= y[v]` for directed edges
5120
5715
  * `(u, v)` spanning `layers[u] < layers[v]`.
5121
5716
  */
5122
- export function generateLayeredConstraints(graph: CsrGraph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
5717
+ export function generateLayeredConstraints(graph: Graph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
5123
5718
 
5124
5719
  /**
5125
- * Generates a deterministic layered Directed Acyclic Graph (`CsrGraph`).
5720
+ * Generates a deterministic layered Directed Acyclic Graph (`Graph`).
5126
5721
  */
5127
- export function generateLayeredDag(num_layers: number, nodes_per_layer: number, options: any): CsrGraph;
5722
+ export function generateLayeredDag(num_layers: number, nodes_per_layer: number, options: any): Graph;
5128
5723
 
5129
5724
  /**
5130
5725
  * Generates a deterministic Stochastic Block Model graph returning `{ graph, labels }`.
@@ -5132,60 +5727,60 @@ export function generateLayeredDag(num_layers: number, nodes_per_layer: number,
5132
5727
  export function generateSbmGraph(block_sizes: Uint32Array | number[], options: any): any;
5133
5728
 
5134
5729
  /**
5135
- * Generates a closed UV spherical grid mesh `CsrGraph` with poles and `latitudes x longitudes` rings.
5730
+ * Generates a closed UV spherical grid mesh `Graph` with poles and `latitudes x longitudes` rings.
5136
5731
  */
5137
- export function generateSphericalGrid(latitudes: number, longitudes: number): CsrGraph;
5732
+ export function generateSphericalGrid(latitudes: number, longitudes: number): Graph;
5138
5733
 
5139
5734
  /**
5140
- * Generates a subdivided icosphere spherical geodesic mesh `CsrGraph`.
5735
+ * Generates a subdivided icosphere spherical geodesic mesh `Graph`.
5141
5736
  */
5142
- export function generateSphericalIcosphere(subdivisions?: number | null): CsrGraph;
5737
+ export function generateSphericalIcosphere(subdivisions?: number | null): Graph;
5143
5738
 
5144
5739
  /**
5145
- * Generates a periodic 2D torus mesh `CsrGraph` of size `rows x cols` (`>= 3x3`).
5740
+ * Generates a periodic 2D torus mesh `Graph` of size `rows x cols` (`>= 3x3`).
5146
5741
  */
5147
- export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): CsrGraph;
5742
+ export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): Graph;
5148
5743
 
5149
5744
  /**
5150
- * Generates a deterministic undirected weighted `CsrGraph` with edge weights in `[minWeight, maxWeight]`.
5745
+ * Generates a deterministic undirected weighted `Graph` with edge weights in `[minWeight, maxWeight]`.
5151
5746
  */
5152
- export function generateWeightedGraph(num_nodes: number, options: any): CsrGraph;
5747
+ export function generateWeightedGraph(num_nodes: number, options: any): Graph;
5153
5748
 
5154
5749
  /**
5155
5750
  * Computes Miller et al. (2024) Eq. (2) Geodesic Distortion without post-hoc rescaling
5156
5751
  * on a `ManifoldLayout2d`.
5157
5752
  */
5158
- export function geodesicDistortion(graph: CsrGraph, layout: ManifoldLayout2d): number;
5753
+ export function geodesicDistortion(graph: Graph, layout: ManifoldLayout2d): number;
5159
5754
 
5160
5755
  /**
5161
5756
  * Computes row-normalized symmetrized 1+2-hop probabilities with optional capping and `(d_i d_j)^(-degreeBeta)` decay.
5162
5757
  */
5163
- export function graph12hopRowNormalizedProbabilities(graph: CsrGraph, options: any): SparseProbabilities;
5758
+ export function graph12hopRowNormalizedProbabilities(graph: Graph, options: any): SparseProbabilities;
5164
5759
 
5165
5760
  /**
5166
5761
  * Computes row-normalized symmetrized 1+2-hop probabilities with explicit `TwoHopSamplingMode` and `maxBridgeDegree`.
5167
5762
  */
5168
- export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: CsrGraph, options: any): SparseProbabilities;
5763
+ export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: Graph, options: any): SparseProbabilities;
5169
5764
 
5170
5765
  /**
5171
- * Computes row-normalized symmetrized graph probabilities from a `CsrGraph`.
5766
+ * Computes row-normalized symmetrized graph probabilities from a `Graph`.
5172
5767
  */
5173
- export function graphRowNormalizedProbabilities(graph: CsrGraph): SparseProbabilities;
5768
+ export function graphRowNormalizedProbabilities(graph: Graph): SparseProbabilities;
5174
5769
 
5175
5770
  /**
5176
5771
  * Computes a 2D Harel-Koren High-Dimensional Embedding (`HDE`) `Layout2d` (`f32`).
5177
5772
  */
5178
- export function hde(graph: CsrGraph, options: any): Layout2d;
5773
+ export function hde(graph: Graph, options: any): Layout2d;
5179
5774
 
5180
5775
  /**
5181
5776
  * Computes an $N$-dimensional Harel-Koren High-Dimensional Embedding (`HDE`) `LayoutNd` (`f32`).
5182
5777
  */
5183
- export function hdeNd(graph: CsrGraph, options: any): LayoutNd;
5778
+ export function hdeNd(graph: Graph, options: any): LayoutNd;
5184
5779
 
5185
5780
  /**
5186
5781
  * Counts exact hyperbolic geodesic crossings on `HyperbolicPoincare` or `HyperbolicLorentz`.
5187
5782
  */
5188
- export function hyperbolicCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
5783
+ export function hyperbolicCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
5189
5784
 
5190
5785
  /**
5191
5786
  * Clusters flat row-major `(numNodes, dims)` points with deterministic K-Means++.
@@ -5195,22 +5790,22 @@ export function kmeansPlusPlus(points: Float64Array | number[], num_nodes: numbe
5195
5790
  /**
5196
5791
  * Computes Koren's degree-normalized 2D spectral initialization `Layout2d` (`f32`).
5197
5792
  */
5198
- export function korenSpectralInit(graph: CsrGraph, options: any): Layout2d;
5793
+ export function korenSpectralInit(graph: Graph, options: any): Layout2d;
5199
5794
 
5200
5795
  /**
5201
- * Detects communities on an undirected `CsrGraph` via asynchronous Label Propagation.
5796
+ * Detects communities on an undirected `Graph` via asynchronous Label Propagation.
5202
5797
  */
5203
- export function labelPropagation(graph: CsrGraph, max_iterations: number | null | undefined, seed: any): LabelPropagationResult;
5798
+ export function labelPropagation(graph: Graph, max_iterations: number | null | undefined, seed: any): LabelPropagationResult;
5204
5799
 
5205
5800
  /**
5206
- * Builds a `CsrMatrix` graph Laplacian of the requested `kind` (default `"symmetricNormalized"`).
5801
+ * Builds a `CsrMatrix` graph Laplacian of the requested `kind` (default `LaplacianKind.SymmetricNormalized`).
5207
5802
  */
5208
- export function laplacian(graph: CsrGraph, kind: any): CsrMatrix;
5803
+ export function laplacian(graph: Graph, kind: any): CsrMatrix;
5209
5804
 
5210
5805
  /**
5211
- * Detects communities on an undirected `CsrGraph` via the Leiden algorithm (`Modularity` or `CPM`).
5806
+ * Detects communities on an undirected `Graph` via the Leiden algorithm (`Modularity` or `CPM`).
5212
5807
  */
5213
- export function leidenCommunities(graph: CsrGraph, options: any): LeidenResult;
5808
+ export function leidenCommunities(graph: Graph, options: any): LeidenResult;
5214
5809
 
5215
5810
  /**
5216
5811
  * Returns the canonical names of all built-in benchmark datasets (`string[]`).
@@ -5245,27 +5840,27 @@ export function lorentzToPoincarePoint(x: number, y: number): Float64Array;
5245
5840
  /**
5246
5841
  * Runs multi-level Louvain coarsening with resolution decay up to `maxCoarseNodes`.
5247
5842
  */
5248
- export function louvainCoarsen(graph: CsrGraph, options: any): CoarsenedHierarchyResult;
5843
+ export function louvainCoarsen(graph: Graph, options: any): CoarsenedHierarchyResult;
5249
5844
 
5250
5845
  /**
5251
- * Detects communities on an undirected `CsrGraph` via multi-level Louvain modularity optimization.
5846
+ * Detects communities on an undirected `Graph` via multi-level Louvain modularity optimization.
5252
5847
  */
5253
- export function louvainCommunities(graph: CsrGraph, options: any): LouvainResult;
5848
+ export function louvainCommunities(graph: Graph, options: any): LouvainResult;
5254
5849
 
5255
5850
  /**
5256
5851
  * Computes DRGraph Eq. (19) strict minimum-angle resolution (`A2`) in `[0.0, 1.0]`.
5257
5852
  */
5258
- export function minimumAngle(graph: CsrGraph, layout: Layout2d): number;
5853
+ export function minimumAngle(graph: Graph, layout: Layout2d): number;
5259
5854
 
5260
5855
  /**
5261
5856
  * Computes DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
5262
5857
  */
5263
- export function minimumAngleSummary(graph: CsrGraph, layout: Layout2d): MinimumAngleSummary;
5858
+ export function minimumAngleSummary(graph: Graph, layout: Layout2d): MinimumAngleSummary;
5264
5859
 
5265
5860
  /**
5266
5861
  * Computes all 5 Chen et al. (2020) NOR metrics including graph edge-length distortion (`elRsd`).
5267
5862
  */
5268
- export function norMetrics(graph: CsrGraph, orig_layout: Layout2d, adjusted_layout: Layout2d, half_widths: Float32Array | number[], half_heights: Float32Array | number[]): NorMetricsResult;
5863
+ export function norMetrics(graph: Graph, orig_layout: Layout2d, adjusted_layout: Layout2d, half_widths: Float32Array | number[], half_heights: Float32Array | number[]): NorMetricsResult;
5269
5864
 
5270
5865
  /**
5271
5866
  * Computes Chen et al. (2020) NOR metrics without a graph (`elRsd = 0.0`).
@@ -5278,14 +5873,14 @@ export function norMetricsWithoutGraph(orig_layout: Layout2d, adjusted_layout: L
5278
5873
  export function normalizeLayout2d(layout: Layout2d, target_std: number | null | undefined, seed: any): void;
5279
5874
 
5280
5875
  /**
5281
- * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `CsrGraph`.
5876
+ * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `Graph`.
5282
5877
  */
5283
- export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): CsrGraph;
5878
+ export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): Graph;
5284
5879
 
5285
5880
  /**
5286
5881
  * Computes a $k$-NN graph via Partial BFS with deterministic Fisher-Yates tie-breaking.
5287
5882
  */
5288
- export function partialBfsKnn(graph: CsrGraph, k: number | null | undefined, seed: any): KnnGraph;
5883
+ export function partialBfsKnn(graph: Graph, k: number | null | undefined, seed: any): KnnGraph;
5289
5884
 
5290
5885
  /**
5291
5886
  * Computes `ARI`, `AMI`, `homogeneity`, `completeness`, `vMeasure`, and `fmi` between two labelings.
@@ -5295,7 +5890,7 @@ export function partitionAgreement(labels_true: any, labels_pred: any): Partitio
5295
5890
  /**
5296
5891
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
5297
5892
  */
5298
- export function pivotMds(graph: CsrGraph, options: any): Layout2d;
5893
+ export function pivotMds(graph: Graph, options: any): Layout2d;
5299
5894
 
5300
5895
  /**
5301
5896
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from a flat `(numNodes, numPivots)` distance matrix.
@@ -5305,12 +5900,12 @@ export function pivotMdsFromDistances(distances_nk: Float64Array | number[], num
5305
5900
  /**
5306
5901
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
5307
5902
  */
5308
- export function pivotMdsInit(graph: CsrGraph, options: any): Layout2d;
5903
+ export function pivotMdsInit(graph: Graph, options: any): Layout2d;
5309
5904
 
5310
5905
  /**
5311
5906
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from an explicit slice of `pivots`.
5312
5907
  */
5313
- export function pivotMdsWithPivots(graph: CsrGraph, pivots: Uint32Array | number[], options: any): Layout2d;
5908
+ export function pivotMdsWithPivots(graph: Graph, pivots: Uint32Array | number[], options: any): Layout2d;
5314
5909
 
5315
5910
  /**
5316
5911
  * Computes the Poincaré disk hyperbolic geodesic distance between `(x1, y1)` and `(x2, y2)`.
@@ -5341,7 +5936,7 @@ export function prismDistortionWithEdges(original_layout: Layout2d, adjusted_lay
5341
5936
  /**
5342
5937
  * Projects `coords` (`Float32Array`) in place onto the feasible region defined by `constraints`.
5343
5938
  */
5344
- export function project1d(coords: Float32Array, constraints: any): void;
5939
+ export function project1d(coords: Float32Array, constraints: any, options: any): void;
5345
5940
 
5346
5941
  /**
5347
5942
  * Projects a coarse 2D `Layout2d` (`f32`) back onto fine vertices via `nodeToCoarse`.
@@ -5366,7 +5961,7 @@ export function projectClusteredRectangleNoOverlap2d(layout: Layout2d, labels: U
5366
5961
  /**
5367
5962
  * Projects axis `axis` (`0` / `"x"` or `1` / `"y"`) of `layout` in place onto `constraints`.
5368
5963
  */
5369
- export function projectLayoutAxis(layout: Layout2d, axis: any, constraints: any): void;
5964
+ export function projectLayoutAxis(layout: Layout2d, axis: any, constraints: any, options: any): void;
5370
5965
 
5371
5966
  /**
5372
5967
  * Projects spectral filter `terms` onto the PSD cone, returning `{ termsPsd, deltaPsd, hMin }`.
@@ -5382,12 +5977,12 @@ export function projectRectangleNoOverlap2d(layout: Layout2d, half_widths: Float
5382
5977
  /**
5383
5978
  * Builds the random-walk normalized graph Laplacian $L_{\mathrm{rw}} = D^{-1}(D - A)$ as a `CsrMatrix`.
5384
5979
  */
5385
- export function randomWalkLaplacian(graph: CsrGraph): CsrMatrix;
5980
+ export function randomWalkLaplacian(graph: Graph): CsrMatrix;
5386
5981
 
5387
5982
  /**
5388
- * Computes a `LayoutNd` (`f32`) zero-guarded resistance-distance spectral embedding (`RdMds`).
5983
+ * Computes a `LayoutNd` (`f32`) zero-guarded Resistance-Distance MDS spectral embedding (`RdMds`, Onoue 2026).
5389
5984
  */
5390
- export function rdMds(graph: CsrGraph, options: any): LayoutNd;
5985
+ export function rdMds(graph: Graph, options: any): LayoutNd;
5391
5986
 
5392
5987
  /**
5393
5988
  * Finds all overlapping rectangle pairs `[i0, j0, i1, j1, ...]` (`i < j`) for `layout`
@@ -5401,9 +5996,9 @@ export function rectangleOverlaps(layout: Layout2d, half_widths: Float32Array |
5401
5996
  export function refineClusterLayout(layout: Layout2d, labels: any, options: any): number;
5402
5997
 
5403
5998
  /**
5404
- * Constructs a directed acyclic `CsrGraph` by reversing cycle-closing back-edges.
5999
+ * Constructs a directed acyclic `Graph` by reversing cycle-closing back-edges.
5405
6000
  */
5406
- export function removeCycles(graph: CsrGraph): CsrGraph;
6001
+ export function removeCycles(graph: Graph): Graph;
5407
6002
 
5408
6003
  /**
5409
6004
  * Computes a `dims`-dimensional Representative / Landmark MDS `LayoutNd` (`f32`) from a flat
@@ -5414,7 +6009,7 @@ export function representativeMds(distances_to_reps: Float64Array | number[], nu
5414
6009
  /**
5415
6010
  * Runs Devriendt-Lambiotte resistance curvature flow on `graph` and classifies target geometry.
5416
6011
  */
5417
- export function resistanceCurvatureFlow(graph: CsrGraph, options: any): ResistanceCurvatureFlowResult;
6012
+ export function resistanceCurvatureFlow(graph: Graph, options: any): ResistanceCurvatureFlowResult;
5418
6013
 
5419
6014
  /**
5420
6015
  * Median-centers and Gaussian-calibrated radial quantile-scales `layout` in place so core spread matches `targetStd` (default `1.0`).
@@ -5424,18 +6019,18 @@ export function robustNormalizeLayout2d(layout: Layout2d, options: any): void;
5424
6019
  /**
5425
6020
  * Estimates edge crossings in $O(\text{numSamples})$ time (`options?: { numSamples?, seed? }`).
5426
6021
  */
5427
- export function sampledCrossingNumber(graph: CsrGraph, layout: Layout2d, options: any): number;
6022
+ export function sampledCrossingNumber(graph: Graph, layout: Layout2d, options: any): number;
5428
6023
 
5429
6024
  /**
5430
6025
  * Estimates DRGraph Eq. (17) crosslessness $1 - \sqrt{\hat{c} / c_{\max}} \in [0.0, 1.0]$
5431
6026
  * (`options?: { numSamples?, seed? }`).
5432
6027
  */
5433
- export function sampledCrosslessness(graph: CsrGraph, layout: Layout2d, options: any): number;
6028
+ export function sampledCrosslessness(graph: Graph, layout: Layout2d, options: any): number;
5434
6029
 
5435
6030
  /**
5436
6031
  * Selects well-spaced shortest-path pivots via Core-First MaxMin BFS.
5437
6032
  */
5438
- export function selectMaxminSpPivots(graph: CsrGraph, options: any): Uint32Array;
6033
+ export function selectMaxminSpPivots(graph: Graph, options: any): Uint32Array;
5439
6034
 
5440
6035
  /**
5441
6036
  * Installs `console_error_panic_hook` once so any Rust panic reports a readable stack trace
@@ -5451,22 +6046,28 @@ export function shiftedNormalizedLaplacian(l_sym: CsrMatrix, lambda_max?: number
5451
6046
  /**
5452
6047
  * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$.
5453
6048
  */
5454
- export function smallestLaplacianEigenpairs(graph: CsrGraph, options: any): EigenResult;
6049
+ export function smallestLaplacianEigenpairs(graph: Graph, options: any): EigenResult;
6050
+
6051
+ /**
6052
+ * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$ using
6053
+ * AMG-PCG-preconditioned block Generalized Davidson with explicit $v_0 = D^{1/2}\mathbf{1}$ deflation.
6054
+ */
6055
+ export function smallestSymLaplacianEigenpairsAmg(graph: Graph, options: any): EigenResult;
5455
6056
 
5456
6057
  /**
5457
- * Performs Ng-Jordan-Weiss spectral clustering on an undirected `CsrGraph`.
6058
+ * Performs Ng-Jordan-Weiss spectral clustering on an undirected `Graph`.
5458
6059
  */
5459
- export function spectralClustering(graph: CsrGraph, options: any): SpectralClusteringResult;
6060
+ export function spectralClustering(graph: Graph, options: any): SpectralClusteringResult;
5460
6061
 
5461
6062
  /**
5462
6063
  * Computes exact $O(|E|)$ spectral variance and degree summary statistics of $L_{\mathrm{sym}}$.
5463
6064
  */
5464
- export function spectralMomentStats(graph: CsrGraph): SpectralMomentStats;
6065
+ export function spectralMomentStats(graph: Graph): SpectralMomentStats;
5465
6066
 
5466
6067
  /**
5467
6068
  * Counts exact great-circle geodesic arc crossings on `ManifoldKind::Spherical`.
5468
6069
  */
5469
- export function sphericalCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
6070
+ export function sphericalCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
5470
6071
 
5471
6072
  /**
5472
6073
  * Computes the great-circle geodesic distance on the unit sphere in `[0, pi]`.
@@ -5491,12 +6092,12 @@ export function squarifiedTreemap(weights: any, options: any): Float64Array;
5491
6092
  /**
5492
6093
  * Computes the exact sweep-line crossing-angle penalty $\sum \cos^2(\theta)$.
5493
6094
  */
5494
- export function sweepCrossingAngle(graph: CsrGraph, layout: Layout2d): number;
6095
+ export function sweepCrossingAngle(graph: Graph, layout: Layout2d): number;
5495
6096
 
5496
6097
  /**
5497
6098
  * Counts the exact number of non-adjacent edge crossings via $O((|E|+K)\log|E|)$ sweep-line.
5498
6099
  */
5499
- export function sweepCrossingNumber(graph: CsrGraph, layout: Layout2d): number;
6100
+ export function sweepCrossingNumber(graph: Graph, layout: Layout2d): number;
5500
6101
 
5501
6102
  /**
5502
6103
  * Computes ascending symmetric eigenpairs `(lambdas, vectors)` of an `n x n` row-major matrix
@@ -5508,7 +6109,7 @@ export function symmetricEigenJacobi(a_row_major: Float64Array | number[], n: nu
5508
6109
  * Builds the symmetric normalized Laplacian $L_{\mathrm{sym}} = I - D^{-1/2} A D^{-1/2}$
5509
6110
  * and inverse square-root degrees `{ matrix, invSqrtDeg }`.
5510
6111
  */
5511
- export function symmetricNormalizedLaplacian(graph: CsrGraph): any;
6112
+ export function symmetricNormalizedLaplacian(graph: Graph): any;
5512
6113
 
5513
6114
  /**
5514
6115
  * Computes row-normalized symmetrized joint probabilities from arbitrary CSR directed affinities.
@@ -5528,12 +6129,12 @@ export function torusEdgeSegments(x1: number, y1: number, x2: number, y2: number
5528
6129
  /**
5529
6130
  * Initializes a flat 2D torus `ManifoldLayout2d` via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
5530
6131
  */
5531
- export function torusSpectralPhaseInit(graph: CsrGraph, seed: any): ManifoldLayout2d;
6132
+ export function torusSpectralPhaseInit(graph: Graph, seed: any): ManifoldLayout2d;
5532
6133
 
5533
6134
  /**
5534
- * Computes the exact transitive reduction of a directed acyclic `CsrGraph`.
6135
+ * Computes the exact transitive reduction of a directed acyclic `Graph`.
5535
6136
  */
5536
- export function transitiveReduction(graph: CsrGraph): CsrGraph;
6137
+ export function transitiveReduction(graph: Graph): Graph;
5537
6138
 
5538
6139
  /**
5539
6140
  * Returns the active WebAssembly linear `WebAssembly.Memory` instance.
@@ -5573,7 +6174,6 @@ export interface InitOutput {
5573
6174
  readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
5574
6175
  readonly __wbg_crossingpair_free: (a: number, b: number) => void;
5575
6176
  readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
5576
- readonly __wbg_csrgraph_free: (a: number, b: number) => void;
5577
6177
  readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
5578
6178
  readonly __wbg_datasetinfo_free: (a: number, b: number) => void;
5579
6179
  readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
@@ -5586,11 +6186,13 @@ export interface InitOutput {
5586
6186
  readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
5587
6187
  readonly __wbg_eigenresult_free: (a: number, b: number) => void;
5588
6188
  readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
6189
+ readonly __wbg_fieldrepulsionkernel_free: (a: number, b: number) => void;
5589
6190
  readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
5590
6191
  readonly __wbg_forbidoverlapremoval_free: (a: number, b: number) => void;
5591
6192
  readonly __wbg_forceatlas2solver_free: (a: number, b: number) => void;
5592
6193
  readonly __wbg_fruchtermanreingoldsolver_free: (a: number, b: number) => void;
5593
6194
  readonly __wbg_gemsolver_free: (a: number, b: number) => void;
6195
+ readonly __wbg_graph_free: (a: number, b: number) => void;
5594
6196
  readonly __wbg_graphcnesolver_free: (a: number, b: number) => void;
5595
6197
  readonly __wbg_gripsolver_free: (a: number, b: number) => void;
5596
6198
  readonly __wbg_groupinaboxsolver_free: (a: number, b: number) => void;
@@ -5598,6 +6200,7 @@ export interface InitOutput {
5598
6200
  readonly __wbg_gumapsolver_free: (a: number, b: number) => void;
5599
6201
  readonly __wbg_hde_free: (a: number, b: number) => void;
5600
6202
  readonly __wbg_hybridknnresult_free: (a: number, b: number) => void;
6203
+ readonly __wbg_ibumaphubdamping_free: (a: number, b: number) => void;
5601
6204
  readonly __wbg_ibumapsolver_free: (a: number, b: number) => void;
5602
6205
  readonly __wbg_kamadakawaisolver_free: (a: number, b: number) => void;
5603
6206
  readonly __wbg_kmeansresult_free: (a: number, b: number) => void;
@@ -5615,6 +6218,7 @@ export interface InitOutput {
5615
6218
  readonly __wbg_louvainresult_free: (a: number, b: number) => void;
5616
6219
  readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
5617
6220
  readonly __wbg_maxentstresssolver_free: (a: number, b: number) => void;
6221
+ readonly __wbg_metricanchorweighting_free: (a: number, b: number) => void;
5618
6222
  readonly __wbg_metricreport_free: (a: number, b: number) => void;
5619
6223
  readonly __wbg_minimumanglesummary_free: (a: number, b: number) => void;
5620
6224
  readonly __wbg_normetricsresult_free: (a: number, b: number) => void;
@@ -5623,6 +6227,8 @@ export interface InitOutput {
5623
6227
  readonly __wbg_partitionagreementresult_free: (a: number, b: number) => void;
5624
6228
  readonly __wbg_pfsprimeoverlapremoval_free: (a: number, b: number) => void;
5625
6229
  readonly __wbg_pivotmds_free: (a: number, b: number) => void;
6230
+ readonly __wbg_pivotmdsreport_free: (a: number, b: number) => void;
6231
+ readonly __wbg_pivotmdsreportresult_free: (a: number, b: number) => void;
5626
6232
  readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
5627
6233
  readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
5628
6234
  readonly __wbg_rdmds_free: (a: number, b: number) => void;
@@ -5658,6 +6264,7 @@ export interface InitOutput {
5658
6264
  readonly __wbg_twindeclutterer_free: (a: number, b: number) => void;
5659
6265
  readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
5660
6266
  readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
6267
+ readonly __wbg_unifiedmetricanchor_free: (a: number, b: number) => void;
5661
6268
  readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
5662
6269
  readonly _calinskiHarabaszScore2d: (a: number, b: number, c: any) => void;
5663
6270
  readonly _calinskiHarabaszScore3d: (a: number, b: number, c: any) => void;
@@ -5851,14 +6458,14 @@ export interface InitOutput {
5851
6458
  readonly amgpcgsolver_solve: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5852
6459
  readonly amgpcgsolver_solveBatch: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
5853
6460
  readonly amgpcgsolver_startSolve: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5854
- readonly amgpcgsolver_status: (a: number, b: number) => void;
6461
+ readonly amgpcgsolver_status: (a: number) => number;
5855
6462
  readonly amgpcgsolver_step: (a: number, b: number) => void;
5856
6463
  readonly amgpcgsolver_totalIterations: (a: number) => number;
5857
6464
  readonly amgpcgsolveresult_converged: (a: number) => number;
5858
6465
  readonly amgpcgsolveresult_iterations: (a: number) => number;
5859
6466
  readonly amgpcgsolveresult_relativeResidual: (a: number) => number;
5860
6467
  readonly amgpcgsolveresult_residualNorm: (a: number) => number;
5861
- readonly amgpcgsolveresult_status: (a: number, b: number) => void;
6468
+ readonly amgpcgsolveresult_status: (a: number) => number;
5862
6469
  readonly amgpcgsolveresult_x: (a: number, b: number) => void;
5863
6470
  readonly angularResolution: (a: number, b: number, c: number) => void;
5864
6471
  readonly anisotropicLaplacian: (a: number, b: number, c: any) => void;
@@ -5874,13 +6481,21 @@ export interface InitOutput {
5874
6481
  readonly arenaoctree3d_buildWeightedNd: (a: number, b: number, c: number, d: number, e: number) => void;
5875
6482
  readonly arenaoctree3d_buildXyz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
5876
6483
  readonly arenaoctree3d_clear: (a: number) => void;
6484
+ readonly arenaoctree3d_coincidentDistSq: (a: number) => number;
5877
6485
  readonly arenaoctree3d_computeCoulombRepulsion: (a: number, b: number, c: number, d: number) => void;
5878
6486
  readonly arenaoctree3d_computeEntropyRepulsion: (a: number, b: number, c: number, d: number) => void;
5879
6487
  readonly arenaoctree3d_computeKlRepulsion: (a: number, b: number, c: number) => void;
5880
6488
  readonly arenaoctree3d_computeMaxentRepulsion: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
5881
- readonly arenaoctree3d_new: () => number;
6489
+ readonly arenaoctree3d_entropyMinDist: (a: number) => number;
6490
+ readonly arenaoctree3d_maxDepth: (a: number) => number;
6491
+ readonly arenaoctree3d_new: (a: number, b: any) => void;
5882
6492
  readonly arenaoctree3d_nodeCount: (a: number) => number;
5883
6493
  readonly arenaoctree3d_pointCount: (a: number) => number;
6494
+ readonly arenaoctree3d_setCoincidentDistSq: (a: number, b: number, c: number) => void;
6495
+ readonly arenaoctree3d_setEntropyMinDist: (a: number, b: number, c: number) => void;
6496
+ readonly arenaoctree3d_setMaxDepth: (a: number, b: number, c: number) => void;
6497
+ readonly arenaoctree3d_setTraversalStackCap: (a: number, b: number, c: number) => void;
6498
+ readonly arenaoctree3d_traversalStackCap: (a: number) => number;
5884
6499
  readonly aspectRatio: (a: number, b: number) => void;
5885
6500
  readonly assignLayers: (a: number, b: number, c: any) => void;
5886
6501
  readonly backboneresult_backboneCsr: (a: number) => number;
@@ -5896,7 +6511,7 @@ export interface InitOutput {
5896
6511
  readonly backbonesolver_numNodes: (a: number) => number;
5897
6512
  readonly backbonesolver_run: (a: number, b: number, c: number) => void;
5898
6513
  readonly backbonesolver_runSteps: (a: number, b: number, c: number, d: number) => void;
5899
- readonly backbonesolver_status: (a: number, b: number) => void;
6514
+ readonly backbonesolver_status: (a: number) => number;
5900
6515
  readonly backbonesolver_step: (a: number, b: number, c: number) => void;
5901
6516
  readonly backbonesolver_totalIterations: (a: number) => number;
5902
6517
  readonly bfsSingleSource: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -5975,7 +6590,7 @@ export interface InitOutput {
5975
6590
  readonly clusterrefinesolver_numNodes: (a: number) => number;
5976
6591
  readonly clusterrefinesolver_run: (a: number, b: number, c: number) => void;
5977
6592
  readonly clusterrefinesolver_runSteps: (a: number, b: number, c: number, d: number) => void;
5978
- readonly clusterrefinesolver_status: (a: number, b: number) => void;
6593
+ readonly clusterrefinesolver_status: (a: number) => number;
5979
6594
  readonly clusterrefinesolver_step: (a: number, b: number, c: number) => void;
5980
6595
  readonly clusterrefinesolver_totalIterations: (a: number) => number;
5981
6596
  readonly coarseBackboneInit: (a: number, b: number, c: any) => void;
@@ -6017,7 +6632,7 @@ export interface InitOutput {
6017
6632
  readonly computeChebyshevBandpassCoefficients: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
6018
6633
  readonly computeDiffusionEmbedding: (a: number, b: number, c: any) => void;
6019
6634
  readonly computeEffectiveResistances: (a: number, b: number, c: any) => void;
6020
- readonly computeFuzzySimplicialSet: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6635
+ readonly computeFuzzySimplicialSet: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => void;
6021
6636
  readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
6022
6637
  readonly computeKnnProbabilities: (a: number, b: number, c: number, d: number, e: any) => void;
6023
6638
  readonly computeMedian2hopPerplexity: (a: number, b: number, c: any) => void;
@@ -6044,28 +6659,6 @@ export interface InitOutput {
6044
6659
  readonly crossingsummary_count: (a: number) => number;
6045
6660
  readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
6046
6661
  readonly crosslessness: (a: number, b: number, c: number) => void;
6047
- readonly csrgraph_degree: (a: number, b: number, c: number) => void;
6048
- readonly csrgraph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
6049
- readonly csrgraph_edges: (a: number, b: number) => void;
6050
- readonly csrgraph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
6051
- readonly csrgraph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
6052
- readonly csrgraph_hasEdge: (a: number, b: number, c: number, d: number) => void;
6053
- readonly csrgraph_indices: (a: number, b: number) => void;
6054
- readonly csrgraph_indptr: (a: number, b: number) => void;
6055
- readonly csrgraph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
6056
- readonly csrgraph_isConnected: (a: number) => number;
6057
- readonly csrgraph_isDirected: (a: number) => number;
6058
- readonly csrgraph_isEmpty: (a: number) => number;
6059
- readonly csrgraph_isWeighted: (a: number) => number;
6060
- readonly csrgraph_largestConnectedComponent: (a: number) => number;
6061
- readonly csrgraph_len: (a: number) => number;
6062
- readonly csrgraph_length: (a: number) => number;
6063
- readonly csrgraph_neighbors: (a: number, b: number, c: number) => void;
6064
- readonly csrgraph_nnz: (a: number) => number;
6065
- readonly csrgraph_numEdges: (a: number) => number;
6066
- readonly csrgraph_numNodes: (a: number) => number;
6067
- readonly csrgraph_weightDtype: (a: number, b: number) => void;
6068
- readonly csrgraph_weights: (a: number, b: number) => void;
6069
6662
  readonly csrmatrix_diagonal: (a: number, b: number) => void;
6070
6663
  readonly csrmatrix_estimateLambdaMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
6071
6664
  readonly csrmatrix_estimateLambdaMaxLanczos: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
@@ -6147,20 +6740,22 @@ export interface InitOutput {
6147
6740
  readonly drgraphsolver_numLevels: (a: number) => number;
6148
6741
  readonly drgraphsolver_numNodes: (a: number) => number;
6149
6742
  readonly drgraphsolver_numSprings: (a: number) => number;
6150
- readonly drgraphsolver_status: (a: number, b: number) => void;
6151
- readonly drgraphsolver_target: (a: number, b: number) => void;
6743
+ readonly drgraphsolver_status: (a: number) => number;
6744
+ readonly drgraphsolver_target: (a: number) => number;
6152
6745
  readonly drgraphsolver_totalIterations: (a: number) => number;
6153
6746
  readonly dynamickdtree_dims: (a: number) => number;
6154
- readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number) => void;
6155
- readonly dynamickdtree_fromLayoutNd: (a: number, b: number) => void;
6747
+ readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6748
+ readonly dynamickdtree_fromLayoutNd: (a: number, b: number, c: any) => void;
6156
6749
  readonly dynamickdtree_isEmpty: (a: number) => number;
6157
6750
  readonly dynamickdtree_kNearest: (a: number, b: number, c: number, d: number, e: number) => void;
6158
6751
  readonly dynamickdtree_kNearestExcludingSelf: (a: number, b: number, c: number, d: number) => void;
6752
+ readonly dynamickdtree_leafSize: (a: number) => number;
6159
6753
  readonly dynamickdtree_len: (a: number) => number;
6160
6754
  readonly dynamickdtree_nearestExcludingSelf: (a: number, b: number, c: number) => void;
6161
- readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number) => void;
6755
+ readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6162
6756
  readonly dynamickdtree_numNodes: (a: number) => number;
6163
6757
  readonly dynamickdtree_point: (a: number, b: number, c: number) => void;
6758
+ readonly dynamickdtree_setLeafSize: (a: number, b: number, c: number) => void;
6164
6759
  readonly dynamickdtree_withinRadius: (a: number, b: number, c: number, d: number, e: number) => void;
6165
6760
  readonly dynamickdtree_withinRadiusSq: (a: number, b: number, c: number, d: number, e: number) => void;
6166
6761
  readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -6182,7 +6777,7 @@ export interface InitOutput {
6182
6777
  readonly edgepolylines_numEdges: (a: number) => number;
6183
6778
  readonly edgepolylines_pointsLen: (a: number) => number;
6184
6779
  readonly edgepolylines_pointsPtr: (a: number) => number;
6185
- readonly edgepolylines_target: (a: number, b: number) => void;
6780
+ readonly edgepolylines_target: (a: number) => number;
6186
6781
  readonly edgepolylines_totalPoints: (a: number) => number;
6187
6782
  readonly effectiveresistanceresult_amgAllConverged: (a: number) => number;
6188
6783
  readonly effectiveresistanceresult_amgMaxRelativeResidual: (a: number) => number;
@@ -6206,6 +6801,7 @@ export interface InitOutput {
6206
6801
  readonly eigenresult_usedDenseFallback: (a: number) => number;
6207
6802
  readonly eigenresult_vectors: (a: number, b: number) => void;
6208
6803
  readonly extract1hop2hopCsr: (a: number, b: number) => void;
6804
+ readonly extract1hopTetherWeights: (a: number, b: number, c: number, d: any) => void;
6209
6805
  readonly extractQuadrilateralBackbone: (a: number, b: number, c: any) => void;
6210
6806
  readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: any) => void;
6211
6807
  readonly extractSparse1hop2hopPairsWithMode: (a: number, b: number, c: any) => void;
@@ -6219,11 +6815,18 @@ export interface InitOutput {
6219
6815
  readonly fdebsolver_ptsPerEdge: (a: number) => number;
6220
6816
  readonly fdebsolver_run: (a: number, b: number, c: number) => void;
6221
6817
  readonly fdebsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
6222
- readonly fdebsolver_status: (a: number, b: number) => void;
6818
+ readonly fdebsolver_status: (a: number) => number;
6223
6819
  readonly fdebsolver_step: (a: number, b: number, c: number) => void;
6224
- readonly fdebsolver_target: (a: number, b: number) => void;
6820
+ readonly fdebsolver_target: (a: number) => number;
6225
6821
  readonly fdebsolver_totalIterations: (a: number) => number;
6226
- readonly findAbParams: (a: number, b: number, c: number, d: number, e: number) => void;
6822
+ readonly fieldrepulsionkernel_cauchy: () => number;
6823
+ readonly fieldrepulsionkernel_gamma: (a: number, b: number) => void;
6824
+ readonly fieldrepulsionkernel_generalizedCauchy: (a: number, b: number) => void;
6825
+ readonly fieldrepulsionkernel_kind: (a: number, b: number) => void;
6826
+ readonly fieldrepulsionkernel_minScreen: (a: number, b: number) => void;
6827
+ readonly fieldrepulsionkernel_screenFrac: (a: number, b: number) => void;
6828
+ readonly fieldrepulsionkernel_screenedCauchy: (a: number, b: number, c: number, d: number) => void;
6829
+ readonly findAbParams: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6227
6830
  readonly fitfieldstats_inverseFfts: (a: number) => number;
6228
6831
  readonly fitfieldstats_kernelForwardFfts: (a: number) => number;
6229
6832
  readonly fitfieldstats_particleForwardFfts: (a: number) => number;
@@ -6236,7 +6839,7 @@ export interface InitOutput {
6236
6839
  readonly forbidoverlapremoval_numNodes: (a: number) => number;
6237
6840
  readonly forbidoverlapremoval_run: (a: number, b: number, c: number) => void;
6238
6841
  readonly forbidoverlapremoval_runSteps: (a: number, b: number, c: number, d: number) => void;
6239
- readonly forbidoverlapremoval_status: (a: number, b: number) => void;
6842
+ readonly forbidoverlapremoval_status: (a: number) => number;
6240
6843
  readonly forbidoverlapremoval_step: (a: number, b: number, c: number) => void;
6241
6844
  readonly forbidoverlapremoval_totalIterations: (a: number) => number;
6242
6845
  readonly forceatlas2solver__run2d: (a: number, b: number, c: number) => void;
@@ -6248,15 +6851,15 @@ export interface InitOutput {
6248
6851
  readonly forceatlas2solver__step2d: (a: number, b: number, c: number) => void;
6249
6852
  readonly forceatlas2solver__step3d: (a: number, b: number, c: number) => void;
6250
6853
  readonly forceatlas2solver__stepNd: (a: number, b: number, c: number) => void;
6251
- readonly forceatlas2solver_backend: (a: number, b: number) => void;
6854
+ readonly forceatlas2solver_backend: (a: number) => number;
6252
6855
  readonly forceatlas2solver_isFinished: (a: number) => number;
6253
6856
  readonly forceatlas2solver_iteration: (a: number) => number;
6254
6857
  readonly forceatlas2solver_maxDisplacement: (a: number) => number;
6255
6858
  readonly forceatlas2solver_new: (a: number, b: number, c: any) => void;
6256
6859
  readonly forceatlas2solver_nodeRadii: (a: number, b: number) => void;
6257
6860
  readonly forceatlas2solver_numNodes: (a: number) => number;
6258
- readonly forceatlas2solver_status: (a: number, b: number) => void;
6259
- readonly forceatlas2solver_target: (a: number, b: number) => void;
6861
+ readonly forceatlas2solver_status: (a: number) => number;
6862
+ readonly forceatlas2solver_target: (a: number) => number;
6260
6863
  readonly forceatlas2solver_totalIterations: (a: number) => number;
6261
6864
  readonly fruchtermanreingoldsolver__run2d: (a: number, b: number, c: number) => void;
6262
6865
  readonly fruchtermanreingoldsolver__run3d: (a: number, b: number, c: number) => void;
@@ -6270,15 +6873,15 @@ export interface InitOutput {
6270
6873
  readonly fruchtermanreingoldsolver__step3d: (a: number, b: number, c: number) => void;
6271
6874
  readonly fruchtermanreingoldsolver__stepManifold: (a: number, b: number, c: number) => void;
6272
6875
  readonly fruchtermanreingoldsolver__stepNd: (a: number, b: number, c: number) => void;
6273
- readonly fruchtermanreingoldsolver_backend: (a: number, b: number) => void;
6876
+ readonly fruchtermanreingoldsolver_backend: (a: number) => number;
6274
6877
  readonly fruchtermanreingoldsolver_currentTemperature: (a: number) => number;
6275
6878
  readonly fruchtermanreingoldsolver_isFinished: (a: number) => number;
6276
6879
  readonly fruchtermanreingoldsolver_iteration: (a: number) => number;
6277
6880
  readonly fruchtermanreingoldsolver_new: (a: number, b: number, c: any) => void;
6278
6881
  readonly fruchtermanreingoldsolver_numNodes: (a: number) => number;
6279
6882
  readonly fruchtermanreingoldsolver_optimalDistance: (a: number) => number;
6280
- readonly fruchtermanreingoldsolver_status: (a: number, b: number) => void;
6281
- readonly fruchtermanreingoldsolver_target: (a: number, b: number) => void;
6883
+ readonly fruchtermanreingoldsolver_status: (a: number) => number;
6884
+ readonly fruchtermanreingoldsolver_target: (a: number) => number;
6282
6885
  readonly fruchtermanreingoldsolver_totalIterations: (a: number) => number;
6283
6886
  readonly gemsolver_isFinished: (a: number) => number;
6284
6887
  readonly gemsolver_iteration: (a: number) => number;
@@ -6286,7 +6889,7 @@ export interface InitOutput {
6286
6889
  readonly gemsolver_numNodes: (a: number) => number;
6287
6890
  readonly gemsolver_run: (a: number, b: number, c: number) => void;
6288
6891
  readonly gemsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
6289
- readonly gemsolver_status: (a: number, b: number) => void;
6892
+ readonly gemsolver_status: (a: number) => number;
6290
6893
  readonly gemsolver_step: (a: number, b: number, c: number) => void;
6291
6894
  readonly gemsolver_totalIterations: (a: number) => number;
6292
6895
  readonly generateHyperbolicTree: (a: number, b: number, c: number) => void;
@@ -6301,6 +6904,28 @@ export interface InitOutput {
6301
6904
  readonly graph12hopRowNormalizedProbabilities: (a: number, b: number, c: any) => void;
6302
6905
  readonly graph12hopRowNormalizedProbabilitiesWithOptions: (a: number, b: number, c: any) => void;
6303
6906
  readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
6907
+ readonly graph_degree: (a: number, b: number, c: number) => void;
6908
+ readonly graph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
6909
+ readonly graph_edges: (a: number, b: number) => void;
6910
+ readonly graph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
6911
+ readonly graph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
6912
+ readonly graph_hasEdge: (a: number, b: number, c: number, d: number) => void;
6913
+ readonly graph_indices: (a: number, b: number) => void;
6914
+ readonly graph_indptr: (a: number, b: number) => void;
6915
+ readonly graph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
6916
+ readonly graph_isConnected: (a: number) => number;
6917
+ readonly graph_isDirected: (a: number) => number;
6918
+ readonly graph_isEmpty: (a: number) => number;
6919
+ readonly graph_isWeighted: (a: number) => number;
6920
+ readonly graph_largestConnectedComponent: (a: number) => number;
6921
+ readonly graph_len: (a: number) => number;
6922
+ readonly graph_length: (a: number) => number;
6923
+ readonly graph_neighbors: (a: number, b: number, c: number) => void;
6924
+ readonly graph_nnz: (a: number) => number;
6925
+ readonly graph_numEdges: (a: number) => number;
6926
+ readonly graph_numNodes: (a: number) => number;
6927
+ readonly graph_weightDtype: (a: number) => number;
6928
+ readonly graph_weights: (a: number, b: number) => void;
6304
6929
  readonly graphcnesolver__run2d: (a: number, b: number, c: number) => void;
6305
6930
  readonly graphcnesolver__run3d: (a: number, b: number, c: number) => void;
6306
6931
  readonly graphcnesolver__runManifold: (a: number, b: number, c: number) => void;
@@ -6319,8 +6944,8 @@ export interface InitOutput {
6319
6944
  readonly graphcnesolver_new: (a: number, b: number, c: any) => void;
6320
6945
  readonly graphcnesolver_numNodes: (a: number) => number;
6321
6946
  readonly graphcnesolver_numSprings: (a: number) => number;
6322
- readonly graphcnesolver_status: (a: number, b: number) => void;
6323
- readonly graphcnesolver_target: (a: number, b: number) => void;
6947
+ readonly graphcnesolver_status: (a: number) => number;
6948
+ readonly graphcnesolver_target: (a: number) => number;
6324
6949
  readonly graphcnesolver_totalIterations: (a: number) => number;
6325
6950
  readonly gripsolver_isFinished: (a: number) => number;
6326
6951
  readonly gripsolver_iteration: (a: number) => number;
@@ -6329,7 +6954,7 @@ export interface InitOutput {
6329
6954
  readonly gripsolver_numNodes: (a: number) => number;
6330
6955
  readonly gripsolver_run: (a: number, b: number, c: number) => void;
6331
6956
  readonly gripsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
6332
- readonly gripsolver_status: (a: number, b: number) => void;
6957
+ readonly gripsolver_status: (a: number) => number;
6333
6958
  readonly gripsolver_step: (a: number, b: number, c: number) => void;
6334
6959
  readonly gripsolver_totalIterations: (a: number) => number;
6335
6960
  readonly groupinaboxsolver_boxes: (a: number, b: number) => void;
@@ -6339,7 +6964,7 @@ export interface InitOutput {
6339
6964
  readonly groupinaboxsolver_numNodes: (a: number) => number;
6340
6965
  readonly groupinaboxsolver_run: (a: number, b: number, c: number) => void;
6341
6966
  readonly groupinaboxsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
6342
- readonly groupinaboxsolver_status: (a: number, b: number) => void;
6967
+ readonly groupinaboxsolver_status: (a: number) => number;
6343
6968
  readonly groupinaboxsolver_step: (a: number, b: number, c: number) => void;
6344
6969
  readonly groupinaboxsolver_totalIterations: (a: number) => number;
6345
6970
  readonly gtreeoverlapremoval_fromRadii: (a: number, b: number, c: number, d: any) => void;
@@ -6350,7 +6975,7 @@ export interface InitOutput {
6350
6975
  readonly gtreeoverlapremoval_numNodes: (a: number) => number;
6351
6976
  readonly gtreeoverlapremoval_run: (a: number, b: number, c: number) => void;
6352
6977
  readonly gtreeoverlapremoval_runSteps: (a: number, b: number, c: number, d: number) => void;
6353
- readonly gtreeoverlapremoval_status: (a: number, b: number) => void;
6978
+ readonly gtreeoverlapremoval_status: (a: number) => number;
6354
6979
  readonly gtreeoverlapremoval_step: (a: number, b: number, c: number) => void;
6355
6980
  readonly gtreeoverlapremoval_totalIterations: (a: number) => number;
6356
6981
  readonly gumapsolver__run2d: (a: number, b: number, c: number) => void;
@@ -6377,8 +7002,8 @@ export interface InitOutput {
6377
7002
  readonly gumapsolver_new: (a: number, b: number, c: any) => void;
6378
7003
  readonly gumapsolver_numEdges: (a: number) => number;
6379
7004
  readonly gumapsolver_numNodes: (a: number) => number;
6380
- readonly gumapsolver_status: (a: number, b: number) => void;
6381
- readonly gumapsolver_target: (a: number, b: number) => void;
7005
+ readonly gumapsolver_status: (a: number) => number;
7006
+ readonly gumapsolver_target: (a: number) => number;
6382
7007
  readonly gumapsolver_totalIterations: (a: number) => number;
6383
7008
  readonly hde: (a: number, b: number, c: any) => void;
6384
7009
  readonly hdeNd: (a: number, b: number, c: any) => void;
@@ -6392,13 +7017,22 @@ export interface InitOutput {
6392
7017
  readonly hybridknnresult_nPure2hopRows: (a: number) => number;
6393
7018
  readonly hybridknnresult_nnz: (a: number) => number;
6394
7019
  readonly hyperbolicCrossingNumber: (a: number, b: number, c: number) => void;
7020
+ readonly ibumaphubdamping_explicit: (a: number, b: any) => void;
7021
+ readonly ibumaphubdamping_exponent: (a: number, b: number) => void;
7022
+ readonly ibumaphubdamping_hubEta: (a: number, b: number) => void;
7023
+ readonly ibumaphubdamping_inverseDegree: () => number;
7024
+ readonly ibumaphubdamping_inverseDegreePower: (a: number, b: number) => void;
7025
+ readonly ibumaphubdamping_kind: (a: number, b: number) => void;
7026
+ readonly ibumaphubdamping_medianRowSum: () => number;
7027
+ readonly ibumaphubdamping_none: () => number;
6395
7028
  readonly ibumapsolver_a: (a: number) => number;
6396
7029
  readonly ibumapsolver_ab: (a: number, b: number) => void;
6397
7030
  readonly ibumapsolver_b: (a: number) => number;
6398
- readonly ibumapsolver_backend: (a: number, b: number) => void;
7031
+ readonly ibumapsolver_backend: (a: number) => number;
6399
7032
  readonly ibumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: any) => void;
6400
7033
  readonly ibumapsolver_fromKnn: (a: number, b: number, c: any) => void;
6401
7034
  readonly ibumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
7035
+ readonly ibumapsolver_hubEta: (a: number, b: number) => void;
6402
7036
  readonly ibumapsolver_isFinished: (a: number) => number;
6403
7037
  readonly ibumapsolver_iteration: (a: number) => number;
6404
7038
  readonly ibumapsolver_new: (a: number, b: number, c: any) => void;
@@ -6406,9 +7040,9 @@ export interface InitOutput {
6406
7040
  readonly ibumapsolver_numNodes: (a: number) => number;
6407
7041
  readonly ibumapsolver_run: (a: number, b: number, c: number) => void;
6408
7042
  readonly ibumapsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
6409
- readonly ibumapsolver_status: (a: number, b: number) => void;
7043
+ readonly ibumapsolver_status: (a: number) => number;
6410
7044
  readonly ibumapsolver_step: (a: number, b: number, c: number) => void;
6411
- readonly ibumapsolver_target: (a: number, b: number) => void;
7045
+ readonly ibumapsolver_target: (a: number) => number;
6412
7046
  readonly ibumapsolver_totalFft2dCalls: (a: number) => number;
6413
7047
  readonly ibumapsolver_totalIterations: (a: number) => number;
6414
7048
  readonly kamadakawaisolver__run2d: (a: number, b: number, c: number) => void;
@@ -6429,8 +7063,8 @@ export interface InitOutput {
6429
7063
  readonly kamadakawaisolver_iteration: (a: number) => number;
6430
7064
  readonly kamadakawaisolver_new: (a: number, b: number, c: any) => void;
6431
7065
  readonly kamadakawaisolver_numNodes: (a: number) => number;
6432
- readonly kamadakawaisolver_status: (a: number, b: number) => void;
6433
- readonly kamadakawaisolver_target: (a: number, b: number) => void;
7066
+ readonly kamadakawaisolver_status: (a: number) => number;
7067
+ readonly kamadakawaisolver_target: (a: number) => number;
6434
7068
  readonly kamadakawaisolver_totalIterations: (a: number) => number;
6435
7069
  readonly kmeansPlusPlus: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6436
7070
  readonly kmeansresult_centroids: (a: number, b: number) => void;
@@ -6484,8 +7118,8 @@ export interface InitOutput {
6484
7118
  readonly largevissolver_new: (a: number, b: number, c: any) => void;
6485
7119
  readonly largevissolver_numNodes: (a: number) => number;
6486
7120
  readonly largevissolver_numSprings: (a: number) => number;
6487
- readonly largevissolver_status: (a: number, b: number) => void;
6488
- readonly largevissolver_target: (a: number, b: number) => void;
7121
+ readonly largevissolver_status: (a: number) => number;
7122
+ readonly largevissolver_target: (a: number) => number;
6489
7123
  readonly largevissolver_totalIterations: (a: number) => number;
6490
7124
  readonly layout2d_coordsLen: (a: number) => number;
6491
7125
  readonly layout2d_coordsPtr: (a: number) => number;
@@ -6575,15 +7209,15 @@ export interface InitOutput {
6575
7209
  readonly linlogsolver__step2d: (a: number, b: number, c: number) => void;
6576
7210
  readonly linlogsolver__step3d: (a: number, b: number, c: number) => void;
6577
7211
  readonly linlogsolver__stepNd: (a: number, b: number, c: number) => void;
6578
- readonly linlogsolver_backend: (a: number, b: number) => void;
7212
+ readonly linlogsolver_backend: (a: number) => number;
6579
7213
  readonly linlogsolver_isFinished: (a: number) => number;
6580
7214
  readonly linlogsolver_iteration: (a: number) => number;
6581
7215
  readonly linlogsolver_masses: (a: number, b: number) => void;
6582
7216
  readonly linlogsolver_maxDisplacement: (a: number) => number;
6583
7217
  readonly linlogsolver_new: (a: number, b: number, c: any) => void;
6584
7218
  readonly linlogsolver_numNodes: (a: number) => number;
6585
- readonly linlogsolver_status: (a: number, b: number) => void;
6586
- readonly linlogsolver_target: (a: number, b: number) => void;
7219
+ readonly linlogsolver_status: (a: number) => number;
7220
+ readonly linlogsolver_target: (a: number) => number;
6587
7221
  readonly linlogsolver_totalIterations: (a: number) => number;
6588
7222
  readonly listDatasets: (a: number) => void;
6589
7223
  readonly lorentzDistance: (a: number, b: number, c: number, d: number) => number;
@@ -6607,28 +7241,30 @@ export interface InitOutput {
6607
7241
  readonly manifoldlayout2d_coordsLen: (a: number) => number;
6608
7242
  readonly manifoldlayout2d_coordsPtr: (a: number) => number;
6609
7243
  readonly manifoldlayout2d_copy: (a: number) => number;
6610
- readonly manifoldlayout2d_fromCoords: (a: number, b: number, c: number, d: number, e: number) => void;
6611
- readonly manifoldlayout2d_fromLayout: (a: number, b: number, c: number, d: number) => void;
6612
- readonly manifoldlayout2d_fromLayoutScaled: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
7244
+ readonly manifoldlayout2d_fromCoords: (a: number, b: any, c: number, d: number) => void;
7245
+ readonly manifoldlayout2d_fromLayout: (a: number, b: any, c: number) => void;
7246
+ readonly manifoldlayout2d_fromLayoutScaled: (a: number, b: any, c: number, d: number, e: number) => void;
6613
7247
  readonly manifoldlayout2d_geodesicDistance: (a: number, b: number, c: number, d: number) => void;
6614
7248
  readonly manifoldlayout2d_hyperbolicLorentz: (a: number, b: number) => void;
6615
7249
  readonly manifoldlayout2d_hyperbolicPoincare: (a: number, b: number) => void;
6616
- readonly manifoldlayout2d_init: (a: number, b: number, c: number, d: number, e: any) => void;
7250
+ readonly manifoldlayout2d_init: (a: number, b: any, c: number, d: any) => void;
6617
7251
  readonly manifoldlayout2d_isAllFinite: (a: number) => number;
6618
7252
  readonly manifoldlayout2d_isEmpty: (a: number) => number;
6619
- readonly manifoldlayout2d_kind: (a: number, b: number) => void;
7253
+ readonly manifoldlayout2d_kind: (a: number) => number;
6620
7254
  readonly manifoldlayout2d_len: (a: number) => number;
6621
7255
  readonly manifoldlayout2d_metric: (a: number, b: number) => void;
6622
7256
  readonly manifoldlayout2d_normalizeStd: (a: number, b: number, c: number, d: number) => void;
6623
7257
  readonly manifoldlayout2d_numNodes: (a: number) => number;
6624
7258
  readonly manifoldlayout2d_poincareCentroid: (a: number, b: number) => void;
7259
+ readonly manifoldlayout2d_poincareEps: (a: number) => number;
6625
7260
  readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
6626
- readonly manifoldlayout2d_randomInit: (a: number, b: number, c: number, d: number, e: any) => void;
7261
+ readonly manifoldlayout2d_randomInit: (a: number, b: any, c: number, d: any) => void;
6627
7262
  readonly manifoldlayout2d_recenterPoincare: (a: number, b: number, c: number, d: number) => void;
6628
7263
  readonly manifoldlayout2d_recenterPoincareAt: (a: number, b: number, c: number) => void;
6629
7264
  readonly manifoldlayout2d_rescaleGeodesic: (a: number, b: number, c: number) => void;
6630
7265
  readonly manifoldlayout2d_scale: (a: number) => number;
6631
7266
  readonly manifoldlayout2d_setAspect: (a: number, b: number, c: number) => void;
7267
+ readonly manifoldlayout2d_setPoincareEps: (a: number, b: number, c: number) => void;
6632
7268
  readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
6633
7269
  readonly manifoldlayout2d_setScale: (a: number, b: number, c: number) => void;
6634
7270
  readonly manifoldlayout2d_setTorusExtents: (a: number, b: number, c: number, d: number) => void;
@@ -6641,7 +7277,7 @@ export interface InitOutput {
6641
7277
  readonly manifoldlayout2d_torusSpectralPhaseInit: (a: number, b: number, c: any) => void;
6642
7278
  readonly manifoldlayout2d_x: (a: number, b: number, c: number) => void;
6643
7279
  readonly manifoldlayout2d_y: (a: number, b: number, c: number) => void;
6644
- readonly manifoldlayout2d_zeros: (a: number, b: number, c: number, d: number) => void;
7280
+ readonly manifoldlayout2d_zeros: (a: number, b: any, c: number) => void;
6645
7281
  readonly maxentstresssolver__run2d: (a: number, b: number, c: number) => void;
6646
7282
  readonly maxentstresssolver__run3d: (a: number, b: number, c: number) => void;
6647
7283
  readonly maxentstresssolver__runNd: (a: number, b: number, c: number) => void;
@@ -6651,16 +7287,24 @@ export interface InitOutput {
6651
7287
  readonly maxentstresssolver__step2d: (a: number, b: number, c: number) => void;
6652
7288
  readonly maxentstresssolver__step3d: (a: number, b: number, c: number) => void;
6653
7289
  readonly maxentstresssolver__stepNd: (a: number, b: number, c: number) => void;
6654
- readonly maxentstresssolver_backend: (a: number, b: number) => void;
7290
+ readonly maxentstresssolver_backend: (a: number) => number;
6655
7291
  readonly maxentstresssolver_currentAlpha: (a: number) => number;
6656
7292
  readonly maxentstresssolver_effectiveQ: (a: number) => number;
6657
7293
  readonly maxentstresssolver_isFinished: (a: number) => number;
6658
7294
  readonly maxentstresssolver_iteration: (a: number) => number;
6659
7295
  readonly maxentstresssolver_new: (a: number, b: number, c: any) => void;
6660
7296
  readonly maxentstresssolver_numNodes: (a: number) => number;
6661
- readonly maxentstresssolver_status: (a: number, b: number) => void;
6662
- readonly maxentstresssolver_target: (a: number, b: number) => void;
7297
+ readonly maxentstresssolver_status: (a: number) => number;
7298
+ readonly maxentstresssolver_target: (a: number) => number;
6663
7299
  readonly maxentstresssolver_totalIterations: (a: number) => number;
7300
+ readonly metricanchorweighting_balancedInvD2: () => number;
7301
+ readonly metricanchorweighting_dGate: (a: number, b: number) => void;
7302
+ readonly metricanchorweighting_inversePower: (a: number, b: number) => void;
7303
+ readonly metricanchorweighting_kind: (a: number, b: number) => void;
7304
+ readonly metricanchorweighting_longRangeGated: (a: number, b: number, c: number) => void;
7305
+ readonly metricanchorweighting_medianFrac: (a: number, b: number) => void;
7306
+ readonly metricanchorweighting_power: (a: number, b: number) => void;
7307
+ readonly metricanchorweighting_relativeLongRangeGated: (a: number, b: number, c: number) => void;
6664
7308
  readonly metricreport_adjustedPatchNig: (a: number, b: number) => void;
6665
7309
  readonly metricreport_angularResolution: (a: number, b: number) => void;
6666
7310
  readonly metricreport_aspectRatio: (a: number, b: number) => void;
@@ -6751,8 +7395,8 @@ export interface InitOutput {
6751
7395
  readonly pacmapgraphsolver_numHinges: (a: number) => number;
6752
7396
  readonly pacmapgraphsolver_numNodes: (a: number) => number;
6753
7397
  readonly pacmapgraphsolver_numSprings: (a: number) => number;
6754
- readonly pacmapgraphsolver_status: (a: number, b: number) => void;
6755
- readonly pacmapgraphsolver_target: (a: number, b: number) => void;
7398
+ readonly pacmapgraphsolver_status: (a: number) => number;
7399
+ readonly pacmapgraphsolver_target: (a: number) => number;
6756
7400
  readonly pacmapgraphsolver_totalIterations: (a: number) => number;
6757
7401
  readonly pacmapgraphsolver_withBackbone: (a: number, b: number, c: any) => void;
6758
7402
  readonly pacmapgraphsolver_withLandmarkDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
@@ -6776,8 +7420,17 @@ export interface InitOutput {
6776
7420
  readonly pivotMdsFromDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6777
7421
  readonly pivotMdsInit: (a: number, b: number, c: any) => void;
6778
7422
  readonly pivotMdsWithPivots: (a: number, b: number, c: number, d: number, e: any) => void;
6779
- readonly pivotmds_generate: (a: number, b: number, c: number) => void;
7423
+ readonly pivotmds__generateDist: (a: number, b: number) => void;
7424
+ readonly pivotmds__generateGraph: (a: number, b: number, c: number) => void;
7425
+ readonly pivotmds__generateWithReportDist: (a: number, b: number) => void;
7426
+ readonly pivotmds__generateWithReportGraph: (a: number, b: number, c: number) => void;
7427
+ readonly pivotmds_fromPivotDistances: (a: number, b: any, c: number, d: number, e: any) => void;
6780
7428
  readonly pivotmds_new: (a: number, b: any) => void;
7429
+ readonly pivotmdsreport_eigenvalues: (a: number, b: number) => void;
7430
+ readonly pivotmdsreport_embeddability2d: (a: number) => number;
7431
+ readonly pivotmdsreport_explainedVarianceRatio: (a: number, b: number, c: number) => void;
7432
+ readonly pivotmdsreportresult_layout: (a: number) => any;
7433
+ readonly pivotmdsreportresult_report: (a: number) => number;
6781
7434
  readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
6782
7435
  readonly poincareEinsteinMidpoint: (a: number, b: number, c: number, d: number, e: number) => void;
6783
7436
  readonly poincareMobiusAdd: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -6794,14 +7447,14 @@ export interface InitOutput {
6794
7447
  readonly prismoverlapremoval_numNodes: (a: number) => number;
6795
7448
  readonly prismoverlapremoval_run: (a: number, b: number, c: number) => void;
6796
7449
  readonly prismoverlapremoval_runSteps: (a: number, b: number, c: number, d: number) => void;
6797
- readonly prismoverlapremoval_status: (a: number, b: number) => void;
7450
+ readonly prismoverlapremoval_status: (a: number) => number;
6798
7451
  readonly prismoverlapremoval_step: (a: number, b: number, c: number) => void;
6799
7452
  readonly prismoverlapremoval_totalIterations: (a: number) => number;
6800
- readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
7453
+ readonly project1d: (a: number, b: number, c: number, d: any, e: any, f: any) => void;
6801
7454
  readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: any) => void;
6802
7455
  readonly projectClusteredLayoutWithRadii: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
6803
7456
  readonly projectClusteredRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
6804
- readonly projectLayoutAxis: (a: number, b: number, c: any, d: any) => void;
7457
+ readonly projectLayoutAxis: (a: number, b: number, c: any, d: any, e: any) => void;
6805
7458
  readonly projectPsdSpectralFilter: (a: number, b: any, c: any) => void;
6806
7459
  readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6807
7460
  readonly randomWalkLaplacian: (a: number) => number;
@@ -6838,8 +7491,8 @@ export interface InitOutput {
6838
7491
  readonly resistancecurvatureflowresult_numNodes: (a: number) => number;
6839
7492
  readonly resistancecurvatureflowresult_stdLinkCurvature: (a: number) => number;
6840
7493
  readonly resistancecurvatureflowresult_stepHistory: (a: number, b: number) => void;
6841
- readonly resistancecurvatureflowresult_suggestedGeometry: (a: number, b: number) => void;
6842
- readonly resistancecurvatureflowresult_suggestedManifold: (a: number, b: number) => void;
7494
+ readonly resistancecurvatureflowresult_suggestedGeometry: (a: number) => number;
7495
+ readonly resistancecurvatureflowresult_suggestedManifold: (a: number) => number;
6843
7496
  readonly resistancecurvatureflowresult_usedExact: (a: number) => number;
6844
7497
  readonly resistancecurvatureflowresult_vertexCurvatures: (a: number, b: number) => void;
6845
7498
  readonly resistancecurvaturestep_amgMaxRelativeResidual: (a: number) => number;
@@ -6889,7 +7542,7 @@ export interface InitOutput {
6889
7542
  readonly screenedpoissonfield2d_evaluateInBounds: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
6890
7543
  readonly screenedpoissonfield2d_exactAdjoint: (a: number) => number;
6891
7544
  readonly screenedpoissonfield2d_gridSize: (a: number) => number;
6892
- readonly screenedpoissonfield2d_kernel: (a: number, b: number) => void;
7545
+ readonly screenedpoissonfield2d_kernel: (a: number) => number;
6893
7546
  readonly screenedpoissonfield2d_new: (a: number, b: any) => void;
6894
7547
  readonly screenedpoissonfield2d_paddingFactor: (a: number) => number;
6895
7548
  readonly screenedpoissonfield2d_workspaceMemoryBytes: (a: number) => number;
@@ -6904,7 +7557,7 @@ export interface InitOutput {
6904
7557
  readonly screenedpoissonrefiner_run: (a: number, b: number, c: number) => void;
6905
7558
  readonly screenedpoissonrefiner_runSteps: (a: number, b: number, c: number, d: number) => void;
6906
7559
  readonly screenedpoissonrefiner_setCoarseTether: (a: number, b: number, c: number, d: number, e: number) => void;
6907
- readonly screenedpoissonrefiner_status: (a: number, b: number) => void;
7560
+ readonly screenedpoissonrefiner_status: (a: number) => number;
6908
7561
  readonly screenedpoissonrefiner_step: (a: number, b: number, c: number) => void;
6909
7562
  readonly screenedpoissonrefiner_totalIterations: (a: number) => number;
6910
7563
  readonly screenedpoissonrefiner_workspaceMemoryBytes: (a: number) => number;
@@ -6930,7 +7583,7 @@ export interface InitOutput {
6930
7583
  readonly sellayoutsolver_run: (a: number, b: number, c: number) => void;
6931
7584
  readonly sellayoutsolver_runSteps: (a: number, b: number, c: number, d: number) => void;
6932
7585
  readonly sellayoutsolver_seTarget: (a: number) => number;
6933
- readonly sellayoutsolver_status: (a: number, b: number) => void;
7586
+ readonly sellayoutsolver_status: (a: number) => number;
6934
7587
  readonly sellayoutsolver_step: (a: number, b: number, c: number) => void;
6935
7588
  readonly sellayoutsolver_totalIterations: (a: number) => number;
6936
7589
  readonly separationconstraint_gap: (a: number) => number;
@@ -6958,15 +7611,19 @@ export interface InitOutput {
6958
7611
  readonly sgd2solver__step3d: (a: number, b: number, c: number) => void;
6959
7612
  readonly sgd2solver__stepManifold: (a: number, b: number, c: number) => void;
6960
7613
  readonly sgd2solver__stepNd: (a: number, b: number, c: number) => void;
7614
+ readonly sgd2solver_batchSize: (a: number) => number;
6961
7615
  readonly sgd2solver_currentEta: (a: number) => number;
7616
+ readonly sgd2solver_damping: (a: number) => number;
7617
+ readonly sgd2solver_eps: (a: number) => number;
6962
7618
  readonly sgd2solver_isFinished: (a: number) => number;
6963
7619
  readonly sgd2solver_iteration: (a: number) => number;
6964
7620
  readonly sgd2solver_new: (a: number, b: number, c: any) => void;
6965
7621
  readonly sgd2solver_numNodes: (a: number) => number;
6966
7622
  readonly sgd2solver_numSprings: (a: number) => number;
6967
7623
  readonly sgd2solver_resetSchedule: (a: number, b: number, c: any) => void;
6968
- readonly sgd2solver_status: (a: number, b: number) => void;
6969
- readonly sgd2solver_target: (a: number, b: number) => void;
7624
+ readonly sgd2solver_status: (a: number) => number;
7625
+ readonly sgd2solver_stepScale: (a: number) => number;
7626
+ readonly sgd2solver_target: (a: number) => number;
6970
7627
  readonly sgd2solver_totalIterations: (a: number) => number;
6971
7628
  readonly sgdsolver__run2d: (a: number, b: number, c: number) => void;
6972
7629
  readonly sgdsolver__run3d: (a: number, b: number, c: number) => void;
@@ -6999,18 +7656,20 @@ export interface InitOutput {
6999
7656
  readonly sgdsolver_numSprings: (a: number) => number;
7000
7657
  readonly sgdsolver_omega: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
7001
7658
  readonly sgdsolver_ortmannSparseStress: (a: number, b: number, c: any) => void;
7659
+ readonly sgdsolver_ortmannSparseStressFromPivots: (a: number, b: number, c: any, d: any, e: any) => void;
7002
7660
  readonly sgdsolver_randomPair: (a: number, b: number, c: any) => void;
7003
7661
  readonly sgdsolver_resetSchedule: (a: number, b: number, c: any) => void;
7004
7662
  readonly sgdsolver_sparseBarrierDog: (a: number, b: number, c: any) => void;
7005
7663
  readonly sgdsolver_sparseBarrierFromLandmarks: (a: number, b: number, c: number, d: any) => void;
7006
7664
  readonly sgdsolver_stats: (a: number) => number;
7007
- readonly sgdsolver_status: (a: number, b: number) => void;
7665
+ readonly sgdsolver_status: (a: number) => number;
7008
7666
  readonly sgdsolver_streamingNegatives: (a: number, b: number, c: any) => void;
7009
7667
  readonly sgdsolver_supportsManifold: (a: number) => number;
7010
- readonly sgdsolver_target: (a: number, b: number) => void;
7668
+ readonly sgdsolver_target: (a: number) => number;
7011
7669
  readonly sgdsolver_totalIterations: (a: number) => number;
7012
7670
  readonly shiftedNormalizedLaplacian: (a: number, b: number, c: number, d: number) => void;
7013
7671
  readonly smallestLaplacianEigenpairs: (a: number, b: number, c: any) => void;
7672
+ readonly smallestSymLaplacianEigenpairsAmg: (a: number, b: number, c: any) => void;
7014
7673
  readonly snaptfdpsolver__run2d: (a: number, b: number, c: number) => void;
7015
7674
  readonly snaptfdpsolver__run3d: (a: number, b: number, c: number) => void;
7016
7675
  readonly snaptfdpsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -7028,8 +7687,8 @@ export interface InitOutput {
7028
7687
  readonly snaptfdpsolver_new: (a: number, b: number, c: any) => void;
7029
7688
  readonly snaptfdpsolver_numNodes: (a: number) => number;
7030
7689
  readonly snaptfdpsolver_numSprings: (a: number) => number;
7031
- readonly snaptfdpsolver_status: (a: number, b: number) => void;
7032
- readonly snaptfdpsolver_target: (a: number, b: number) => void;
7690
+ readonly snaptfdpsolver_status: (a: number) => number;
7691
+ readonly snaptfdpsolver_target: (a: number) => number;
7033
7692
  readonly snaptfdpsolver_totalIterations: (a: number) => number;
7034
7693
  readonly sparse12hoppairs_num1hop: (a: number) => number;
7035
7694
  readonly sparse12hoppairs_num2hop: (a: number) => number;
@@ -7062,7 +7721,7 @@ export interface InitOutput {
7062
7721
  readonly spatialintruderrefiner_runSteps: (a: number, b: number, c: number, d: number) => void;
7063
7722
  readonly spatialintruderrefiner_setKCap: (a: number, b: number, c: number) => void;
7064
7723
  readonly spatialintruderrefiner_stats: (a: number) => number;
7065
- readonly spatialintruderrefiner_status: (a: number, b: number) => void;
7724
+ readonly spatialintruderrefiner_status: (a: number) => number;
7066
7725
  readonly spatialintruderrefiner_step: (a: number, b: number, c: number) => void;
7067
7726
  readonly spatialintruderrefiner_totalIterations: (a: number) => number;
7068
7727
  readonly spatialrefinerroundstats_nAnchors: (a: number) => number;
@@ -7132,7 +7791,7 @@ export interface InitOutput {
7132
7791
  readonly stressmajorizationsolver__step3d: (a: number, b: number, c: number) => void;
7133
7792
  readonly stressmajorizationsolver__stepManifold: (a: number, b: number, c: number) => void;
7134
7793
  readonly stressmajorizationsolver__stepNd: (a: number, b: number, c: number) => void;
7135
- readonly stressmajorizationsolver_backend: (a: number, b: number) => void;
7794
+ readonly stressmajorizationsolver_backend: (a: number) => number;
7136
7795
  readonly stressmajorizationsolver_fromDistanceMatrix: (a: number, b: number, c: number, d: number, e: any) => void;
7137
7796
  readonly stressmajorizationsolver_fromGraph: (a: number, b: number, c: any) => void;
7138
7797
  readonly stressmajorizationsolver_isFinished: (a: number) => number;
@@ -7140,8 +7799,8 @@ export interface InitOutput {
7140
7799
  readonly stressmajorizationsolver_lastStress: (a: number, b: number) => void;
7141
7800
  readonly stressmajorizationsolver_new: (a: number, b: number, c: any) => void;
7142
7801
  readonly stressmajorizationsolver_numNodes: (a: number) => number;
7143
- readonly stressmajorizationsolver_status: (a: number, b: number) => void;
7144
- readonly stressmajorizationsolver_target: (a: number, b: number) => void;
7802
+ readonly stressmajorizationsolver_status: (a: number) => number;
7803
+ readonly stressmajorizationsolver_target: (a: number) => number;
7145
7804
  readonly stressmajorizationsolver_totalIterations: (a: number) => number;
7146
7805
  readonly sweepCrossingAngle: (a: number, b: number, c: number) => void;
7147
7806
  readonly sweepCrossingNumber: (a: number, b: number, c: number) => void;
@@ -7157,7 +7816,7 @@ export interface InitOutput {
7157
7816
  readonly tfdpsolver__step2d: (a: number, b: number, c: number) => void;
7158
7817
  readonly tfdpsolver__step3d: (a: number, b: number, c: number) => void;
7159
7818
  readonly tfdpsolver__stepNd: (a: number, b: number, c: number) => void;
7160
- readonly tfdpsolver_backend: (a: number, b: number) => void;
7819
+ readonly tfdpsolver_backend: (a: number) => number;
7161
7820
  readonly tfdpsolver_currentRho: (a: number) => number;
7162
7821
  readonly tfdpsolver_fromKnn: (a: number, b: any, c: any, d: any, e: any) => void;
7163
7822
  readonly tfdpsolver_isFinished: (a: number) => number;
@@ -7165,8 +7824,8 @@ export interface InitOutput {
7165
7824
  readonly tfdpsolver_new: (a: number, b: number, c: any) => void;
7166
7825
  readonly tfdpsolver_numEdges: (a: number) => number;
7167
7826
  readonly tfdpsolver_numNodes: (a: number) => number;
7168
- readonly tfdpsolver_status: (a: number, b: number) => void;
7169
- readonly tfdpsolver_target: (a: number, b: number) => void;
7827
+ readonly tfdpsolver_status: (a: number) => number;
7828
+ readonly tfdpsolver_target: (a: number) => number;
7170
7829
  readonly tfdpsolver_totalFft2dCalls: (a: number) => number;
7171
7830
  readonly tfdpsolver_totalIterations: (a: number) => number;
7172
7831
  readonly torusDistance: (a: number, b: number, c: number, d: number) => number;
@@ -7184,6 +7843,8 @@ export interface InitOutput {
7184
7843
  readonly toruscrossing_v1: (a: number) => number;
7185
7844
  readonly toruscrossing_v2: (a: number) => number;
7186
7845
  readonly transitiveReduction: (a: number, b: number) => void;
7846
+ readonly tsnetsolver__fromProbabilitiesWithConformalNoAnchor: (a: number, b: number, c: any, d: any, e: any) => void;
7847
+ readonly tsnetsolver__fromProbabilitiesWithConformalWithAnchor: (a: number, b: number, c: any, d: any, e: number, f: any) => void;
7187
7848
  readonly tsnetsolver__run2d: (a: number, b: number, c: number) => void;
7188
7849
  readonly tsnetsolver__run3d: (a: number, b: number, c: number) => void;
7189
7850
  readonly tsnetsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -7196,7 +7857,7 @@ export interface InitOutput {
7196
7857
  readonly tsnetsolver__step3d: (a: number, b: number, c: number) => void;
7197
7858
  readonly tsnetsolver__stepManifold: (a: number, b: number, c: number) => void;
7198
7859
  readonly tsnetsolver__stepNd: (a: number, b: number, c: number) => void;
7199
- readonly tsnetsolver_backend: (a: number, b: number) => void;
7860
+ readonly tsnetsolver_backend: (a: number) => number;
7200
7861
  readonly tsnetsolver_currentStageLr: (a: number) => number;
7201
7862
  readonly tsnetsolver_fromGraphPartialBfs: (a: number, b: number, c: any) => void;
7202
7863
  readonly tsnetsolver_fromGraphRowNormalized: (a: number, b: number, c: any) => void;
@@ -7210,19 +7871,23 @@ export interface InitOutput {
7210
7871
  readonly tsnetsolver_new: (a: number, b: number, c: any) => void;
7211
7872
  readonly tsnetsolver_numNodes: (a: number) => number;
7212
7873
  readonly tsnetsolver_pure2Hop: (a: number, b: number, c: any) => void;
7213
- readonly tsnetsolver_resolvedBackend: (a: number, b: number) => void;
7214
- readonly tsnetsolver_samplingMode: (a: number, b: number) => void;
7874
+ readonly tsnetsolver_resolvedBackend: (a: number) => number;
7875
+ readonly tsnetsolver_samplingMode: (a: number) => number;
7215
7876
  readonly tsnetsolver_stageIndex: (a: number) => number;
7216
- readonly tsnetsolver_status: (a: number, b: number) => void;
7217
- readonly tsnetsolver_target: (a: number, b: number) => void;
7877
+ readonly tsnetsolver_status: (a: number) => number;
7878
+ readonly tsnetsolver_target: (a: number) => number;
7218
7879
  readonly tsnetsolver_totalFft2dCalls: (a: number) => number;
7219
7880
  readonly tsnetsolver_totalIterations: (a: number) => number;
7881
+ readonly tsnetstage_coercive1hop: (a: number) => number;
7220
7882
  readonly tsnetstage_exaggeration: (a: number) => number;
7221
7883
  readonly tsnetstage_iterations: (a: number) => number;
7222
7884
  readonly tsnetstage_lambdaC: (a: number) => number;
7223
7885
  readonly tsnetstage_lambdaKl: (a: number) => number;
7886
+ readonly tsnetstage_lambdaMetric: (a: number) => number;
7224
7887
  readonly tsnetstage_lambdaR: (a: number) => number;
7225
7888
  readonly tsnetstage_new: (a: number, b: any, c: any) => void;
7889
+ readonly tsnetstage_spring1hop: (a: number) => number;
7890
+ readonly tsnetstage_springDeadzone: (a: number) => number;
7226
7891
  readonly twindeclutterer_apply: (a: number, b: number, c: number) => void;
7227
7892
  readonly twindeclutterer_lastClusterCount: (a: number) => number;
7228
7893
  readonly twindeclutterer_lastMovedCount: (a: number) => number;
@@ -7238,6 +7903,17 @@ export interface InitOutput {
7238
7903
  readonly twohopknnresult_n2hop: (a: number) => number;
7239
7904
  readonly twohopknnresult_nTruncated2hop: (a: number) => number;
7240
7905
  readonly twohopknnresult_nnz: (a: number) => number;
7906
+ readonly unifiedmetricanchor_activeFraction: (a: number) => number;
7907
+ readonly unifiedmetricanchor_fromEmbeddingPivots: (a: number, b: any, c: number, d: number, e: any, f: any) => void;
7908
+ readonly unifiedmetricanchor_fromF64Pivots: (a: number, b: number, c: any, d: any, e: any) => void;
7909
+ readonly unifiedmetricanchor_fromHopPivots: (a: number, b: number, c: any, d: any, e: any) => void;
7910
+ readonly unifiedmetricanchor_numNodes: (a: number) => number;
7911
+ readonly unifiedmetricanchor_pivotDistances: (a: number, b: number) => void;
7912
+ readonly unifiedmetricanchor_pivots: (a: number, b: number) => void;
7913
+ readonly unifiedmetricanchor_scaleAlpha: (a: number) => number;
7914
+ readonly unifiedmetricanchor_softEps: (a: number) => number;
7915
+ readonly unifiedmetricanchor_sumWd2: (a: number) => number;
7916
+ readonly unifiedmetricanchor_weights: (a: number, b: number) => void;
7241
7917
  readonly wasmMemory: () => any;
7242
7918
  readonly wasm_start: () => void;
7243
7919
  readonly wrapTorusPoint: (a: number, b: number, c: number) => void;
@@ -7250,15 +7926,15 @@ export interface InitOutput {
7250
7926
  readonly yifanhusolver__step2d: (a: number, b: number, c: number) => void;
7251
7927
  readonly yifanhusolver__step3d: (a: number, b: number, c: number) => void;
7252
7928
  readonly yifanhusolver__stepNd: (a: number, b: number, c: number) => void;
7253
- readonly yifanhusolver_backend: (a: number, b: number) => void;
7929
+ readonly yifanhusolver_backend: (a: number) => number;
7254
7930
  readonly yifanhusolver_currentLevel: (a: number) => number;
7255
7931
  readonly yifanhusolver_isFinished: (a: number) => number;
7256
7932
  readonly yifanhusolver_iteration: (a: number) => number;
7257
7933
  readonly yifanhusolver_new: (a: number, b: number, c: any) => void;
7258
7934
  readonly yifanhusolver_numLevels: (a: number) => number;
7259
7935
  readonly yifanhusolver_numNodes: (a: number) => number;
7260
- readonly yifanhusolver_status: (a: number, b: number) => void;
7261
- readonly yifanhusolver_target: (a: number, b: number) => void;
7936
+ readonly yifanhusolver_status: (a: number) => number;
7937
+ readonly yifanhusolver_target: (a: number) => number;
7262
7938
  readonly yifanhusolver_totalIterations: (a: number) => number;
7263
7939
  readonly __wbindgen_export: (a: number, b: number) => number;
7264
7940
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;