egraph 6.0.0-beta.4 → 6.0.0-rc.1

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.
@@ -140,11 +140,11 @@ export class AmgPcgSolver {
140
140
  /**
141
141
  * Constructs an `AmgPcgSolver` for a shifted graph Laplacian (`AmgLaplacianKind.Combinatorial` or `SymmetricNormalized`).
142
142
  */
143
- 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;
144
144
  /**
145
145
  * Constructs an `AmgPcgSolver` for `I + gamma * L_sym` with exact `D^{1/2} 1` near-nullspace.
146
146
  */
147
- static fromGraphRegularizedLaplacian(graph: CsrGraph, gamma: number | null | undefined, options: any): AmgPcgSolver;
147
+ static fromGraphRegularizedLaplacian(graph: Graph, gamma: number | null | undefined, options: any): AmgPcgSolver;
148
148
  /**
149
149
  * Executes up to `steps` cooperative PCG iterations and returns the updated status.
150
150
  */
@@ -300,9 +300,37 @@ export class ArenaOctree3d {
300
300
  */
301
301
  computeMaxentRepulsion(theta?: number | null, q?: number | null, eps_sq?: number | null): Float32Array;
302
302
  /**
303
- * Constructs an empty reusable `ArenaOctree3d` workspace.
303
+ * Constructs an empty reusable `ArenaOctree3d` workspace with optional configuration.
304
304
  */
305
- constructor();
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.
324
+ */
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;
306
334
  /**
307
335
  * Returns the total number of internal and leaf octree nodes allocated.
308
336
  */
@@ -311,6 +339,10 @@ export class ArenaOctree3d {
311
339
  * Returns the number of points currently indexed in the octree.
312
340
  */
313
341
  readonly pointCount: number;
342
+ /**
343
+ * Returns the minimum pre-reserved DFS traversal stack capacity (`>= 1`).
344
+ */
345
+ readonly traversalStackCap: number;
314
346
  }
315
347
 
316
348
  /**
@@ -329,9 +361,9 @@ export class BackboneResult {
329
361
  free(): void;
330
362
  [Symbol.dispose](): void;
331
363
  /**
332
- * Returns a cloned weighted undirected `CsrGraph` representing the reweighted backbone.
364
+ * Returns a cloned weighted undirected `Graph` representing the reweighted backbone.
333
365
  */
334
- backboneCsr(): CsrGraph;
366
+ backboneCsr(): Graph;
335
367
  /**
336
368
  * Returns flat `[u0, v0, u1, v1, ...]` backbone edge endpoints (`Uint32Array`).
337
369
  */
@@ -367,7 +399,7 @@ export class BackboneSolver {
367
399
  /**
368
400
  * Constructs a `BackboneSolver` from `graph` and optional `BackboneOptions`.
369
401
  */
370
- constructor(graph: CsrGraph, options: any);
402
+ constructor(graph: Graph, options: any);
371
403
  /**
372
404
  * Executes up to `steps` backbone layout iterations on `layout` in place.
373
405
  */
@@ -429,7 +461,7 @@ export class ChebyshevDogKernel {
429
461
  /**
430
462
  * Builds a `ChebyshevDogKernel` from `graph` using Core-First MaxMin landmarks.
431
463
  */
432
- constructor(graph: CsrGraph, options: any);
464
+ constructor(graph: Graph, options: any);
433
465
  termsPsd(): Array<any>;
434
466
  /**
435
467
  * Converts the landmark kernel block into a `(numNodes, numLandmarks)` Normalized Varadhan table.
@@ -438,7 +470,7 @@ export class ChebyshevDogKernel {
438
470
  /**
439
471
  * Builds a `ChebyshevDogKernel` using explicitly provided `landmarks`.
440
472
  */
441
- static withLandmarks(graph: CsrGraph, landmarks: Uint32Array | number[], options: any): ChebyshevDogKernel;
473
+ static withLandmarks(graph: Graph, landmarks: Uint32Array | number[], options: any): ChebyshevDogKernel;
442
474
  readonly alpha: number;
443
475
  readonly betaAuto: number;
444
476
  readonly betaEff: number;
@@ -470,7 +502,7 @@ export class ClassDensityResult {
470
502
  export class ClassicalMds {
471
503
  free(): void;
472
504
  [Symbol.dispose](): void;
473
- generate(graph: CsrGraph): any;
505
+ generate(graph: Graph): any;
474
506
  constructor(options: any);
475
507
  }
476
508
 
@@ -527,7 +559,7 @@ export class ClusterRefineSolver {
527
559
  /**
528
560
  * Constructs a `ClusterRefineSolver` with graph topology for `hac` mean edge-length scaling.
529
561
  */
530
- static fromGraph(graph: CsrGraph, labels: any, options: any): ClusterRefineSolver;
562
+ static fromGraph(graph: Graph, labels: any, options: any): ClusterRefineSolver;
531
563
  /**
532
564
  * Constructs a `ClusterRefineSolver` from `labels` without graph edge lengths.
533
565
  */
@@ -582,7 +614,7 @@ export class CoarseBackbone {
582
614
  [Symbol.dispose](): void;
583
615
  generateResult(): CoarseBackboneResult;
584
616
  generate(): Layout2d;
585
- constructor(graph: CsrGraph, options: any);
617
+ constructor(graph: Graph, options: any);
586
618
  }
587
619
 
588
620
  /**
@@ -593,9 +625,9 @@ export class CoarseBackboneResult {
593
625
  free(): void;
594
626
  [Symbol.dispose](): void;
595
627
  /**
596
- * Returns the coarsest `CsrGraph` (`f32`).
628
+ * Returns the coarsest `Graph` (`f32`).
597
629
  */
598
- coarseGraph(): CsrGraph;
630
+ coarseGraph(): Graph;
599
631
  /**
600
632
  * Returns the coarse super-node `Layout2d` (`f32`) scaled consistently with `fineLayout`.
601
633
  */
@@ -658,9 +690,9 @@ export class CoarsenedGraphResult {
658
690
  */
659
691
  coarseSizes(): Uint32Array;
660
692
  /**
661
- * Returns a cloned handle to the weighted undirected coarsened `CsrGraph`.
693
+ * Returns a cloned handle to the weighted undirected coarsened `Graph`.
662
694
  */
663
- graph(): CsrGraph;
695
+ graph(): Graph;
664
696
  /**
665
697
  * Returns the compacted `0..numClusters` cluster ID for each original vertex (`Uint32Array`).
666
698
  */
@@ -679,9 +711,9 @@ export class CoarsenedHierarchyResult {
679
711
  free(): void;
680
712
  [Symbol.dispose](): void;
681
713
  /**
682
- * Returns a cloned handle to the coarsest super-graph `CsrGraph`.
714
+ * Returns a cloned handle to the coarsest super-graph `Graph`.
683
715
  */
684
- coarseGraph(): CsrGraph;
716
+ coarseGraph(): Graph;
685
717
  /**
686
718
  * Returns the original vertex counts per coarsest cluster (`Uint32Array`).
687
719
  */
@@ -743,108 +775,6 @@ export class CrossingSummary {
743
775
  readonly minAngleRad: number | undefined;
744
776
  }
745
777
 
746
- /**
747
- * Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
748
- */
749
- export class CsrGraph {
750
- private constructor();
751
- free(): void;
752
- [Symbol.dispose](): void;
753
- /**
754
- * Returns the degree (outgoing degree for directed graphs) of vertex `u`.
755
- */
756
- degree(u: number): number;
757
- /**
758
- * Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
759
- */
760
- edgeWeight(u: number, v: number): number | undefined;
761
- /**
762
- * Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
763
- */
764
- edges(): Uint32Array;
765
- /**
766
- * Constructs a `CsrGraph` from CSR `indptr`, `indices`, and optional `weights`.
767
- *
768
- * The optional trailing parameters accept either `(directed, sanitize)` booleans or an
769
- * options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
770
- * Defaults are `directed = false` and `sanitize = true`.
771
- */
772
- static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): CsrGraph;
773
- /**
774
- * Constructs a `CsrGraph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
775
- * and optional `weights`.
776
- */
777
- static fromEdgeList(num_nodes: number, edges: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): CsrGraph;
778
- /**
779
- * Returns `true` if an edge `(u, v)` exists in the graph.
780
- */
781
- hasEdge(u: number, v: number): boolean;
782
- /**
783
- * Returns a copy of the flat CSR `indices` neighbor array.
784
- */
785
- indices(): Uint32Array;
786
- /**
787
- * Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
788
- */
789
- indptr(): Uint32Array;
790
- /**
791
- * Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
792
- */
793
- inducedSubgraph(nodes: Uint32Array | number[]): CsrGraph;
794
- /**
795
- * Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
796
- */
797
- isConnected(): boolean;
798
- /**
799
- * Returns `true` if the graph is directed.
800
- */
801
- isDirected(): boolean;
802
- /**
803
- * Returns `true` if the graph contains zero vertices.
804
- */
805
- isEmpty(): boolean;
806
- /**
807
- * Returns `true` if explicit edge weights are stored.
808
- */
809
- isWeighted(): boolean;
810
- /**
811
- * Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
812
- */
813
- largestConnectedComponent(): LargestConnectedComponentResult;
814
- /**
815
- * Returns the number of vertices in the graph.
816
- */
817
- len(): number;
818
- /**
819
- * Returns a copy of the neighbor indices adjacent to vertex `u`.
820
- */
821
- neighbors(u: number): Uint32Array;
822
- /**
823
- * Returns the number of stored CSR half-edge entries (`indices().length`).
824
- */
825
- nnz(): number;
826
- /**
827
- * Returns the number of logical edges in the graph.
828
- */
829
- numEdges(): number;
830
- /**
831
- * Returns the number of vertices in the graph.
832
- */
833
- numNodes(): number;
834
- /**
835
- * Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
836
- */
837
- weights(): Float32Array | undefined;
838
- /**
839
- * Returns the number of vertices in the graph.
840
- */
841
- readonly length: number;
842
- /**
843
- * Returns the scalar weight dtype stored in WebAssembly (`WeightDtype.Float32`).
844
- */
845
- readonly weightDtype: WeightDtype;
846
- }
847
-
848
778
  /**
849
779
  * Double-precision square Compressed Sparse Row matrix (`CsrMatrix`) with spectral bounds
850
780
  * and matrix-vector operations.
@@ -963,7 +893,7 @@ export enum DensityFieldKernel {
963
893
  }
964
894
 
965
895
  /**
966
- * Reusable epoch-stamped single-source Dijkstra workspace over `CsrGraph`.
896
+ * Reusable epoch-stamped single-source Dijkstra workspace over `Graph`.
967
897
  */
968
898
  export class DijkstraWorkspace {
969
899
  free(): void;
@@ -972,7 +902,7 @@ export class DijkstraWorkspace {
972
902
  * Computes single-source shortest-path distances (`Float64Array`, `Infinity` for unreachable)
973
903
  * from `source` on `graph`, reusing internal workspace allocations.
974
904
  */
975
- dijkstraFrom(graph: CsrGraph, source: number): Float64Array;
905
+ dijkstraFrom(graph: Graph, source: number): Float64Array;
976
906
  /**
977
907
  * Ensures internal scratch capacity covers at least `numNodes` vertices.
978
908
  */
@@ -1072,7 +1002,7 @@ export class DogVaradhanLandmarks {
1072
1002
  }
1073
1003
 
1074
1004
  /**
1075
- * 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`).
1076
1006
  */
1077
1007
  export class DrGraphSolver {
1078
1008
  free(): void;
@@ -1092,7 +1022,7 @@ export class DrGraphSolver {
1092
1022
  /**
1093
1023
  * Constructs a `DrGraphSolver` from `graph` and `DrGraphOptions`.
1094
1024
  */
1095
- constructor(graph: CsrGraph, options: any);
1025
+ constructor(graph: Graph, options: any);
1096
1026
  readonly currentLr: number;
1097
1027
  readonly isFinished: boolean;
1098
1028
  readonly iteration: number;
@@ -1113,11 +1043,11 @@ export class DynamicKdTree {
1113
1043
  /**
1114
1044
  * Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
1115
1045
  */
1116
- static fromFlat(coords: Float32Array | number[], n: number, dims: number): DynamicKdTree;
1046
+ static fromFlat(coords: Float32Array | number[], n: number, dims: number, options: any): DynamicKdTree;
1117
1047
  /**
1118
1048
  * Constructs a `DynamicKdTree` directly from a `LayoutNd`.
1119
1049
  */
1120
- static fromLayoutNd(layout: LayoutNd): DynamicKdTree;
1050
+ static fromLayoutNd(layout: LayoutNd, options: any): DynamicKdTree;
1121
1051
  /**
1122
1052
  * Returns `true` if the tree contains zero points.
1123
1053
  */
@@ -1141,11 +1071,15 @@ export class DynamicKdTree {
1141
1071
  /**
1142
1072
  * Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
1143
1073
  */
1144
- constructor(coords: Float32Array | number[], n: number, dims: number);
1074
+ constructor(coords: Float32Array | number[], n: number, dims: number, options: any);
1145
1075
  /**
1146
1076
  * Returns a `Float64Array` copy of point `index`'s coordinates.
1147
1077
  */
1148
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;
1149
1083
  /**
1150
1084
  * Returns all points `Array<{ index, distSq }>` within squared distance `radiusSq` of `query`.
1151
1085
  */
@@ -1158,6 +1092,10 @@ export class DynamicKdTree {
1158
1092
  * Returns the spatial dimensionality `D` of indexed points.
1159
1093
  */
1160
1094
  readonly dims: number;
1095
+ /**
1096
+ * Returns the maximum leaf node bucket size (`>= 1`).
1097
+ */
1098
+ readonly leafSize: number;
1161
1099
  /**
1162
1100
  * Returns the number of points indexed in the tree.
1163
1101
  */
@@ -1176,9 +1114,9 @@ export class EdgePolylines {
1176
1114
  static _fromParts2d(edge_offsets: Uint32Array | number[], points: Layout2d): EdgePolylines;
1177
1115
  static _fromParts3d(edge_offsets: Uint32Array | number[], points: Layout3d): EdgePolylines;
1178
1116
  static _fromPartsNd(edge_offsets: Uint32Array | number[], points: LayoutNd): EdgePolylines;
1179
- static _straightLineFromGraph2d(graph: CsrGraph, layout: Layout2d): EdgePolylines;
1180
- static _straightLineFromGraph3d(graph: CsrGraph, layout: Layout3d): EdgePolylines;
1181
- 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;
1182
1120
  /**
1183
1121
  * Returns a freshly allocated `Uint32Array` copy of `edgeOffsets`.
1184
1122
  */
@@ -1404,6 +1342,40 @@ export class FdebSolver {
1404
1342
  readonly totalIterations: number | undefined;
1405
1343
  }
1406
1344
 
1345
+ /**
1346
+ * Per-step `IbFft` field telemetry counters returned by `TFdpSolver.lastFftStats()` and
1347
+ * `IbUmapSolver.lastFftStats()`.
1348
+ */
1349
+ export class FieldFftStats {
1350
+ private constructor();
1351
+ free(): void;
1352
+ [Symbol.dispose](): void;
1353
+ /**
1354
+ * Number of inverse 2D FFTs executed.
1355
+ */
1356
+ readonly inverseFfts: number;
1357
+ /**
1358
+ * Number of forward 2D FFTs executed on kernel grids.
1359
+ */
1360
+ readonly kernelForwardFfts: number;
1361
+ /**
1362
+ * Active FFT grid width.
1363
+ */
1364
+ readonly nx: number;
1365
+ /**
1366
+ * Active FFT grid height.
1367
+ */
1368
+ readonly ny: number;
1369
+ /**
1370
+ * Number of forward 2D FFTs executed on particle charge grids.
1371
+ */
1372
+ readonly particleForwardFfts: number;
1373
+ /**
1374
+ * Total `fft_2d` calls for this step.
1375
+ */
1376
+ readonly totalFft2dCalls: number;
1377
+ }
1378
+
1407
1379
  /**
1408
1380
  * r" Repulsion backend selector for `TFdpSolver`, `IbUmapSolver`, and `SelLayoutSolver`.
1409
1381
  */
@@ -1414,6 +1386,31 @@ export enum FieldRepulsionBackend {
1414
1386
  Exact = 3,
1415
1387
  }
1416
1388
 
1389
+ /**
1390
+ * Radial KL repulsion kernel family for `TsNetSolver`.
1391
+ */
1392
+ export class FieldRepulsionKernel {
1393
+ private constructor();
1394
+ free(): void;
1395
+ [Symbol.dispose](): void;
1396
+ /**
1397
+ * Classic Student-t Cauchy kernel `(1 + r^2)^(-1)`.
1398
+ */
1399
+ static cauchy(): FieldRepulsionKernel;
1400
+ /**
1401
+ * Generalized Box-Cox gamma-tail Cauchy kernel `(1 + r^2)^(-gamma)` (`gamma in (0.25, 6.0]`).
1402
+ */
1403
+ static generalizedCauchy(gamma: number): FieldRepulsionKernel;
1404
+ /**
1405
+ * Rational screened Cauchy kernel `(1 + r^2)^(-1) * (1 + r^2 / ell^2)^(-1)`.
1406
+ */
1407
+ static screenedCauchy(screen_frac: number, min_screen?: number | null): FieldRepulsionKernel;
1408
+ readonly gamma: number | undefined;
1409
+ readonly kind: string;
1410
+ readonly minScreen: number | undefined;
1411
+ readonly screenFrac: number | undefined;
1412
+ }
1413
+
1417
1414
  /**
1418
1415
  * FFT field telemetry counters returned by `TsNetSolver.lastFftStats()`.
1419
1416
  */
@@ -1506,7 +1503,7 @@ export class ForceAtlas2Solver {
1506
1503
  /**
1507
1504
  * Constructs a `ForceAtlas2Solver` from `graph` and optional `ForceAtlas2Options`.
1508
1505
  */
1509
- constructor(graph: CsrGraph, options: any);
1506
+ constructor(graph: Graph, options: any);
1510
1507
  nodeRadii(): Float64Array;
1511
1508
  readonly backend: ForceBackend;
1512
1509
  readonly isFinished: boolean;
@@ -1558,7 +1555,7 @@ export class FruchtermanReingoldSolver {
1558
1555
  /**
1559
1556
  * Constructs a `FruchtermanReingoldSolver` from `graph` and optional `FruchtermanReingoldOptions`.
1560
1557
  */
1561
- constructor(graph: CsrGraph, options: any);
1558
+ constructor(graph: Graph, options: any);
1562
1559
  readonly backend: FrBackend;
1563
1560
  readonly currentTemperature: number;
1564
1561
  readonly isFinished: boolean;
@@ -1637,7 +1634,7 @@ export class GemSolver {
1637
1634
  /**
1638
1635
  * Constructs a `GemSolver` from `graph` and optional `GemOptions`.
1639
1636
  */
1640
- constructor(graph: CsrGraph, options: any);
1637
+ constructor(graph: Graph, options: any);
1641
1638
  /**
1642
1639
  * Executes up to `steps` GEM rounds on `layout` in place.
1643
1640
  */
@@ -1689,6 +1686,108 @@ export enum GibIntraLayoutMode {
1689
1686
  YifanHu = 2,
1690
1687
  }
1691
1688
 
1689
+ /**
1690
+ * Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
1691
+ */
1692
+ export class Graph {
1693
+ private constructor();
1694
+ free(): void;
1695
+ [Symbol.dispose](): void;
1696
+ /**
1697
+ * Returns the degree (outgoing degree for directed graphs) of vertex `u`.
1698
+ */
1699
+ degree(u: number): number;
1700
+ /**
1701
+ * Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
1702
+ */
1703
+ edgeWeight(u: number, v: number): number | undefined;
1704
+ /**
1705
+ * Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
1706
+ */
1707
+ edges(): Uint32Array;
1708
+ /**
1709
+ * Constructs a `Graph` from CSR `indptr`, `indices`, and optional `weights`.
1710
+ *
1711
+ * The optional trailing parameters accept either `(directed, sanitize)` booleans or an
1712
+ * options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
1713
+ * Defaults are `directed = false` and `sanitize = true`.
1714
+ */
1715
+ static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): Graph;
1716
+ /**
1717
+ * Constructs a `Graph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
1718
+ * and optional `weights`.
1719
+ */
1720
+ static fromEdgeList(num_nodes: number, edges: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): Graph;
1721
+ /**
1722
+ * Returns `true` if an edge `(u, v)` exists in the graph.
1723
+ */
1724
+ hasEdge(u: number, v: number): boolean;
1725
+ /**
1726
+ * Returns a copy of the flat CSR `indices` neighbor array.
1727
+ */
1728
+ indices(): Uint32Array;
1729
+ /**
1730
+ * Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
1731
+ */
1732
+ indptr(): Uint32Array;
1733
+ /**
1734
+ * Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
1735
+ */
1736
+ inducedSubgraph(nodes: Uint32Array | number[]): Graph;
1737
+ /**
1738
+ * Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
1739
+ */
1740
+ isConnected(): boolean;
1741
+ /**
1742
+ * Returns `true` if the graph is directed.
1743
+ */
1744
+ isDirected(): boolean;
1745
+ /**
1746
+ * Returns `true` if the graph contains zero vertices.
1747
+ */
1748
+ isEmpty(): boolean;
1749
+ /**
1750
+ * Returns `true` if explicit edge weights are stored.
1751
+ */
1752
+ isWeighted(): boolean;
1753
+ /**
1754
+ * Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
1755
+ */
1756
+ largestConnectedComponent(): LargestConnectedComponentResult;
1757
+ /**
1758
+ * Returns the number of vertices in the graph.
1759
+ */
1760
+ len(): number;
1761
+ /**
1762
+ * Returns a copy of the neighbor indices adjacent to vertex `u`.
1763
+ */
1764
+ neighbors(u: number): Uint32Array;
1765
+ /**
1766
+ * Returns the number of stored CSR half-edge entries (`indices().length`).
1767
+ */
1768
+ nnz(): number;
1769
+ /**
1770
+ * Returns the number of logical edges in the graph.
1771
+ */
1772
+ numEdges(): number;
1773
+ /**
1774
+ * Returns the number of vertices in the graph.
1775
+ */
1776
+ numNodes(): number;
1777
+ /**
1778
+ * Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
1779
+ */
1780
+ weights(): Float32Array | undefined;
1781
+ /**
1782
+ * Returns the number of vertices in the graph.
1783
+ */
1784
+ readonly length: number;
1785
+ /**
1786
+ * Returns the scalar weight dtype stored in WebAssembly (`WeightDtype.Float32`).
1787
+ */
1788
+ readonly weightDtype: WeightDtype;
1789
+ }
1790
+
1692
1791
  /**
1693
1792
  * r" Contrastive objective for `GraphCneSolver`.
1694
1793
  */
@@ -1698,7 +1797,7 @@ export enum GraphCneObjective {
1698
1797
  }
1699
1798
 
1700
1799
  /**
1701
- * Cooperative `Graph-CNE` (Bohm et al., 2025) contrastive neighbor embedding solver (`f32`).
1800
+ * Cooperative `Graph-CNE` (Böhm et al., 2025) contrastive neighbor embedding solver (`f32`).
1702
1801
  */
1703
1802
  export class GraphCneSolver {
1704
1803
  free(): void;
@@ -1718,7 +1817,7 @@ export class GraphCneSolver {
1718
1817
  /**
1719
1818
  * Constructs a `GraphCneSolver` from `graph` and `GraphCneOptions`.
1720
1819
  */
1721
- constructor(graph: CsrGraph, options: any);
1820
+ constructor(graph: Graph, options: any);
1722
1821
  readonly currentLr: number;
1723
1822
  readonly isFinished: boolean;
1724
1823
  readonly iteration: number;
@@ -1735,7 +1834,7 @@ export class GraphCneSolver {
1735
1834
  export class GripSolver {
1736
1835
  free(): void;
1737
1836
  [Symbol.dispose](): void;
1738
- constructor(graph: CsrGraph, options: any);
1837
+ constructor(graph: Graph, options: any);
1739
1838
  runSteps(layout: Layout2d, steps: number): SolverStatus;
1740
1839
  run(layout: Layout2d): SolverStatus;
1741
1840
  step(layout: Layout2d): SolverStatus;
@@ -1763,7 +1862,7 @@ export class GroupInABoxSolver {
1763
1862
  /**
1764
1863
  * Constructs a `GroupInABoxSolver` from `graph`, `labels`, and optional `GroupInABoxOptions`.
1765
1864
  */
1766
- constructor(graph: CsrGraph, labels: any, options: any);
1865
+ constructor(graph: Graph, labels: any, options: any);
1767
1866
  /**
1768
1867
  * Executes up to `steps` intra-box layout iterations on `layout` in place.
1769
1868
  */
@@ -1821,9 +1920,9 @@ export class GuMapSolver {
1821
1920
  */
1822
1921
  static fromFuzzySet(probs: SparseProbabilities, options: any): GuMapSolver;
1823
1922
  /**
1824
- * Constructs a `GuMapSolver` from a `CsrGraph` using 1+2-hop pairs and DoG Varadhan landmarks.
1923
+ * Constructs a `GuMapSolver` from a `Graph` using 1+2-hop pairs and DoG Varadhan landmarks.
1825
1924
  */
1826
- static fromGraphDog(graph: CsrGraph, options: any): GuMapSolver;
1925
+ static fromGraphDog(graph: Graph, options: any): GuMapSolver;
1827
1926
  /**
1828
1927
  * Constructs a `GuMapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
1829
1928
  */
@@ -1831,11 +1930,11 @@ export class GuMapSolver {
1831
1930
  /**
1832
1931
  * Constructs a `GuMapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop priority CSR.
1833
1932
  */
1834
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): GuMapSolver;
1933
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): GuMapSolver;
1835
1934
  /**
1836
1935
  * Constructs a `GuMapSolver` from `graph` using 1+2-hop pairs and DoG Varadhan landmarks.
1837
1936
  */
1838
- constructor(graph: CsrGraph, options: any);
1937
+ constructor(graph: Graph, options: any);
1839
1938
  readonly a: number;
1840
1939
  readonly ab: Float64Array;
1841
1940
  readonly b: number;
@@ -1855,7 +1954,7 @@ export class GuMapSolver {
1855
1954
  export class Hde {
1856
1955
  free(): void;
1857
1956
  [Symbol.dispose](): void;
1858
- generate(graph: CsrGraph): any;
1957
+ generate(graph: Graph): any;
1859
1958
  constructor(options: any);
1860
1959
  }
1861
1960
 
@@ -1896,6 +1995,38 @@ export class HybridKnnResult {
1896
1995
  readonly nnz: number;
1897
1996
  }
1898
1997
 
1998
+ /**
1999
+ * Per-vertex hub-damping policy for `IbUmapSolver`.
2000
+ */
2001
+ export class IbUmapHubDamping {
2002
+ private constructor();
2003
+ free(): void;
2004
+ [Symbol.dispose](): void;
2005
+ /**
2006
+ * Explicit caller-supplied per-vertex hub damping factors `eta_i >= 0.0`.
2007
+ */
2008
+ static explicit(hub_eta: any): IbUmapHubDamping;
2009
+ /**
2010
+ * Generalized inverse-degree power hub damping (`eta_i = max(deg(i), 1)^(-exponent)`).
2011
+ */
2012
+ static inverseDegreePower(exponent: number): IbUmapHubDamping;
2013
+ /**
2014
+ * Classic inverse-degree hub damping (`eta_i = 1 / max(deg(i), 1)`).
2015
+ */
2016
+ static inverseDegree(): IbUmapHubDamping;
2017
+ /**
2018
+ * Median-row-sum hub damping preserving unit step sizes on typical vertices.
2019
+ */
2020
+ static medianRowSum(): IbUmapHubDamping;
2021
+ /**
2022
+ * Disable hub damping (`eta_i = 1.0`).
2023
+ */
2024
+ static none(): IbUmapHubDamping;
2025
+ readonly exponent: number | undefined;
2026
+ readonly hubEta: Float64Array | undefined;
2027
+ readonly kind: string;
2028
+ }
2029
+
1899
2030
  /**
1900
2031
  * Cooperative interpolation-based batch Graph UMAP (`ibUMAP`) solver (`f32`, `layout2d`).
1901
2032
  */
@@ -1914,12 +2045,17 @@ export class IbUmapSolver {
1914
2045
  /**
1915
2046
  * Constructs an `IbUmapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop pairs.
1916
2047
  */
1917
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): IbUmapSolver;
2048
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): IbUmapSolver;
1918
2049
  /**
1919
- * Constructs an `IbUmapSolver` from a `CsrGraph` using $O(|E|)$ 1+2-hop pairs and
2050
+ * Returns the effective per-vertex hub damping factors $\eta_i$ (`Float64Array`).
2051
+ */
2052
+ hubEta(): Float64Array;
2053
+ lastFftStats(): FieldFftStats | undefined;
2054
+ /**
2055
+ * Constructs an `IbUmapSolver` from a `Graph` using $O(|E|)$ 1+2-hop pairs and
1920
2056
  * regularized DoG Varadhan landmark ALT distances.
1921
2057
  */
1922
- constructor(graph: CsrGraph, options: any);
2058
+ constructor(graph: Graph, options: any);
1923
2059
  runSteps(layout: Layout2d, steps: number): SolverStatus;
1924
2060
  run(layout: Layout2d): SolverStatus;
1925
2061
  step(layout: Layout2d): SolverStatus;
@@ -2027,11 +2163,11 @@ export class KamadaKawaiSolver {
2027
2163
  /**
2028
2164
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
2029
2165
  */
2030
- static fromGraph(graph: CsrGraph, options: any): KamadaKawaiSolver;
2166
+ static fromGraph(graph: Graph, options: any): KamadaKawaiSolver;
2031
2167
  /**
2032
2168
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
2033
2169
  */
2034
- constructor(graph: CsrGraph, options: any);
2170
+ constructor(graph: Graph, options: any);
2035
2171
  readonly isFinished: boolean;
2036
2172
  readonly iteration: number;
2037
2173
  readonly numNodes: number;
@@ -2080,7 +2216,7 @@ export class KnnGraph {
2080
2216
  export class KorenSpectral {
2081
2217
  free(): void;
2082
2218
  [Symbol.dispose](): void;
2083
- generate(graph: CsrGraph): any;
2219
+ generate(graph: Graph): any;
2084
2220
  constructor(options: any);
2085
2221
  }
2086
2222
 
@@ -2151,7 +2287,7 @@ export class LargeVisSolver {
2151
2287
  /**
2152
2288
  * Constructs a `LargeVisSolver` from `graph` and `LargeVisOptions`.
2153
2289
  */
2154
- constructor(graph: CsrGraph, options: any);
2290
+ constructor(graph: Graph, options: any);
2155
2291
  readonly currentLr: number;
2156
2292
  readonly isFinished: boolean;
2157
2293
  readonly iteration: number;
@@ -2163,16 +2299,16 @@ export class LargeVisSolver {
2163
2299
  }
2164
2300
 
2165
2301
  /**
2166
- * Largest connected component result returned by `CsrGraph.largestConnectedComponent()`.
2302
+ * Largest connected component result returned by `Graph.largestConnectedComponent()`.
2167
2303
  */
2168
2304
  export class LargestConnectedComponentResult {
2169
2305
  private constructor();
2170
2306
  free(): void;
2171
2307
  [Symbol.dispose](): void;
2172
2308
  /**
2173
- * Returns a cloned handle to the induced `CsrGraph` of the largest connected component.
2309
+ * Returns a cloned handle to the induced `Graph` of the largest connected component.
2174
2310
  */
2175
- graph(): CsrGraph;
2311
+ graph(): Graph;
2176
2312
  /**
2177
2313
  * Alias for `originalNodeIds()`.
2178
2314
  */
@@ -2544,7 +2680,7 @@ export class LinLogSolver {
2544
2680
  /**
2545
2681
  * Constructs a `LinLogSolver` from `graph` and optional `LinLogOptions`.
2546
2682
  */
2547
- constructor(graph: CsrGraph, options: any);
2683
+ constructor(graph: Graph, options: any);
2548
2684
  readonly backend: ForceBackend;
2549
2685
  readonly isFinished: boolean;
2550
2686
  readonly iteration: number;
@@ -2676,7 +2812,7 @@ export class ManifoldLayout2d {
2676
2812
  */
2677
2813
  len(): number;
2678
2814
  /**
2679
- * Returns `{ scale, aspect }` metric parameters.
2815
+ * Returns `{ scale, aspect, poincareEps }` metric parameters.
2680
2816
  */
2681
2817
  metric(): any;
2682
2818
  /**
@@ -2711,6 +2847,10 @@ export class ManifoldLayout2d {
2711
2847
  * Sets the physical aspect ratio (`> 0`) without mutating stored coordinates.
2712
2848
  */
2713
2849
  setAspect(aspect: number): void;
2850
+ /**
2851
+ * Sets the Poincaré boundary clamp epsilon (`0 < eps < 0.5` in `f32`) without mutating coordinates.
2852
+ */
2853
+ setPoincareEps(eps: number): void;
2714
2854
  /**
2715
2855
  * Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
2716
2856
  */
@@ -2746,11 +2886,11 @@ export class ManifoldLayout2d {
2746
2886
  /**
2747
2887
  * Returns a rigidly panned `Torus2d` `ManifoldLayout2d` minimizing boundary-wrapped edges.
2748
2888
  */
2749
- torusAutoPan(graph: CsrGraph): ManifoldLayout2d;
2889
+ torusAutoPan(graph: Graph): ManifoldLayout2d;
2750
2890
  /**
2751
2891
  * Initializes a flat 2D torus layout via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
2752
2892
  */
2753
- static torusSpectralPhaseInit(graph: CsrGraph, seed: any): ManifoldLayout2d;
2893
+ static torusSpectralPhaseInit(graph: Graph, seed: any): ManifoldLayout2d;
2754
2894
  /**
2755
2895
  * Returns the first coordinate (`x` or `lon`) of vertex `index`.
2756
2896
  */
@@ -2775,6 +2915,10 @@ export class ManifoldLayout2d {
2775
2915
  * Returns the number of vertices in the manifold layout.
2776
2916
  */
2777
2917
  readonly numNodes: number;
2918
+ /**
2919
+ * Returns the Poincaré boundary clamp epsilon (`> 0` and `< 0.5`).
2920
+ */
2921
+ readonly poincareEps: number;
2778
2922
  /**
2779
2923
  * Returns the physical geodesic scale factor (`> 0`).
2780
2924
  */
@@ -2799,7 +2943,7 @@ export class MaxentStressSolver {
2799
2943
  /**
2800
2944
  * Constructs a `MaxentStressSolver` from `graph` and optional `MaxentStressOptions`.
2801
2945
  */
2802
- constructor(graph: CsrGraph, options: any);
2946
+ constructor(graph: Graph, options: any);
2803
2947
  readonly backend: ForceBackend;
2804
2948
  readonly currentAlpha: number;
2805
2949
  readonly effectiveQ: number;
@@ -2811,6 +2955,35 @@ export class MaxentStressSolver {
2811
2955
  readonly totalIterations: number | undefined;
2812
2956
  }
2813
2957
 
2958
+ /**
2959
+ * Distance weighting rule for `UnifiedMetricAnchor`.
2960
+ */
2961
+ export class MetricAnchorWeighting {
2962
+ private constructor();
2963
+ free(): void;
2964
+ [Symbol.dispose](): void;
2965
+ /**
2966
+ * Symmetric inverse-square distance weighting `w(d) = 1 / d^2`.
2967
+ */
2968
+ static balancedInvD2(): MetricAnchorWeighting;
2969
+ /**
2970
+ * Pure inverse-power distance weighting `w(d) = 1 / d^power` (`power > 0`).
2971
+ */
2972
+ static inversePower(power: number): MetricAnchorWeighting;
2973
+ /**
2974
+ * Smoothly distance-gated long-range metric weighting (`dGate >= 0`, `power > 0`).
2975
+ */
2976
+ static longRangeGated(d_gate: number, power: number): MetricAnchorWeighting;
2977
+ /**
2978
+ * Scale-adaptive distance-gated weighting (`medianFrac >= 0`, `power > 0`).
2979
+ */
2980
+ static relativeLongRangeGated(median_frac: number, power: number): MetricAnchorWeighting;
2981
+ readonly dGate: number | undefined;
2982
+ readonly kind: string;
2983
+ readonly medianFrac: number | undefined;
2984
+ readonly power: number | undefined;
2985
+ }
2986
+
2814
2987
  /**
2815
2988
  * Selective quality metric report returned by `evaluateMetrics`.
2816
2989
  *
@@ -3011,24 +3184,24 @@ export class PacmapGraphSolver {
3011
3184
  /**
3012
3185
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
3013
3186
  */
3014
- static fromGraph(graph: CsrGraph, options: any): PacmapGraphSolver;
3187
+ static fromGraph(graph: Graph, options: any): PacmapGraphSolver;
3015
3188
  /**
3016
3189
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
3017
3190
  */
3018
- constructor(graph: CsrGraph, options: any);
3191
+ constructor(graph: Graph, options: any);
3019
3192
  /**
3020
3193
  * Initializes an area-reserved coarse backbone `Layout2d` (`f32`) together with a configured
3021
3194
  * `PacmapGraphSolver` for end-to-end multilevel layout.
3022
3195
  */
3023
- static withBackbone(graph: CsrGraph, options: any): PacmapBackboneResult;
3196
+ static withBackbone(graph: Graph, options: any): PacmapBackboneResult;
3024
3197
  /**
3025
3198
  * Constructs a `PacmapGraphSolver` from a flat row-major `(numNodes, numLandmarks)` distance table.
3026
3199
  */
3027
- static withLandmarkDistances(graph: CsrGraph, landmark_dists: Float64Array | number[], num_landmarks: number, options: any): PacmapGraphSolver;
3200
+ static withLandmarkDistances(graph: Graph, landmark_dists: Float64Array | number[], num_landmarks: number, options: any): PacmapGraphSolver;
3028
3201
  /**
3029
3202
  * Constructs a `PacmapGraphSolver` reusing precomputed `DogVaradhanLandmarks`.
3030
3203
  */
3031
- static withLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): PacmapGraphSolver;
3204
+ static withLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): PacmapGraphSolver;
3032
3205
  readonly isFinished: boolean;
3033
3206
  readonly iteration: number;
3034
3207
  readonly numHinges: number;
@@ -3089,10 +3262,56 @@ export class PfsPrimeOverlapRemoval {
3089
3262
  export class PivotMds {
3090
3263
  free(): void;
3091
3264
  [Symbol.dispose](): void;
3092
- generate(graph: CsrGraph): any;
3265
+ _generateDist(): any;
3266
+ _generateGraph(graph: Graph): any;
3267
+ _generateWithReportDist(): PivotMdsReportResult;
3268
+ _generateWithReportGraph(graph: Graph): PivotMdsReportResult;
3269
+ /**
3270
+ * Constructs a `PivotMds` generator from a flat pivot-major `(numPivots * numNodes)`
3271
+ * distance buffer (`Float64Array`, `Uint32Array`, `Uint16Array`, `Uint8Array`, or `number[]`).
3272
+ */
3273
+ static fromPivotDistances(pivot_distances_kn: any, num_nodes: number, num_pivots: number, options: any): PivotMds;
3093
3274
  constructor(options: any);
3094
3275
  }
3095
3276
 
3277
+ /**
3278
+ * Spectral summary returned by `PivotMds.generateWithReport()`.
3279
+ */
3280
+ export class PivotMdsReport {
3281
+ private constructor();
3282
+ free(): void;
3283
+ [Symbol.dispose](): void;
3284
+ /**
3285
+ * Returns descending Gram-matrix eigenvalues of $C^T C$ (`Float64Array`).
3286
+ */
3287
+ eigenvalues(): Float64Array;
3288
+ /**
3289
+ * Returns the fraction of positive Gram-matrix variance explained by the top `dims` modes.
3290
+ */
3291
+ explainedVarianceRatio(dims: number): number;
3292
+ /**
3293
+ * Returns the 2D spectral metric embeddability ratio $\rho_{2\mathrm{D}} \in [0, 1]$.
3294
+ */
3295
+ readonly embeddability2d: number;
3296
+ }
3297
+
3298
+ /**
3299
+ * Combined layout and spectral report returned by `PivotMds.generateWithReport()`.
3300
+ */
3301
+ export class PivotMdsReportResult {
3302
+ private constructor();
3303
+ free(): void;
3304
+ [Symbol.dispose](): void;
3305
+ /**
3306
+ * Returns the generated `Layout2d`, `Layout3d`, or `LayoutNd`.
3307
+ */
3308
+ layout(): any;
3309
+ /**
3310
+ * Returns the spectral `PivotMdsReport`.
3311
+ */
3312
+ report(): PivotMdsReport;
3313
+ }
3314
+
3096
3315
  /**
3097
3316
  * PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
3098
3317
  */
@@ -3169,13 +3388,19 @@ export class PrismOverlapRemoval {
3169
3388
  }
3170
3389
 
3171
3390
  /**
3172
- * Resistance-distance MDS (`RdMds`) `LayoutGenerator` supporting
3173
- * `"layout2d"`, `"layout3d"`, and `"layoutNd"`.
3391
+ * Resistance-Distance MDS (`RdMds`, Onoue 2026) `LayoutGenerator` supporting
3392
+ * `TargetKind.Layout2d`, `TargetKind.Layout3d`, and `TargetKind.LayoutNd`.
3174
3393
  */
3175
3394
  export class RdMds {
3176
3395
  free(): void;
3177
3396
  [Symbol.dispose](): void;
3178
- generate(graph: CsrGraph): any;
3397
+ _generateEigenpairs(): any;
3398
+ _generateGraph(graph: Graph): any;
3399
+ /**
3400
+ * Constructs an `RdMds` generator from precomputed smallest nontrivial symmetric-Laplacian
3401
+ * eigenpairs `(lambdas, vectors, invSqrtDeg?, options?)`.
3402
+ */
3403
+ static fromEigenpairs(lambdas: any, vectors: any, inv_sqrt_deg_or_options: any, options: any): RdMds;
3179
3404
  constructor(options: any);
3180
3405
  }
3181
3406
 
@@ -3187,9 +3412,9 @@ export class ResistanceCurvatureFlowResult {
3187
3412
  free(): void;
3188
3413
  [Symbol.dispose](): void;
3189
3414
  /**
3190
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final conductances `w_e = 1 / l_e`.
3415
+ * Builds a weighted undirected `Graph` (`f32`) storing final conductances `w_e = 1 / l_e`.
3191
3416
  */
3192
- conductanceGraph(): CsrGraph;
3417
+ conductanceGraph(): Graph;
3193
3418
  /**
3194
3419
  * Returns final edge conductances `w_e = 1 / l_e` (`Float64Array`).
3195
3420
  */
@@ -3211,9 +3436,9 @@ export class ResistanceCurvatureFlowResult {
3211
3436
  */
3212
3437
  effectiveResistances(): Float64Array;
3213
3438
  /**
3214
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final edge lengths `l_e`.
3439
+ * Builds a weighted undirected `Graph` (`f32`) storing final edge lengths `l_e`.
3215
3440
  */
3216
- lengthGraph(): CsrGraph;
3441
+ lengthGraph(): Graph;
3217
3442
  /**
3218
3443
  * Returns final link resistance curvatures `kappa_res(u, v)` (`Float64Array`).
3219
3444
  */
@@ -3486,7 +3711,7 @@ export class ScreenedPoissonRefiner {
3486
3711
  /**
3487
3712
  * Creates a `ScreenedPoissonRefiner` retaining 1-hop edges from `graph` for optional anchors.
3488
3713
  */
3489
- static fromGraph(graph: CsrGraph, options: any): ScreenedPoissonRefiner;
3714
+ static fromGraph(graph: Graph, options: any): ScreenedPoissonRefiner;
3490
3715
  /**
3491
3716
  * Returns telemetry from the most recent density field evaluation.
3492
3717
  */
@@ -3623,7 +3848,7 @@ export class SelLayoutSolver {
3623
3848
  /**
3624
3849
  * Constructs a `SelLayoutSolver` from `graph` and optional `SelOptions`.
3625
3850
  */
3626
- constructor(graph: CsrGraph, options: any);
3851
+ constructor(graph: Graph, options: any);
3627
3852
  /**
3628
3853
  * Executes up to `steps` SEL layout iterations on `layout` in place.
3629
3854
  */
@@ -3718,7 +3943,7 @@ export class SfcLayout {
3718
3943
  /**
3719
3944
  * Constructs an `SfcLayout` generator from `graph` and optional `SfcOptions`.
3720
3945
  */
3721
- constructor(graph: CsrGraph, options: any);
3946
+ constructor(graph: Graph, options: any);
3722
3947
  /**
3723
3948
  * Returns the deterministic community-ordered vertex permutation (`Uint32Array`).
3724
3949
  */
@@ -3754,17 +3979,21 @@ export class Sgd2Solver {
3754
3979
  /**
3755
3980
  * Constructs a preconditioned mini-batch stress SGD solver from `graph` and `Sgd2Options`.
3756
3981
  */
3757
- constructor(graph: CsrGraph, options: any);
3982
+ constructor(graph: Graph, options: any);
3758
3983
  /**
3759
3984
  * Resets the iteration schedule and RNG without reallocating stored pair buffers.
3760
3985
  */
3761
3986
  resetSchedule(options: any): void;
3987
+ readonly batchSize: number;
3762
3988
  readonly currentEta: number;
3989
+ readonly damping: number;
3990
+ readonly eps: number;
3763
3991
  readonly isFinished: boolean;
3764
3992
  readonly iteration: number;
3765
3993
  readonly numNodes: number;
3766
3994
  readonly numSprings: number;
3767
3995
  readonly status: SolverStatus;
3996
+ readonly stepScale: number;
3768
3997
  readonly target: TargetKind;
3769
3998
  readonly totalIterations: number | undefined;
3770
3999
  }
@@ -3876,23 +4105,32 @@ export class SgdSolver {
3876
4105
  /**
3877
4106
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
3878
4107
  */
3879
- static full(graph: CsrGraph, options: any): SgdSolver;
4108
+ static full(graph: Graph, options: any): SgdSolver;
3880
4109
  /**
3881
4110
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
3882
4111
  */
3883
- constructor(graph: CsrGraph, options: any);
4112
+ constructor(graph: Graph, options: any);
4113
+ /**
4114
+ * Constructs an Onoue (2026) Omega resistance-distance SGD solver combining 1-hop edges with
4115
+ * `k` randomly sampled partner pairs per node using Euclidean distances in a flat row-major
4116
+ * `(numNodes, dims)` spectral embedding.
4117
+ */
4118
+ static omega(graph: Graph, embedding: Float64Array | number[], dims: number, options: any): SgdSolver;
3884
4119
  /**
3885
- * Constructs an Omega SGD solver from a flat row-major `(numNodes, dims)` spectral embedding.
4120
+ * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver from preselected `pivots`
4121
+ * and a precomputed pivot-major `(pivots.length * numNodes)` distance buffer
4122
+ * (`Float64Array`/`Uint32Array`/`Uint16Array`/`Uint8Array`/`number[]`).
3886
4123
  */
3887
- static omega(graph: CsrGraph, embedding: Float64Array | number[], dims: number, options: any): SgdSolver;
4124
+ static ortmannSparseStressFromPivots(graph: Graph, pivots: any, pivot_distances_kn: any, options: any): SgdSolver;
3888
4125
  /**
3889
4126
  * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver.
3890
4127
  */
3891
- static ortmannSparseStress(graph: CsrGraph, options: any): SgdSolver;
4128
+ static ortmannSparseStress(graph: Graph, options: any): SgdSolver;
3892
4129
  /**
3893
- * Constructs a random-pair sparse SGD solver combining 1-hop edges with sampled random pairs.
4130
+ * Constructs an Onoue (2026) random-pair sparse stress SGD solver combining 1-hop edges with
4131
+ * sampled random pairs using exact shortest-path distances.
3894
4132
  */
3895
- static randomPair(graph: CsrGraph, options: any): SgdSolver;
4133
+ static randomPair(graph: Graph, options: any): SgdSolver;
3896
4134
  /**
3897
4135
  * Resets the SGD learning-rate schedule and RNG without reallocating stored pair buffers.
3898
4136
  */
@@ -3900,11 +4138,11 @@ export class SgdSolver {
3900
4138
  /**
3901
4139
  * Computes regularized Chebyshev DoG Varadhan landmarks and constructs a 3-tier Sparse Barrier SGD solver.
3902
4140
  */
3903
- static sparseBarrierDog(graph: CsrGraph, options: any): SgdSolver;
4141
+ static sparseBarrierDog(graph: Graph, options: any): SgdSolver;
3904
4142
  /**
3905
4143
  * Constructs a 3-tier Sparse Barrier SGD solver from precomputed `DogVaradhanLandmarks`.
3906
4144
  */
3907
- static sparseBarrierFromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
4145
+ static sparseBarrierFromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
3908
4146
  /**
3909
4147
  * Returns `SparseBarrierStats` when constructed via `sparseBarrierFromLandmarks` or
3910
4148
  * `sparseBarrierDog`, or `undefined` otherwise.
@@ -3913,7 +4151,7 @@ export class SgdSolver {
3913
4151
  /**
3914
4152
  * Constructs a minimal-RAM SGD solver storing 1-hop springs and streaming non-edge negatives.
3915
4153
  */
3916
- static streamingNegatives(graph: CsrGraph, options: any): SgdSolver;
4154
+ static streamingNegatives(graph: Graph, options: any): SgdSolver;
3917
4155
  /**
3918
4156
  * Returns the learning rate `eta` for the upcoming iteration (`0.0` once finished).
3919
4157
  */
@@ -3981,7 +4219,7 @@ export class SnapTFdpSolver {
3981
4219
  /**
3982
4220
  * Constructs a `SnapTFdpSolver` from `graph` and `SnapTFdpOptions`.
3983
4221
  */
3984
- constructor(graph: CsrGraph, options: any);
4222
+ constructor(graph: Graph, options: any);
3985
4223
  readonly isFinished: boolean;
3986
4224
  readonly iteration: number;
3987
4225
  readonly numNodes: number;
@@ -4126,7 +4364,7 @@ export class SpatialIntruderRefiner {
4126
4364
  /**
4127
4365
  * Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
4128
4366
  */
4129
- constructor(graph: CsrGraph, options: any);
4367
+ constructor(graph: Graph, options: any);
4130
4368
  /**
4131
4369
  * Executes up to `steps` refinement rounds on `layout` in place.
4132
4370
  */
@@ -4414,7 +4652,7 @@ export enum StressMajorizationBackend {
4414
4652
  }
4415
4653
 
4416
4654
  /**
4417
- * Cooperative Gansner-Koren-North (2004) Stress Majorization layout solver (`f32`)
4655
+ * Cooperative Gansner, Koren, & North (2005) Stress Majorization layout solver (`f32`)
4418
4656
  * across `Layout2d`, `Layout3d`, `LayoutNd`, and `ManifoldLayout2d`.
4419
4657
  */
4420
4658
  export class StressMajorizationSolver {
@@ -4443,11 +4681,11 @@ export class StressMajorizationSolver {
4443
4681
  /**
4444
4682
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
4445
4683
  */
4446
- static fromGraph(graph: CsrGraph, options: any): StressMajorizationSolver;
4684
+ static fromGraph(graph: Graph, options: any): StressMajorizationSolver;
4447
4685
  /**
4448
4686
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
4449
4687
  */
4450
- constructor(graph: CsrGraph, options: any);
4688
+ constructor(graph: Graph, options: any);
4451
4689
  readonly backend: StressMajorizationBackend;
4452
4690
  readonly isFinished: boolean;
4453
4691
  readonly iteration: number;
@@ -4489,10 +4727,11 @@ export class TFdpSolver {
4489
4727
  * (`fromKnn(indptr, indices, weights?, options?)`).
4490
4728
  */
4491
4729
  static fromKnn(knn_or_indptr: any, indices_or_options: any, weights_or_options: any, options: any): TFdpSolver;
4730
+ lastFftStats(): FieldFftStats | undefined;
4492
4731
  /**
4493
- * Constructs a `TFdpSolver` directly from a `CsrGraph`.
4732
+ * Constructs a `TFdpSolver` directly from a `Graph`.
4494
4733
  */
4495
- constructor(graph: CsrGraph, options: any);
4734
+ constructor(graph: Graph, options: any);
4496
4735
  readonly backend: FieldRepulsionBackend;
4497
4736
  readonly currentRho: number;
4498
4737
  readonly isFinished: boolean;
@@ -4560,6 +4799,8 @@ export enum TsNetBackend {
4560
4799
  export class TsNetSolver {
4561
4800
  free(): void;
4562
4801
  [Symbol.dispose](): void;
4802
+ static _fromProbabilitiesWithConformalNoAnchor(probs: SparseProbabilities, stages: any, edge_tether: any, options: any): TsNetSolver;
4803
+ static _fromProbabilitiesWithConformalWithAnchor(probs: SparseProbabilities, stages: any, edge_tether: any, metric_anchor: UnifiedMetricAnchor, options: any): TsNetSolver;
4563
4804
  _run2d(layout: Layout2d): SolverStatus;
4564
4805
  _run3d(layout: Layout3d): SolverStatus;
4565
4806
  _runManifold(layout: ManifoldLayout2d): SolverStatus;
@@ -4572,13 +4813,13 @@ export class TsNetSolver {
4572
4813
  _step3d(layout: Layout3d): SolverStatus;
4573
4814
  _stepManifold(layout: ManifoldLayout2d): SolverStatus;
4574
4815
  _stepNd(layout: LayoutNd): SolverStatus;
4575
- static fromGraphPartialBfs(graph: CsrGraph, options: any): TsNetSolver;
4816
+ static fromGraphPartialBfs(graph: Graph, options: any): TsNetSolver;
4576
4817
  /**
4577
4818
  * Constructs a `TsNetSolver` from `graph` using direct row-normalized `A1 + w2 * A2`
4578
4819
  * affinity with configurable 2-hop sampling `mode` and optional `maxBridgeDegree`.
4579
4820
  */
4580
- static fromGraphRowNormalizedWithOptions(graph: CsrGraph, options: any): TsNetSolver;
4581
- static fromGraphRowNormalized(graph: CsrGraph, options: any): TsNetSolver;
4821
+ static fromGraphRowNormalizedWithOptions(graph: Graph, options: any): TsNetSolver;
4822
+ static fromGraphRowNormalized(graph: Graph, options: any): TsNetSolver;
4582
4823
  static fromKnn(knn: KnnGraph, options: any): TsNetSolver;
4583
4824
  /**
4584
4825
  * Constructs a `TsNetSolver` from precomputed symmetric `SparseProbabilities` and explicit `stages`.
@@ -4586,8 +4827,8 @@ export class TsNetSolver {
4586
4827
  static fromProbabilitiesWithStages(probs: SparseProbabilities, stages: any, options: any): TsNetSolver;
4587
4828
  static fromProbabilities(probs: SparseProbabilities, options: any): TsNetSolver;
4588
4829
  lastFftStats(): FitFieldStats | undefined;
4589
- constructor(graph: CsrGraph, options: any);
4590
- static pure2Hop(graph: CsrGraph, options: any): TsNetSolver;
4830
+ constructor(graph: Graph, options: any);
4831
+ static pure2Hop(graph: Graph, options: any): TsNetSolver;
4591
4832
  readonly backend: TsNetBackend;
4592
4833
  readonly currentStageLr: number;
4593
4834
  readonly isFinished: boolean;
@@ -4612,11 +4853,15 @@ export class TsNetStage {
4612
4853
  * Constructs a validated `TsNetStage` from `(iterations, options?)` or `{ iterations, ... }`.
4613
4854
  */
4614
4855
  constructor(iterations_or_options: any, options: any);
4856
+ readonly coercive1hop: number;
4615
4857
  readonly exaggeration: number;
4616
4858
  readonly iterations: number;
4617
4859
  readonly lambdaC: number;
4618
4860
  readonly lambdaKl: number;
4861
+ readonly lambdaMetric: number;
4619
4862
  readonly lambdaR: number;
4863
+ readonly spring1hop: number;
4864
+ readonly springDeadzone: number;
4620
4865
  }
4621
4866
 
4622
4867
  /**
@@ -4646,13 +4891,13 @@ export class TwoHopCsr {
4646
4891
  free(): void;
4647
4892
  [Symbol.dispose](): void;
4648
4893
  /**
4649
- * Returns a cloned handle to the canonical unweighted 1-hop `CsrGraph`.
4894
+ * Returns a cloned handle to the canonical unweighted 1-hop `Graph`.
4650
4895
  */
4651
- hop1(): CsrGraph;
4896
+ hop1(): Graph;
4652
4897
  /**
4653
- * Returns a cloned handle to the disjoint pure 2-hop `CsrGraph`.
4898
+ * Returns a cloned handle to the disjoint pure 2-hop `Graph`.
4654
4899
  */
4655
- hop2(): CsrGraph;
4900
+ hop2(): Graph;
4656
4901
  }
4657
4902
 
4658
4903
  /**
@@ -4705,7 +4950,45 @@ export enum TwoHopSamplingMode {
4705
4950
  }
4706
4951
 
4707
4952
  /**
4708
- * r" Scalar edge-weight storage precision supported by WebAssembly `CsrGraph`.
4953
+ * Persistent scale-aligned global metric skeleton anchor for conformal `TsNetSolver`.
4954
+ */
4955
+ export class UnifiedMetricAnchor {
4956
+ private constructor();
4957
+ free(): void;
4958
+ [Symbol.dispose](): void;
4959
+ /**
4960
+ * Builds a `UnifiedMetricAnchor` from a flat row-major `(numNodes, dim)` continuous embedding.
4961
+ */
4962
+ static fromEmbeddingPivots(embedding_row_major: any, num_nodes: number, dim: number, pivots: any, options: any): UnifiedMetricAnchor;
4963
+ /**
4964
+ * Builds a `UnifiedMetricAnchor` from floating-point shortest-path pivot distances (`Infinity` unreachable).
4965
+ */
4966
+ static fromF64Pivots(num_nodes: number, pivots: any, pivot_distances: any, options: any): UnifiedMetricAnchor;
4967
+ /**
4968
+ * Builds a `UnifiedMetricAnchor` from integer hop-distance pivot rows (`Uint32Array`/`Uint16Array`/`Uint8Array`).
4969
+ */
4970
+ static fromHopPivots(num_nodes: number, pivots: any, pivot_distances: any, options: any): UnifiedMetricAnchor;
4971
+ /**
4972
+ * Returns the flat pivot-major ideal distances (`Float32Array`, `<= 0.0` inactive).
4973
+ */
4974
+ pivotDistances(): Float32Array;
4975
+ /**
4976
+ * Returns the selected anchor pivot vertex indices (`Uint32Array`).
4977
+ */
4978
+ pivots(): Uint32Array;
4979
+ /**
4980
+ * Returns the flat pivot-major normalized anchor weights (`Float32Array`).
4981
+ */
4982
+ weights(): Float32Array;
4983
+ readonly activeFraction: number;
4984
+ readonly numNodes: number;
4985
+ readonly scaleAlpha: number;
4986
+ readonly softEps: number;
4987
+ readonly sumWd2: number;
4988
+ }
4989
+
4990
+ /**
4991
+ * r" Scalar edge-weight storage precision supported by WebAssembly `Graph`.
4709
4992
  */
4710
4993
  export enum WeightDtype {
4711
4994
  Float32 = 0,
@@ -4729,7 +5012,7 @@ export class YifanHuSolver {
4729
5012
  /**
4730
5013
  * Constructs a `YifanHuSolver` from `graph` and optional `YifanHuOptions`.
4731
5014
  */
4732
- constructor(graph: CsrGraph, options: any);
5015
+ constructor(graph: Graph, options: any);
4733
5016
  readonly backend: ForceBackend;
4734
5017
  readonly currentLevel: number;
4735
5018
  readonly isFinished: boolean;
@@ -4768,12 +5051,12 @@ export function _cqKmeansNd(layout: LayoutNd, labels: any, options: any): Partit
4768
5051
  /**
4769
5052
  * Finds all crossing edge sub-segment pairs on the unit torus `[0, 1)^2` for `Layout2d`.
4770
5053
  */
4771
- export function _crossingEdgesTorus2d(graph: CsrGraph, layout: Layout2d): TorusCrossing[];
5054
+ export function _crossingEdgesTorus2d(graph: Graph, layout: Layout2d): TorusCrossing[];
4772
5055
 
4773
5056
  /**
4774
5057
  * Finds all crossing edge sub-segment pairs on the flat torus for `ManifoldLayout2d` (`torus2d`).
4775
5058
  */
4776
- export function _crossingEdgesTorusManifold(graph: CsrGraph, layout: ManifoldLayout2d): TorusCrossing[];
5059
+ export function _crossingEdgesTorusManifold(graph: Graph, layout: ManifoldLayout2d): TorusCrossing[];
4777
5060
 
4778
5061
  export function _daviesBouldinScore2d(layout: Layout2d, labels: any): number;
4779
5062
 
@@ -4786,13 +5069,13 @@ export function _daviesBouldinScoreNd(layout: LayoutNd, labels: any): number;
4786
5069
  /**
4787
5070
  * Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
4788
5071
  */
4789
- export function _dggPreservation2d(graph: CsrGraph, layout: Layout2d): number;
5072
+ export function _dggPreservation2d(graph: Graph, layout: Layout2d): number;
4790
5073
 
4791
- export function _dggPreservation3d(graph: CsrGraph, layout: Layout3d): number;
5074
+ export function _dggPreservation3d(graph: Graph, layout: Layout3d): number;
4792
5075
 
4793
- export function _dggPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5076
+ export function _dggPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
4794
5077
 
4795
- export function _dggPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
5078
+ export function _dggPreservationNd(graph: Graph, layout: LayoutNd): number;
4796
5079
 
4797
5080
  export function _distanceConsistency2d(layout: Layout2d, labels: any): number;
4798
5081
 
@@ -4813,38 +5096,38 @@ export function _distributionConsistencyNd(layout: LayoutNd, labels: any, option
4813
5096
  /**
4814
5097
  * Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
4815
5098
  */
4816
- export function _drngPreservation2d(graph: CsrGraph, layout: Layout2d): number;
5099
+ export function _drngPreservation2d(graph: Graph, layout: Layout2d): number;
4817
5100
 
4818
- export function _drngPreservation3d(graph: CsrGraph, layout: Layout3d): number;
5101
+ export function _drngPreservation3d(graph: Graph, layout: Layout3d): number;
4819
5102
 
4820
- export function _drngPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5103
+ export function _drngPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
4821
5104
 
4822
- export function _drngPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
5105
+ export function _drngPreservationNd(graph: Graph, layout: LayoutNd): number;
4823
5106
 
4824
5107
  /**
4825
5108
  * Selectively evaluates quality metrics on `Layout2d` without an `originalLayout`.
4826
5109
  */
4827
- export function _evaluateMetrics2d(graph: CsrGraph, layout: Layout2d, targets: any, options: any): MetricReport;
5110
+ export function _evaluateMetrics2d(graph: Graph, layout: Layout2d, targets: any, options: any): MetricReport;
4828
5111
 
4829
5112
  /**
4830
5113
  * Selectively evaluates quality metrics on `Layout2d` with a reference `originalLayout`.
4831
5114
  */
4832
- export function _evaluateMetrics2dWithOriginal(graph: CsrGraph, layout: Layout2d, targets: any, options: any, original_layout: Layout2d): MetricReport;
5115
+ export function _evaluateMetrics2dWithOriginal(graph: Graph, layout: Layout2d, targets: any, options: any, original_layout: Layout2d): MetricReport;
4833
5116
 
4834
5117
  /**
4835
5118
  * Selectively evaluates quality metrics on `Layout3d`, skipping unrequested work.
4836
5119
  */
4837
- export function _evaluateMetrics3d(graph: CsrGraph, layout: Layout3d, targets: any, options: any): MetricReport;
5120
+ export function _evaluateMetrics3d(graph: Graph, layout: Layout3d, targets: any, options: any): MetricReport;
4838
5121
 
4839
5122
  /**
4840
5123
  * Selectively evaluates quality metrics on `ManifoldLayout2d`, skipping unrequested work.
4841
5124
  */
4842
- export function _evaluateMetricsManifold(graph: CsrGraph, layout: ManifoldLayout2d, targets: any, options: any): MetricReport;
5125
+ export function _evaluateMetricsManifold(graph: Graph, layout: ManifoldLayout2d, targets: any, options: any): MetricReport;
4843
5126
 
4844
5127
  /**
4845
5128
  * Selectively evaluates quality metrics on `LayoutNd`, skipping unrequested work.
4846
5129
  */
4847
- export function _evaluateMetricsNd(graph: CsrGraph, layout: LayoutNd, targets: any, options: any): MetricReport;
5130
+ export function _evaluateMetricsNd(graph: Graph, layout: LayoutNd, targets: any, options: any): MetricReport;
4848
5131
 
4849
5132
  /**
4850
5133
  * Extracts exact undirected Gabriel Graph (`GG`) edges as flat `[u0, v0, ...]` (`Uint32Array`).
@@ -4860,47 +5143,47 @@ export function _gabrielGraphEdgesNd(layout: LayoutNd): Uint32Array;
4860
5143
  /**
4861
5144
  * Computes Gabriel graph condition violations across `graph` edges under `layout`.
4862
5145
  */
4863
- export function _gabrielGraphProperty2d(graph: CsrGraph, layout: Layout2d): number;
5146
+ export function _gabrielGraphProperty2d(graph: Graph, layout: Layout2d): number;
4864
5147
 
4865
- export function _gabrielGraphProperty3d(graph: CsrGraph, layout: Layout3d): number;
5148
+ export function _gabrielGraphProperty3d(graph: Graph, layout: Layout3d): number;
4866
5149
 
4867
- export function _gabrielGraphPropertyManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5150
+ export function _gabrielGraphPropertyManifold(graph: Graph, layout: ManifoldLayout2d): number;
4868
5151
 
4869
- export function _gabrielGraphPropertyNd(graph: CsrGraph, layout: LayoutNd): number;
5152
+ export function _gabrielGraphPropertyNd(graph: Graph, layout: LayoutNd): number;
4870
5153
 
4871
5154
  /**
4872
5155
  * Evaluates ideal edge-length preservation error sum for `graph` under `layout`.
4873
5156
  */
4874
- export function _idealEdgeLengths2d(graph: CsrGraph, layout: Layout2d): number;
5157
+ export function _idealEdgeLengths2d(graph: Graph, layout: Layout2d): number;
4875
5158
 
4876
- export function _idealEdgeLengths3d(graph: CsrGraph, layout: Layout3d): number;
5159
+ export function _idealEdgeLengths3d(graph: Graph, layout: Layout3d): number;
4877
5160
 
4878
- export function _idealEdgeLengthsManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5161
+ export function _idealEdgeLengthsManifold(graph: Graph, layout: ManifoldLayout2d): number;
4879
5162
 
4880
- export function _idealEdgeLengthsNd(graph: CsrGraph, layout: LayoutNd): number;
5163
+ export function _idealEdgeLengthsNd(graph: Graph, layout: LayoutNd): number;
4881
5164
 
4882
5165
  /**
4883
5166
  * Evaluates ideal edge-length preservation error against a uniform `unitEdgeLength > 0`.
4884
5167
  */
4885
- export function _idealEdgeLengthsWithUnit2d(graph: CsrGraph, layout: Layout2d, unit_edge_length: number): number;
5168
+ export function _idealEdgeLengthsWithUnit2d(graph: Graph, layout: Layout2d, unit_edge_length: number): number;
4886
5169
 
4887
- export function _idealEdgeLengthsWithUnit3d(graph: CsrGraph, layout: Layout3d, unit_edge_length: number): number;
5170
+ export function _idealEdgeLengthsWithUnit3d(graph: Graph, layout: Layout3d, unit_edge_length: number): number;
4888
5171
 
4889
- export function _idealEdgeLengthsWithUnitManifold(graph: CsrGraph, layout: ManifoldLayout2d, unit_edge_length: number): number;
5172
+ export function _idealEdgeLengthsWithUnitManifold(graph: Graph, layout: ManifoldLayout2d, unit_edge_length: number): number;
4890
5173
 
4891
- export function _idealEdgeLengthsWithUnitNd(graph: CsrGraph, layout: LayoutNd, unit_edge_length: number): number;
5174
+ export function _idealEdgeLengthsWithUnitNd(graph: Graph, layout: LayoutNd, unit_edge_length: number): number;
4892
5175
 
4893
- export function _landmarkStratifiedRta2d(graph: CsrGraph, layout: Layout2d, options: any): number;
5176
+ export function _landmarkStratifiedRta2d(graph: Graph, layout: Layout2d, options: any): number;
4894
5177
 
4895
- export function _landmarkStratifiedRta3d(graph: CsrGraph, layout: Layout3d, options: any): number;
5178
+ export function _landmarkStratifiedRta3d(graph: Graph, layout: Layout3d, options: any): number;
4896
5179
 
4897
- export function _landmarkStratifiedRtaDetail2d(graph: CsrGraph, layout: Layout2d, options: any): RtaEvaluation;
5180
+ export function _landmarkStratifiedRtaDetail2d(graph: Graph, layout: Layout2d, options: any): RtaEvaluation;
4898
5181
 
4899
- export function _landmarkStratifiedRtaDetail3d(graph: CsrGraph, layout: Layout3d, options: any): RtaEvaluation;
5182
+ export function _landmarkStratifiedRtaDetail3d(graph: Graph, layout: Layout3d, options: any): RtaEvaluation;
4900
5183
 
4901
- export function _landmarkStratifiedRtaDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): RtaEvaluation;
5184
+ export function _landmarkStratifiedRtaDetailManifold(graph: Graph, layout: ManifoldLayout2d, options: any): RtaEvaluation;
4902
5185
 
4903
- export function _landmarkStratifiedRtaDetailNd(graph: CsrGraph, layout: LayoutNd, options: any): RtaEvaluation;
5186
+ export function _landmarkStratifiedRtaDetailNd(graph: Graph, layout: LayoutNd, options: any): RtaEvaluation;
4904
5187
 
4905
5188
  export function _landmarkStratifiedRtaFromLandmarks2d(layout: Layout2d, landmark_ids: any, landmark_dists: any, options: any): RtaEvaluation;
4906
5189
 
@@ -4910,20 +5193,20 @@ export function _landmarkStratifiedRtaFromLandmarksManifold(layout: ManifoldLayo
4910
5193
 
4911
5194
  export function _landmarkStratifiedRtaFromLandmarksNd(layout: LayoutNd, landmark_ids: any, landmark_dists: any, options: any): RtaEvaluation;
4912
5195
 
4913
- export function _landmarkStratifiedRtaManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5196
+ export function _landmarkStratifiedRtaManifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4914
5197
 
4915
- export function _landmarkStratifiedRtaNd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5198
+ export function _landmarkStratifiedRtaNd(graph: Graph, layout: LayoutNd, options: any): number;
4916
5199
 
4917
5200
  /**
4918
5201
  * Evaluates duplicate-node (`f32`/`f64`), zero-length edge, and bounding-box degeneracies.
4919
5202
  */
4920
- export function _layoutDegeneracy2d(graph: CsrGraph, layout: Layout2d): LayoutDegeneracy;
5203
+ export function _layoutDegeneracy2d(graph: Graph, layout: Layout2d): LayoutDegeneracy;
4921
5204
 
4922
- export function _layoutDegeneracy3d(graph: CsrGraph, layout: Layout3d): LayoutDegeneracy;
5205
+ export function _layoutDegeneracy3d(graph: Graph, layout: Layout3d): LayoutDegeneracy;
4923
5206
 
4924
- export function _layoutDegeneracyManifold(graph: CsrGraph, layout: ManifoldLayout2d): LayoutDegeneracy;
5207
+ export function _layoutDegeneracyManifold(graph: Graph, layout: ManifoldLayout2d): LayoutDegeneracy;
4925
5208
 
4926
- export function _layoutDegeneracyNd(graph: CsrGraph, layout: LayoutNd): LayoutDegeneracy;
5209
+ export function _layoutDegeneracyNd(graph: Graph, layout: LayoutNd): LayoutDegeneracy;
4927
5210
 
4928
5211
  export function _neighborhoodHit2d(layout: Layout2d, labels: any, options: any): number;
4929
5212
 
@@ -4936,24 +5219,24 @@ export function _neighborhoodHitNd(layout: LayoutNd, labels: any, options: any):
4936
5219
  /**
4937
5220
  * Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
4938
5221
  */
4939
- export function _neighborhoodPreservation1Hop2d(graph: CsrGraph, layout: Layout2d): number;
5222
+ export function _neighborhoodPreservation1Hop2d(graph: Graph, layout: Layout2d): number;
4940
5223
 
4941
- export function _neighborhoodPreservation1Hop3d(graph: CsrGraph, layout: Layout3d): number;
5224
+ export function _neighborhoodPreservation1Hop3d(graph: Graph, layout: Layout3d): number;
4942
5225
 
4943
- export function _neighborhoodPreservation1HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5226
+ export function _neighborhoodPreservation1HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
4944
5227
 
4945
- export function _neighborhoodPreservation1HopNd(graph: CsrGraph, layout: LayoutNd): number;
5228
+ export function _neighborhoodPreservation1HopNd(graph: Graph, layout: LayoutNd): number;
4946
5229
 
4947
5230
  /**
4948
5231
  * Computes `StaticKdTree`-accelerated 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]`.
4949
5232
  */
4950
- export function _neighborhoodPreservation2Hop2d(graph: CsrGraph, layout: Layout2d): number;
5233
+ export function _neighborhoodPreservation2Hop2d(graph: Graph, layout: Layout2d): number;
4951
5234
 
4952
- export function _neighborhoodPreservation2Hop3d(graph: CsrGraph, layout: Layout3d): number;
5235
+ export function _neighborhoodPreservation2Hop3d(graph: Graph, layout: Layout3d): number;
4953
5236
 
4954
- export function _neighborhoodPreservation2HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5237
+ export function _neighborhoodPreservation2HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
4955
5238
 
4956
- export function _neighborhoodPreservation2HopNd(graph: CsrGraph, layout: LayoutNd): number;
5239
+ export function _neighborhoodPreservation2HopNd(graph: Graph, layout: LayoutNd): number;
4957
5240
 
4958
5241
  /**
4959
5242
  * Computes the one-sided hinge node-resolution violation sum of `layout`.
@@ -4988,53 +5271,53 @@ export function _relativeNeighborhoodEdgesNd(layout: LayoutNd): Uint32Array;
4988
5271
  /**
4989
5272
  * Estimates 1-hop neighborhood preservation (`NP1`) via vertex sampling (`options?: { numSamples?, seed? }`).
4990
5273
  */
4991
- export function _sampledNp12d(graph: CsrGraph, layout: Layout2d, options: any): number;
5274
+ export function _sampledNp12d(graph: Graph, layout: Layout2d, options: any): number;
4992
5275
 
4993
- export function _sampledNp13d(graph: CsrGraph, layout: Layout3d, options: any): number;
5276
+ export function _sampledNp13d(graph: Graph, layout: Layout3d, options: any): number;
4994
5277
 
4995
- export function _sampledNp1Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5278
+ export function _sampledNp1Manifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4996
5279
 
4997
- export function _sampledNp1Nd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5280
+ export function _sampledNp1Nd(graph: Graph, layout: LayoutNd, options: any): number;
4998
5281
 
4999
5282
  /**
5000
5283
  * Estimates 2-hop neighborhood preservation (`NP2`) via vertex sampling (`options?: { numSamples?, seed? }`).
5001
5284
  */
5002
- export function _sampledNp22d(graph: CsrGraph, layout: Layout2d, options: any): number;
5285
+ export function _sampledNp22d(graph: Graph, layout: Layout2d, options: any): number;
5003
5286
 
5004
- export function _sampledNp23d(graph: CsrGraph, layout: Layout3d, options: any): number;
5287
+ export function _sampledNp23d(graph: Graph, layout: Layout3d, options: any): number;
5005
5288
 
5006
- export function _sampledNp2Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5289
+ export function _sampledNp2Manifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
5007
5290
 
5008
- export function _sampledNp2Nd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5291
+ export function _sampledNp2Nd(graph: Graph, layout: LayoutNd, options: any): number;
5009
5292
 
5010
5293
  /**
5011
5294
  * Computes $O(kN)$ pivot-sampled Scale-Normalized Stress (`SNS`) (`options?: { numPivots?, seed? }`).
5012
5295
  */
5013
- export function _sampledScaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d, options: any): number;
5296
+ export function _sampledScaleNormalizedStress2d(graph: Graph, layout: Layout2d, options: any): number;
5014
5297
 
5015
- export function _sampledScaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d, options: any): number;
5298
+ export function _sampledScaleNormalizedStress3d(graph: Graph, layout: Layout3d, options: any): number;
5016
5299
 
5017
- export function _sampledScaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5300
+ export function _sampledScaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
5018
5301
 
5019
- export function _sampledScaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5302
+ export function _sampledScaleNormalizedStressNd(graph: Graph, layout: LayoutNd, options: any): number;
5020
5303
 
5021
5304
  /**
5022
5305
  * Computes closed-form Scale-Normalized Stress (`SNS`) in `[0.0, 1.0]` for `graph` and `layout`.
5023
5306
  */
5024
- export function _scaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d): number;
5307
+ export function _scaleNormalizedStress2d(graph: Graph, layout: Layout2d): number;
5025
5308
 
5026
- export function _scaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d): number;
5309
+ export function _scaleNormalizedStress3d(graph: Graph, layout: Layout3d): number;
5027
5310
 
5028
5311
  /**
5029
5312
  * Computes detailed closed-form Scale-Normalized Stress (`SNS`) diagnostics for `graph` and `layout`.
5030
5313
  */
5031
- export function _scaleNormalizedStressDetail2d(graph: CsrGraph, layout: Layout2d): StressEvaluation;
5314
+ export function _scaleNormalizedStressDetail2d(graph: Graph, layout: Layout2d): StressEvaluation;
5032
5315
 
5033
- export function _scaleNormalizedStressDetail3d(graph: CsrGraph, layout: Layout3d): StressEvaluation;
5316
+ export function _scaleNormalizedStressDetail3d(graph: Graph, layout: Layout3d): StressEvaluation;
5034
5317
 
5035
- export function _scaleNormalizedStressDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d): StressEvaluation;
5318
+ export function _scaleNormalizedStressDetailManifold(graph: Graph, layout: ManifoldLayout2d): StressEvaluation;
5036
5319
 
5037
- export function _scaleNormalizedStressDetailNd(graph: CsrGraph, layout: LayoutNd): StressEvaluation;
5320
+ export function _scaleNormalizedStressDetailNd(graph: Graph, layout: LayoutNd): StressEvaluation;
5038
5321
 
5039
5322
  /**
5040
5323
  * Computes closed-form Scale-Normalized Stress (`SNS`) from a flat row-major `N * N` `distances`
@@ -5048,9 +5331,9 @@ export function _scaleNormalizedStressFromDistancesManifold(layout: ManifoldLayo
5048
5331
 
5049
5332
  export function _scaleNormalizedStressFromDistancesNd(layout: LayoutNd, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
5050
5333
 
5051
- export function _scaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5334
+ export function _scaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d): number;
5052
5335
 
5053
- export function _scaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd): number;
5336
+ export function _scaleNormalizedStressNd(graph: Graph, layout: LayoutNd): number;
5054
5337
 
5055
5338
  export function _sepmeGab2d(layout: Layout2d, labels: any): number;
5056
5339
 
@@ -5095,22 +5378,22 @@ export function _silhouetteScoreNd(layout: LayoutNd, labels: any): number;
5095
5378
  /**
5096
5379
  * Counts non-adjacent edge sub-segment crossings on the flat unit torus `[0, 1)^2` for `Layout2d`.
5097
5380
  */
5098
- export function _torusCrossingNumber2d(graph: CsrGraph, layout: Layout2d): number;
5381
+ export function _torusCrossingNumber2d(graph: Graph, layout: Layout2d): number;
5099
5382
 
5100
5383
  /**
5101
5384
  * Counts non-adjacent edge sub-segment crossings on the flat torus for `ManifoldLayout2d` (`torus2d`).
5102
5385
  */
5103
- export function _torusCrossingNumberManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5386
+ export function _torusCrossingNumberManifold(graph: Graph, layout: ManifoldLayout2d): number;
5104
5387
 
5105
5388
  /**
5106
5389
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `Layout2d`.
5107
5390
  */
5108
- export function _torusLayoutEdgeSegments2d(graph: CsrGraph, layout: Layout2d): Float64Array;
5391
+ export function _torusLayoutEdgeSegments2d(graph: Graph, layout: Layout2d): Float64Array;
5109
5392
 
5110
5393
  /**
5111
5394
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `ManifoldLayout2d`.
5112
5395
  */
5113
- export function _torusLayoutEdgeSegmentsManifold(graph: CsrGraph, layout: ManifoldLayout2d): Float64Array;
5396
+ export function _torusLayoutEdgeSegmentsManifold(graph: Graph, layout: ManifoldLayout2d): Float64Array;
5114
5397
 
5115
5398
  /**
5116
5399
  * Returns adaptive Chebyshev polynomial degree for diffusion time `t`.
@@ -5152,22 +5435,22 @@ export function alignClusteredCentroids(fine_layout: Layout2d, coarse_layout: La
5152
5435
  /**
5153
5436
  * Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
5154
5437
  */
5155
- export function allPairsBfs(graph: CsrGraph, unit_edge_length?: number | null): Float64Array;
5438
+ export function allPairsBfs(graph: Graph, unit_edge_length?: number | null): Float64Array;
5156
5439
 
5157
5440
  /**
5158
5441
  * Computes the flat row-major `(numNodes, numNodes)` all-pairs Dijkstra distance matrix (`Float64Array`).
5159
5442
  */
5160
- export function allPairsDijkstra(graph: CsrGraph): Float64Array;
5443
+ export function allPairsDijkstra(graph: Graph): Float64Array;
5161
5444
 
5162
5445
  /**
5163
5446
  * Computes the exponential angular-resolution penalty sum over incident edge pairs.
5164
5447
  */
5165
- export function angularResolution(graph: CsrGraph, layout: Layout2d): number;
5448
+ export function angularResolution(graph: Graph, layout: Layout2d): number;
5166
5449
 
5167
5450
  /**
5168
5451
  * Constructs a symmetric PSD Coifman-Lafon anisotropic graph Laplacian `L_aniso`.
5169
5452
  */
5170
- export function anisotropicLaplacian(graph: CsrGraph, options: any): AnisotropicLaplacianResult;
5453
+ export function anisotropicLaplacian(graph: Graph, options: any): AnisotropicLaplacianResult;
5171
5454
 
5172
5455
  /**
5173
5456
  * Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
@@ -5181,19 +5464,19 @@ export function applyRelativeDistanceFloor(d1: Float64Array, d2: Float64Array, d
5181
5464
  export function aspectRatio(layout: Layout2d): number;
5182
5465
 
5183
5466
  /**
5184
- * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `CsrGraph`.
5467
+ * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `Graph`.
5185
5468
  */
5186
- export function assignLayers(graph: CsrGraph, method: any): Uint32Array;
5469
+ export function assignLayers(graph: Graph, method: any): Uint32Array;
5187
5470
 
5188
5471
  /**
5189
5472
  * Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
5190
5473
  */
5191
- export function bfsSingleSource(graph: CsrGraph, source: number, unit_edge_length?: number | null): Float64Array;
5474
+ export function bfsSingleSource(graph: Graph, source: number, unit_edge_length?: number | null): Float64Array;
5192
5475
 
5193
5476
  /**
5194
5477
  * Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
5195
5478
  */
5196
- export function buildCapped12hopKnn(graph: CsrGraph, max_2hop_per_node: number | null | undefined, seed: any): TwoHopKnnResult;
5479
+ export function buildCapped12hopKnn(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): TwoHopKnnResult;
5197
5480
 
5198
5481
  /**
5199
5482
  * Builds 2-term Difference-of-Gaussians filter terms `[[1 - betaFloor, t1], [-alpha * (1 - betaFloor), t2]]`.
@@ -5209,12 +5492,12 @@ export function buildGumap12hopPriorityCsr(num_nodes: number, u1: Uint32Array |
5209
5492
  /**
5210
5493
  * Builds a hybrid 1+2-hop + two-step coarse `StaticKdTree` + full-$D$ reranked `KnnGraph`.
5211
5494
  */
5212
- export function buildHybridAdaptiveKnn(graph: CsrGraph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options: any): HybridKnnResult;
5495
+ export function buildHybridAdaptiveKnn(graph: Graph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options: any): HybridKnnResult;
5213
5496
 
5214
5497
  /**
5215
5498
  * Builds a pure 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
5216
5499
  */
5217
- export function buildPure2hopKnn(graph: CsrGraph): TwoHopKnnResult;
5500
+ export function buildPure2hopKnn(graph: Graph): TwoHopKnnResult;
5218
5501
 
5219
5502
  /**
5220
5503
  * Builds parameter-free R1 regularized DoG terms from $\sigma_\lambda$.
@@ -5230,7 +5513,7 @@ export function buildRerankKnn(coords: Float64Array | number[], num_nodes: numbe
5230
5513
  /**
5231
5514
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`.
5232
5515
  */
5233
- export function chebyshevDogJlEmbedding(graph: CsrGraph, options: any): Float64Array;
5516
+ export function chebyshevDogJlEmbedding(graph: Graph, options: any): Float64Array;
5234
5517
 
5235
5518
  /**
5236
5519
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`
@@ -5241,7 +5524,7 @@ export function chebyshevDogJlEmbeddingMatrix(matrix: CsrMatrix, options: any):
5241
5524
  /**
5242
5525
  * Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
5243
5526
  */
5244
- export function chebyshevHeatSpmv(graph: CsrGraph, vectors: Float64Array | number[], num_cols: number, t: number, options: any): Float64Array;
5527
+ export function chebyshevHeatSpmv(graph: Graph, vectors: Float64Array | number[], num_cols: number, t: number, options: any): Float64Array;
5245
5528
 
5246
5529
  /**
5247
5530
  * Applies Chebyshev heat diffusion $\exp(-t A)$ to a row-major `(numNodes, numCols)` buffer
@@ -5257,12 +5540,12 @@ export function classDensityMeasure(layout: Layout2d, labels: any, options: any)
5257
5540
  /**
5258
5541
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`, default `dims = 2`).
5259
5542
  */
5260
- export function classicalMds(graph: CsrGraph, dims?: number | null): LayoutNd;
5543
+ export function classicalMds(graph: Graph, dims?: number | null): LayoutNd;
5261
5544
 
5262
5545
  /**
5263
5546
  * Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
5264
5547
  */
5265
- export function classicalMds2d(graph: CsrGraph): Layout2d;
5548
+ export function classicalMds2d(graph: Graph): Layout2d;
5266
5549
 
5267
5550
  /**
5268
5551
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`) from a flat `(numNodes, numNodes)`
@@ -5283,22 +5566,22 @@ export function clusterAreaFaithfulnessDetail(layout: Layout2d, labels: any, opt
5283
5566
  /**
5284
5567
  * Runs coarse Louvain edge-length-first area reservation and non-SPD backbone initialization.
5285
5568
  */
5286
- export function coarseBackboneInit(graph: CsrGraph, options: any): CoarseBackboneResult;
5569
+ export function coarseBackboneInit(graph: Graph, options: any): CoarseBackboneResult;
5287
5570
 
5288
5571
  /**
5289
- * Coarsens an undirected `CsrGraph` by contracting vertices that share a cluster label.
5572
+ * Coarsens an undirected `Graph` by contracting vertices that share a cluster label.
5290
5573
  */
5291
- export function coarsenGraph(graph: CsrGraph, labels: Uint32Array | number[]): CoarsenedGraphResult;
5574
+ export function coarsenGraph(graph: Graph, labels: Uint32Array | number[]): CoarsenedGraphResult;
5292
5575
 
5293
5576
  /**
5294
5577
  * Builds the combinatorial graph Laplacian $L = D - A$ as a `CsrMatrix`.
5295
5578
  */
5296
- export function combinatorialLaplacian(graph: CsrGraph): CsrMatrix;
5579
+ export function combinatorialLaplacian(graph: Graph): CsrMatrix;
5297
5580
 
5298
5581
  /**
5299
5582
  * Computes exact distinct 1-hop + 2-hop neighborhood sizes $|B_2(u) \setminus \{u\}|$.
5300
5583
  */
5301
- export function compute2hopNeighborhoodSizes(graph: CsrGraph): Uint32Array;
5584
+ export function compute2hopNeighborhoodSizes(graph: Graph): Uint32Array;
5302
5585
 
5303
5586
  /**
5304
5587
  * Computes Chebyshev expansion coefficients for $\sum_m w_m \exp(-t_m \lambda)$ over `[0, lambdaMax]`.
@@ -5308,18 +5591,18 @@ export function computeChebyshevBandpassCoefficients(terms: any, lambda_max?: nu
5308
5591
  /**
5309
5592
  * Computes heat-diffusion spectral embedding $D^{-1/2} U \exp(-0.5 t \Lambda)$.
5310
5593
  */
5311
- export function computeDiffusionEmbedding(graph: CsrGraph, options: any): SpectralEmbeddingResult;
5594
+ export function computeDiffusionEmbedding(graph: Graph, options: any): SpectralEmbeddingResult;
5312
5595
 
5313
5596
  /**
5314
5597
  * Computes effective edge resistances and Foster's theorem diagnostics via exact pseudoinverse
5315
5598
  * (for small graphs) or Spielman-Srivastava JL projection solved with `AmgPcgSolver`.
5316
5599
  */
5317
- export function computeEffectiveResistances(graph: CsrGraph, options: any): EffectiveResistanceResult;
5600
+ export function computeEffectiveResistances(graph: Graph, options: any): EffectiveResistanceResult;
5318
5601
 
5319
5602
  /**
5320
5603
  * Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
5321
5604
  */
5322
- export function computeFuzzySimplicialSet(knn: KnnGraph, sigma_iters?: number | null, sigma_tolerance?: number | null): SparseProbabilities;
5605
+ export function computeFuzzySimplicialSet(knn: KnnGraph, sigma_iters_or_options: any, sigma_tolerance?: number | null, fuzzy_threshold?: number | null): SparseProbabilities;
5323
5606
 
5324
5607
  /**
5325
5608
  * Computes parameter-free Horvitz-Thompson repulsion scaling $\gamma_{\mathrm{eff}}$.
@@ -5334,69 +5617,69 @@ export function computeKnnProbabilities(knn: KnnGraph, perplexities: Float64Arra
5334
5617
  /**
5335
5618
  * Computes scalar median 2-hop adaptive perplexity.
5336
5619
  */
5337
- export function computeMedian2hopPerplexity(graph: CsrGraph, options: any): number;
5620
+ export function computeMedian2hopPerplexity(graph: Graph, options: any): number;
5338
5621
 
5339
5622
  /**
5340
5623
  * Computes per-node 2-hop adaptive perplexities.
5341
5624
  */
5342
- export function computeNodewise2hopPerplexities(graph: CsrGraph, options: any): Float64Array;
5625
+ export function computeNodewise2hopPerplexities(graph: Graph, options: any): Float64Array;
5343
5626
 
5344
5627
  /**
5345
5628
  * Computes pure-Rust pivoted `RHGH` landmark tables via `AmgPcgSolver` + JL diagonal probes.
5346
5629
  */
5347
- export function computePivotedRhghLandmarks(graph: CsrGraph, options: any): RhghLandmarksResult;
5630
+ export function computePivotedRhghLandmarks(graph: Graph, options: any): RhghLandmarksResult;
5348
5631
 
5349
5632
  /**
5350
5633
  * Computes pure-Rust pivoted `RHGH` landmark distances as `{ landmarks: RhghLandmarks, result: RhghLandmarksResult }`.
5351
5634
  */
5352
- export function computePivotedRhghLandmarksResult(graph: CsrGraph, options: any): RhghLandmarks;
5635
+ export function computePivotedRhghLandmarksResult(graph: Graph, options: any): RhghLandmarks;
5353
5636
 
5354
5637
  /**
5355
5638
  * Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
5356
5639
  */
5357
- export function computeRegularizedDogVaradhanLandmarks(graph: CsrGraph, options: any): DogVaradhanLandmarks;
5640
+ export function computeRegularizedDogVaradhanLandmarks(graph: Graph, options: any): DogVaradhanLandmarks;
5358
5641
 
5359
5642
  /**
5360
5643
  * Computes regularized DoG Varadhan landmark tables from a custom symmetric PSD `CsrMatrix`
5361
5644
  * with dynamic `[0, lambdaMax]` spectrum scaling.
5362
5645
  */
5363
- export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: CsrGraph, matrix: CsrMatrix, options: any): DogVaradhanLandmarks;
5646
+ export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: Graph, matrix: CsrMatrix, options: any): DogVaradhanLandmarks;
5364
5647
 
5365
5648
  /**
5366
- * Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
5649
+ * Computes an Onoue (2026) effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
5367
5650
  */
5368
- export function computeResistanceEmbedding(graph: CsrGraph, options: any): SpectralEmbeddingResult;
5651
+ export function computeResistanceEmbedding(graph: Graph, options: any): SpectralEmbeddingResult;
5369
5652
 
5370
5653
  /**
5371
5654
  * Returns all non-adjacent crossing edge pairs in `graph` under `layout`.
5372
5655
  */
5373
- export function crossingEdges(graph: CsrGraph, layout: Layout2d): CrossingPair[];
5656
+ export function crossingEdges(graph: Graph, layout: Layout2d): CrossingPair[];
5374
5657
 
5375
5658
  /**
5376
5659
  * Finds all hyperbolic geodesic crossing pairs on `HyperbolicPoincare` or `HyperbolicLorentz`.
5377
5660
  */
5378
- export function crossingEdgesHyperbolic(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
5661
+ export function crossingEdgesHyperbolic(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
5379
5662
 
5380
5663
  /**
5381
5664
  * Finds all shortest great-circle geodesic arc crossing pairs on `ManifoldKind::Spherical`.
5382
5665
  */
5383
- export function crossingEdgesSpherical(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
5666
+ export function crossingEdgesSpherical(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
5384
5667
 
5385
5668
  /**
5386
5669
  * Computes both exact crossing count and crossing-angle statistics in a single sweep pass.
5387
5670
  */
5388
- export function crossingSummary(graph: CsrGraph, layout: Layout2d): CrossingSummary;
5671
+ export function crossingSummary(graph: Graph, layout: Layout2d): CrossingSummary;
5389
5672
 
5390
5673
  /**
5391
5674
  * Computes exact DRGraph Eq. (17) crosslessness $1 - \sqrt{c / c_{\max}} \in [0.0, 1.0]$.
5392
5675
  */
5393
- export function crosslessness(graph: CsrGraph, layout: Layout2d): number;
5676
+ export function crosslessness(graph: Graph, layout: Layout2d): number;
5394
5677
 
5395
5678
  /**
5396
5679
  * Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
5397
5680
  * returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
5398
5681
  */
5399
- export function cycleEdges(graph: CsrGraph): Uint32Array;
5682
+ export function cycleEdges(graph: Graph): Uint32Array;
5400
5683
 
5401
5684
  /**
5402
5685
  * Returns static `DatasetInfo` records for all built-in benchmark datasets.
@@ -5414,9 +5697,9 @@ export function datasetInfo(name: string): DatasetInfo | undefined;
5414
5697
  export function declutterTwins2d(layout: Layout2d, options: any): number;
5415
5698
 
5416
5699
  /**
5417
- * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `CsrGraph`.
5700
+ * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `Graph`.
5418
5701
  */
5419
- export function delaunayToCsr(layout: Layout2d): CsrGraph;
5702
+ export function delaunayToCsr(layout: Layout2d): Graph;
5420
5703
 
5421
5704
  /**
5422
5705
  * Computes the deterministic 2D Delaunay triangulation of `layout`.
@@ -5426,7 +5709,7 @@ export function delaunayTriangulation(layout: Layout2d): DelaunayResult;
5426
5709
  /**
5427
5710
  * Computes weighted single-source Dijkstra shortest-path distances from `source` (`Float64Array`).
5428
5711
  */
5429
- export function dijkstraSingleSource(graph: CsrGraph, source: number): Float64Array;
5712
+ export function dijkstraSingleSource(graph: Graph, source: number): Float64Array;
5430
5713
 
5431
5714
  /**
5432
5715
  * Computes the undirected angle in `[0.0, pi]` radians between 2D vectors `(x1, y1)` and `(x2, y2)`,
@@ -5437,43 +5720,48 @@ export function edgeAngle(x1: number, y1: number, x2: number, y2: number): numbe
5437
5720
  /**
5438
5721
  * Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
5439
5722
  */
5440
- export function extract1hop2hopCsr(graph: CsrGraph): TwoHopCsr;
5723
+ export function extract1hop2hopCsr(graph: Graph): TwoHopCsr;
5724
+
5725
+ /**
5726
+ * Computes continuous degree-normalized 1-hop slack-tether weights aligned with `probs.indices()`.
5727
+ */
5728
+ export function extract1hopTetherWeights(graph: Graph, probs: SparseProbabilities, options: any): Float32Array;
5441
5729
 
5442
5730
  /**
5443
- * Extracts the Quadrilateral Simmelian Backbone from an undirected `CsrGraph`.
5731
+ * Extracts the Quadrilateral Simmelian Backbone from an undirected `Graph`.
5444
5732
  */
5445
- export function extractQuadrilateralBackbone(graph: CsrGraph, options: any): BackboneResult;
5733
+ export function extractQuadrilateralBackbone(graph: Graph, options: any): BackboneResult;
5446
5734
 
5447
5735
  /**
5448
5736
  * Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
5449
5737
  */
5450
- export function extractSparse1hop2hopPairs(graph: CsrGraph, max_2hop_per_node: number | null | undefined, seed: any): Sparse12HopPairs;
5738
+ export function extractSparse1hop2hopPairs(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): Sparse12HopPairs;
5451
5739
 
5452
5740
  /**
5453
5741
  * Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode` and optional `maxBridgeDegree`.
5454
5742
  */
5455
- export function extractSparse1hop2hopPairsWithMode(graph: CsrGraph, options: any): Sparse12HopPairs;
5743
+ export function extractSparse1hop2hopPairsWithMode(graph: Graph, options: any): Sparse12HopPairs;
5456
5744
 
5457
5745
  /**
5458
5746
  * Fits low-dimensional UMAP parameters `[a, b]` from `minDist` and `spread`.
5459
5747
  */
5460
- export function findAbParams(min_dist?: number | null, spread?: number | null): Float64Array;
5748
+ export function findAbParams(min_dist: number | null | undefined, spread: number | null | undefined, options: any): Float64Array;
5461
5749
 
5462
5750
  /**
5463
- * Generates a regular hyperbolic branching tree `CsrGraph` with `branchingFactor` and `depth`.
5751
+ * Generates a regular hyperbolic branching tree `Graph` with `branchingFactor` and `depth`.
5464
5752
  */
5465
- export function generateHyperbolicTree(branching_factor: number, depth: number): CsrGraph;
5753
+ export function generateHyperbolicTree(branching_factor: number, depth: number): Graph;
5466
5754
 
5467
5755
  /**
5468
5756
  * Generates hierarchical separation constraints `y[u] + gap <= y[v]` for directed edges
5469
5757
  * `(u, v)` spanning `layers[u] < layers[v]`.
5470
5758
  */
5471
- export function generateLayeredConstraints(graph: CsrGraph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
5759
+ export function generateLayeredConstraints(graph: Graph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
5472
5760
 
5473
5761
  /**
5474
- * Generates a deterministic layered Directed Acyclic Graph (`CsrGraph`).
5762
+ * Generates a deterministic layered Directed Acyclic Graph (`Graph`).
5475
5763
  */
5476
- export function generateLayeredDag(num_layers: number, nodes_per_layer: number, options: any): CsrGraph;
5764
+ export function generateLayeredDag(num_layers: number, nodes_per_layer: number, options: any): Graph;
5477
5765
 
5478
5766
  /**
5479
5767
  * Generates a deterministic Stochastic Block Model graph returning `{ graph, labels }`.
@@ -5481,60 +5769,60 @@ export function generateLayeredDag(num_layers: number, nodes_per_layer: number,
5481
5769
  export function generateSbmGraph(block_sizes: Uint32Array | number[], options: any): any;
5482
5770
 
5483
5771
  /**
5484
- * Generates a closed UV spherical grid mesh `CsrGraph` with poles and `latitudes x longitudes` rings.
5772
+ * Generates a closed UV spherical grid mesh `Graph` with poles and `latitudes x longitudes` rings.
5485
5773
  */
5486
- export function generateSphericalGrid(latitudes: number, longitudes: number): CsrGraph;
5774
+ export function generateSphericalGrid(latitudes: number, longitudes: number): Graph;
5487
5775
 
5488
5776
  /**
5489
- * Generates a subdivided icosphere spherical geodesic mesh `CsrGraph`.
5777
+ * Generates a subdivided icosphere spherical geodesic mesh `Graph`.
5490
5778
  */
5491
- export function generateSphericalIcosphere(subdivisions?: number | null): CsrGraph;
5779
+ export function generateSphericalIcosphere(subdivisions?: number | null): Graph;
5492
5780
 
5493
5781
  /**
5494
- * Generates a periodic 2D torus mesh `CsrGraph` of size `rows x cols` (`>= 3x3`).
5782
+ * Generates a periodic 2D torus mesh `Graph` of size `rows x cols` (`>= 3x3`).
5495
5783
  */
5496
- export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): CsrGraph;
5784
+ export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): Graph;
5497
5785
 
5498
5786
  /**
5499
- * Generates a deterministic undirected weighted `CsrGraph` with edge weights in `[minWeight, maxWeight]`.
5787
+ * Generates a deterministic undirected weighted `Graph` with edge weights in `[minWeight, maxWeight]`.
5500
5788
  */
5501
- export function generateWeightedGraph(num_nodes: number, options: any): CsrGraph;
5789
+ export function generateWeightedGraph(num_nodes: number, options: any): Graph;
5502
5790
 
5503
5791
  /**
5504
5792
  * Computes Miller et al. (2024) Eq. (2) Geodesic Distortion without post-hoc rescaling
5505
5793
  * on a `ManifoldLayout2d`.
5506
5794
  */
5507
- export function geodesicDistortion(graph: CsrGraph, layout: ManifoldLayout2d): number;
5795
+ export function geodesicDistortion(graph: Graph, layout: ManifoldLayout2d): number;
5508
5796
 
5509
5797
  /**
5510
5798
  * Computes row-normalized symmetrized 1+2-hop probabilities with optional capping and `(d_i d_j)^(-degreeBeta)` decay.
5511
5799
  */
5512
- export function graph12hopRowNormalizedProbabilities(graph: CsrGraph, options: any): SparseProbabilities;
5800
+ export function graph12hopRowNormalizedProbabilities(graph: Graph, options: any): SparseProbabilities;
5513
5801
 
5514
5802
  /**
5515
5803
  * Computes row-normalized symmetrized 1+2-hop probabilities with explicit `TwoHopSamplingMode` and `maxBridgeDegree`.
5516
5804
  */
5517
- export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: CsrGraph, options: any): SparseProbabilities;
5805
+ export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: Graph, options: any): SparseProbabilities;
5518
5806
 
5519
5807
  /**
5520
- * Computes row-normalized symmetrized graph probabilities from a `CsrGraph`.
5808
+ * Computes row-normalized symmetrized graph probabilities from a `Graph`.
5521
5809
  */
5522
- export function graphRowNormalizedProbabilities(graph: CsrGraph): SparseProbabilities;
5810
+ export function graphRowNormalizedProbabilities(graph: Graph): SparseProbabilities;
5523
5811
 
5524
5812
  /**
5525
5813
  * Computes a 2D Harel-Koren High-Dimensional Embedding (`HDE`) `Layout2d` (`f32`).
5526
5814
  */
5527
- export function hde(graph: CsrGraph, options: any): Layout2d;
5815
+ export function hde(graph: Graph, options: any): Layout2d;
5528
5816
 
5529
5817
  /**
5530
5818
  * Computes an $N$-dimensional Harel-Koren High-Dimensional Embedding (`HDE`) `LayoutNd` (`f32`).
5531
5819
  */
5532
- export function hdeNd(graph: CsrGraph, options: any): LayoutNd;
5820
+ export function hdeNd(graph: Graph, options: any): LayoutNd;
5533
5821
 
5534
5822
  /**
5535
5823
  * Counts exact hyperbolic geodesic crossings on `HyperbolicPoincare` or `HyperbolicLorentz`.
5536
5824
  */
5537
- export function hyperbolicCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
5825
+ export function hyperbolicCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
5538
5826
 
5539
5827
  /**
5540
5828
  * Clusters flat row-major `(numNodes, dims)` points with deterministic K-Means++.
@@ -5544,22 +5832,22 @@ export function kmeansPlusPlus(points: Float64Array | number[], num_nodes: numbe
5544
5832
  /**
5545
5833
  * Computes Koren's degree-normalized 2D spectral initialization `Layout2d` (`f32`).
5546
5834
  */
5547
- export function korenSpectralInit(graph: CsrGraph, options: any): Layout2d;
5835
+ export function korenSpectralInit(graph: Graph, options: any): Layout2d;
5548
5836
 
5549
5837
  /**
5550
- * Detects communities on an undirected `CsrGraph` via asynchronous Label Propagation.
5838
+ * Detects communities on an undirected `Graph` via asynchronous Label Propagation.
5551
5839
  */
5552
- export function labelPropagation(graph: CsrGraph, max_iterations: number | null | undefined, seed: any): LabelPropagationResult;
5840
+ export function labelPropagation(graph: Graph, max_iterations: number | null | undefined, seed: any): LabelPropagationResult;
5553
5841
 
5554
5842
  /**
5555
5843
  * Builds a `CsrMatrix` graph Laplacian of the requested `kind` (default `LaplacianKind.SymmetricNormalized`).
5556
5844
  */
5557
- export function laplacian(graph: CsrGraph, kind: any): CsrMatrix;
5845
+ export function laplacian(graph: Graph, kind: any): CsrMatrix;
5558
5846
 
5559
5847
  /**
5560
- * Detects communities on an undirected `CsrGraph` via the Leiden algorithm (`Modularity` or `CPM`).
5848
+ * Detects communities on an undirected `Graph` via the Leiden algorithm (`Modularity` or `CPM`).
5561
5849
  */
5562
- export function leidenCommunities(graph: CsrGraph, options: any): LeidenResult;
5850
+ export function leidenCommunities(graph: Graph, options: any): LeidenResult;
5563
5851
 
5564
5852
  /**
5565
5853
  * Returns the canonical names of all built-in benchmark datasets (`string[]`).
@@ -5594,27 +5882,27 @@ export function lorentzToPoincarePoint(x: number, y: number): Float64Array;
5594
5882
  /**
5595
5883
  * Runs multi-level Louvain coarsening with resolution decay up to `maxCoarseNodes`.
5596
5884
  */
5597
- export function louvainCoarsen(graph: CsrGraph, options: any): CoarsenedHierarchyResult;
5885
+ export function louvainCoarsen(graph: Graph, options: any): CoarsenedHierarchyResult;
5598
5886
 
5599
5887
  /**
5600
- * Detects communities on an undirected `CsrGraph` via multi-level Louvain modularity optimization.
5888
+ * Detects communities on an undirected `Graph` via multi-level Louvain modularity optimization.
5601
5889
  */
5602
- export function louvainCommunities(graph: CsrGraph, options: any): LouvainResult;
5890
+ export function louvainCommunities(graph: Graph, options: any): LouvainResult;
5603
5891
 
5604
5892
  /**
5605
5893
  * Computes DRGraph Eq. (19) strict minimum-angle resolution (`A2`) in `[0.0, 1.0]`.
5606
5894
  */
5607
- export function minimumAngle(graph: CsrGraph, layout: Layout2d): number;
5895
+ export function minimumAngle(graph: Graph, layout: Layout2d): number;
5608
5896
 
5609
5897
  /**
5610
5898
  * Computes DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
5611
5899
  */
5612
- export function minimumAngleSummary(graph: CsrGraph, layout: Layout2d): MinimumAngleSummary;
5900
+ export function minimumAngleSummary(graph: Graph, layout: Layout2d): MinimumAngleSummary;
5613
5901
 
5614
5902
  /**
5615
5903
  * Computes all 5 Chen et al. (2020) NOR metrics including graph edge-length distortion (`elRsd`).
5616
5904
  */
5617
- export function norMetrics(graph: CsrGraph, orig_layout: Layout2d, adjusted_layout: Layout2d, half_widths: Float32Array | number[], half_heights: Float32Array | number[]): NorMetricsResult;
5905
+ export function norMetrics(graph: Graph, orig_layout: Layout2d, adjusted_layout: Layout2d, half_widths: Float32Array | number[], half_heights: Float32Array | number[]): NorMetricsResult;
5618
5906
 
5619
5907
  /**
5620
5908
  * Computes Chen et al. (2020) NOR metrics without a graph (`elRsd = 0.0`).
@@ -5627,14 +5915,14 @@ export function norMetricsWithoutGraph(orig_layout: Layout2d, adjusted_layout: L
5627
5915
  export function normalizeLayout2d(layout: Layout2d, target_std: number | null | undefined, seed: any): void;
5628
5916
 
5629
5917
  /**
5630
- * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `CsrGraph`.
5918
+ * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `Graph`.
5631
5919
  */
5632
- export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): CsrGraph;
5920
+ export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): Graph;
5633
5921
 
5634
5922
  /**
5635
5923
  * Computes a $k$-NN graph via Partial BFS with deterministic Fisher-Yates tie-breaking.
5636
5924
  */
5637
- export function partialBfsKnn(graph: CsrGraph, k: number | null | undefined, seed: any): KnnGraph;
5925
+ export function partialBfsKnn(graph: Graph, k: number | null | undefined, seed: any): KnnGraph;
5638
5926
 
5639
5927
  /**
5640
5928
  * Computes `ARI`, `AMI`, `homogeneity`, `completeness`, `vMeasure`, and `fmi` between two labelings.
@@ -5644,7 +5932,7 @@ export function partitionAgreement(labels_true: any, labels_pred: any): Partitio
5644
5932
  /**
5645
5933
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
5646
5934
  */
5647
- export function pivotMds(graph: CsrGraph, options: any): Layout2d;
5935
+ export function pivotMds(graph: Graph, options: any): Layout2d;
5648
5936
 
5649
5937
  /**
5650
5938
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from a flat `(numNodes, numPivots)` distance matrix.
@@ -5654,12 +5942,12 @@ export function pivotMdsFromDistances(distances_nk: Float64Array | number[], num
5654
5942
  /**
5655
5943
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
5656
5944
  */
5657
- export function pivotMdsInit(graph: CsrGraph, options: any): Layout2d;
5945
+ export function pivotMdsInit(graph: Graph, options: any): Layout2d;
5658
5946
 
5659
5947
  /**
5660
5948
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from an explicit slice of `pivots`.
5661
5949
  */
5662
- export function pivotMdsWithPivots(graph: CsrGraph, pivots: Uint32Array | number[], options: any): Layout2d;
5950
+ export function pivotMdsWithPivots(graph: Graph, pivots: Uint32Array | number[], options: any): Layout2d;
5663
5951
 
5664
5952
  /**
5665
5953
  * Computes the Poincaré disk hyperbolic geodesic distance between `(x1, y1)` and `(x2, y2)`.
@@ -5690,7 +5978,7 @@ export function prismDistortionWithEdges(original_layout: Layout2d, adjusted_lay
5690
5978
  /**
5691
5979
  * Projects `coords` (`Float32Array`) in place onto the feasible region defined by `constraints`.
5692
5980
  */
5693
- export function project1d(coords: Float32Array, constraints: any): void;
5981
+ export function project1d(coords: Float32Array, constraints: any, options: any): void;
5694
5982
 
5695
5983
  /**
5696
5984
  * Projects a coarse 2D `Layout2d` (`f32`) back onto fine vertices via `nodeToCoarse`.
@@ -5715,7 +6003,7 @@ export function projectClusteredRectangleNoOverlap2d(layout: Layout2d, labels: U
5715
6003
  /**
5716
6004
  * Projects axis `axis` (`0` / `"x"` or `1` / `"y"`) of `layout` in place onto `constraints`.
5717
6005
  */
5718
- export function projectLayoutAxis(layout: Layout2d, axis: any, constraints: any): void;
6006
+ export function projectLayoutAxis(layout: Layout2d, axis: any, constraints: any, options: any): void;
5719
6007
 
5720
6008
  /**
5721
6009
  * Projects spectral filter `terms` onto the PSD cone, returning `{ termsPsd, deltaPsd, hMin }`.
@@ -5731,12 +6019,12 @@ export function projectRectangleNoOverlap2d(layout: Layout2d, half_widths: Float
5731
6019
  /**
5732
6020
  * Builds the random-walk normalized graph Laplacian $L_{\mathrm{rw}} = D^{-1}(D - A)$ as a `CsrMatrix`.
5733
6021
  */
5734
- export function randomWalkLaplacian(graph: CsrGraph): CsrMatrix;
6022
+ export function randomWalkLaplacian(graph: Graph): CsrMatrix;
5735
6023
 
5736
6024
  /**
5737
- * Computes a `LayoutNd` (`f32`) zero-guarded resistance-distance spectral embedding (`RdMds`).
6025
+ * Computes a `LayoutNd` (`f32`) zero-guarded Resistance-Distance MDS spectral embedding (`RdMds`, Onoue 2026).
5738
6026
  */
5739
- export function rdMds(graph: CsrGraph, options: any): LayoutNd;
6027
+ export function rdMds(graph: Graph, options: any): LayoutNd;
5740
6028
 
5741
6029
  /**
5742
6030
  * Finds all overlapping rectangle pairs `[i0, j0, i1, j1, ...]` (`i < j`) for `layout`
@@ -5750,9 +6038,9 @@ export function rectangleOverlaps(layout: Layout2d, half_widths: Float32Array |
5750
6038
  export function refineClusterLayout(layout: Layout2d, labels: any, options: any): number;
5751
6039
 
5752
6040
  /**
5753
- * Constructs a directed acyclic `CsrGraph` by reversing cycle-closing back-edges.
6041
+ * Constructs a directed acyclic `Graph` by reversing cycle-closing back-edges.
5754
6042
  */
5755
- export function removeCycles(graph: CsrGraph): CsrGraph;
6043
+ export function removeCycles(graph: Graph): Graph;
5756
6044
 
5757
6045
  /**
5758
6046
  * Computes a `dims`-dimensional Representative / Landmark MDS `LayoutNd` (`f32`) from a flat
@@ -5763,7 +6051,7 @@ export function representativeMds(distances_to_reps: Float64Array | number[], nu
5763
6051
  /**
5764
6052
  * Runs Devriendt-Lambiotte resistance curvature flow on `graph` and classifies target geometry.
5765
6053
  */
5766
- export function resistanceCurvatureFlow(graph: CsrGraph, options: any): ResistanceCurvatureFlowResult;
6054
+ export function resistanceCurvatureFlow(graph: Graph, options: any): ResistanceCurvatureFlowResult;
5767
6055
 
5768
6056
  /**
5769
6057
  * Median-centers and Gaussian-calibrated radial quantile-scales `layout` in place so core spread matches `targetStd` (default `1.0`).
@@ -5773,18 +6061,18 @@ export function robustNormalizeLayout2d(layout: Layout2d, options: any): void;
5773
6061
  /**
5774
6062
  * Estimates edge crossings in $O(\text{numSamples})$ time (`options?: { numSamples?, seed? }`).
5775
6063
  */
5776
- export function sampledCrossingNumber(graph: CsrGraph, layout: Layout2d, options: any): number;
6064
+ export function sampledCrossingNumber(graph: Graph, layout: Layout2d, options: any): number;
5777
6065
 
5778
6066
  /**
5779
6067
  * Estimates DRGraph Eq. (17) crosslessness $1 - \sqrt{\hat{c} / c_{\max}} \in [0.0, 1.0]$
5780
6068
  * (`options?: { numSamples?, seed? }`).
5781
6069
  */
5782
- export function sampledCrosslessness(graph: CsrGraph, layout: Layout2d, options: any): number;
6070
+ export function sampledCrosslessness(graph: Graph, layout: Layout2d, options: any): number;
5783
6071
 
5784
6072
  /**
5785
6073
  * Selects well-spaced shortest-path pivots via Core-First MaxMin BFS.
5786
6074
  */
5787
- export function selectMaxminSpPivots(graph: CsrGraph, options: any): Uint32Array;
6075
+ export function selectMaxminSpPivots(graph: Graph, options: any): Uint32Array;
5788
6076
 
5789
6077
  /**
5790
6078
  * Installs `console_error_panic_hook` once so any Rust panic reports a readable stack trace
@@ -5800,22 +6088,28 @@ export function shiftedNormalizedLaplacian(l_sym: CsrMatrix, lambda_max?: number
5800
6088
  /**
5801
6089
  * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$.
5802
6090
  */
5803
- export function smallestLaplacianEigenpairs(graph: CsrGraph, options: any): EigenResult;
6091
+ export function smallestLaplacianEigenpairs(graph: Graph, options: any): EigenResult;
6092
+
6093
+ /**
6094
+ * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$ using
6095
+ * AMG-PCG-preconditioned block Generalized Davidson with explicit $v_0 = D^{1/2}\mathbf{1}$ deflation.
6096
+ */
6097
+ export function smallestSymLaplacianEigenpairsAmg(graph: Graph, options: any): EigenResult;
5804
6098
 
5805
6099
  /**
5806
- * Performs Ng-Jordan-Weiss spectral clustering on an undirected `CsrGraph`.
6100
+ * Performs Ng-Jordan-Weiss spectral clustering on an undirected `Graph`.
5807
6101
  */
5808
- export function spectralClustering(graph: CsrGraph, options: any): SpectralClusteringResult;
6102
+ export function spectralClustering(graph: Graph, options: any): SpectralClusteringResult;
5809
6103
 
5810
6104
  /**
5811
6105
  * Computes exact $O(|E|)$ spectral variance and degree summary statistics of $L_{\mathrm{sym}}$.
5812
6106
  */
5813
- export function spectralMomentStats(graph: CsrGraph): SpectralMomentStats;
6107
+ export function spectralMomentStats(graph: Graph): SpectralMomentStats;
5814
6108
 
5815
6109
  /**
5816
6110
  * Counts exact great-circle geodesic arc crossings on `ManifoldKind::Spherical`.
5817
6111
  */
5818
- export function sphericalCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
6112
+ export function sphericalCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
5819
6113
 
5820
6114
  /**
5821
6115
  * Computes the great-circle geodesic distance on the unit sphere in `[0, pi]`.
@@ -5840,12 +6134,12 @@ export function squarifiedTreemap(weights: any, options: any): Float64Array;
5840
6134
  /**
5841
6135
  * Computes the exact sweep-line crossing-angle penalty $\sum \cos^2(\theta)$.
5842
6136
  */
5843
- export function sweepCrossingAngle(graph: CsrGraph, layout: Layout2d): number;
6137
+ export function sweepCrossingAngle(graph: Graph, layout: Layout2d): number;
5844
6138
 
5845
6139
  /**
5846
6140
  * Counts the exact number of non-adjacent edge crossings via $O((|E|+K)\log|E|)$ sweep-line.
5847
6141
  */
5848
- export function sweepCrossingNumber(graph: CsrGraph, layout: Layout2d): number;
6142
+ export function sweepCrossingNumber(graph: Graph, layout: Layout2d): number;
5849
6143
 
5850
6144
  /**
5851
6145
  * Computes ascending symmetric eigenpairs `(lambdas, vectors)` of an `n x n` row-major matrix
@@ -5857,7 +6151,7 @@ export function symmetricEigenJacobi(a_row_major: Float64Array | number[], n: nu
5857
6151
  * Builds the symmetric normalized Laplacian $L_{\mathrm{sym}} = I - D^{-1/2} A D^{-1/2}$
5858
6152
  * and inverse square-root degrees `{ matrix, invSqrtDeg }`.
5859
6153
  */
5860
- export function symmetricNormalizedLaplacian(graph: CsrGraph): any;
6154
+ export function symmetricNormalizedLaplacian(graph: Graph): any;
5861
6155
 
5862
6156
  /**
5863
6157
  * Computes row-normalized symmetrized joint probabilities from arbitrary CSR directed affinities.
@@ -5877,12 +6171,12 @@ export function torusEdgeSegments(x1: number, y1: number, x2: number, y2: number
5877
6171
  /**
5878
6172
  * Initializes a flat 2D torus `ManifoldLayout2d` via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
5879
6173
  */
5880
- export function torusSpectralPhaseInit(graph: CsrGraph, seed: any): ManifoldLayout2d;
6174
+ export function torusSpectralPhaseInit(graph: Graph, seed: any): ManifoldLayout2d;
5881
6175
 
5882
6176
  /**
5883
- * Computes the exact transitive reduction of a directed acyclic `CsrGraph`.
6177
+ * Computes the exact transitive reduction of a directed acyclic `Graph`.
5884
6178
  */
5885
- export function transitiveReduction(graph: CsrGraph): CsrGraph;
6179
+ export function transitiveReduction(graph: Graph): Graph;
5886
6180
 
5887
6181
  /**
5888
6182
  * Returns the active WebAssembly linear `WebAssembly.Memory` instance.
@@ -5922,7 +6216,6 @@ export interface InitOutput {
5922
6216
  readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
5923
6217
  readonly __wbg_crossingpair_free: (a: number, b: number) => void;
5924
6218
  readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
5925
- readonly __wbg_csrgraph_free: (a: number, b: number) => void;
5926
6219
  readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
5927
6220
  readonly __wbg_datasetinfo_free: (a: number, b: number) => void;
5928
6221
  readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
@@ -5935,11 +6228,14 @@ export interface InitOutput {
5935
6228
  readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
5936
6229
  readonly __wbg_eigenresult_free: (a: number, b: number) => void;
5937
6230
  readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
6231
+ readonly __wbg_fieldfftstats_free: (a: number, b: number) => void;
6232
+ readonly __wbg_fieldrepulsionkernel_free: (a: number, b: number) => void;
5938
6233
  readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
5939
6234
  readonly __wbg_forbidoverlapremoval_free: (a: number, b: number) => void;
5940
6235
  readonly __wbg_forceatlas2solver_free: (a: number, b: number) => void;
5941
6236
  readonly __wbg_fruchtermanreingoldsolver_free: (a: number, b: number) => void;
5942
6237
  readonly __wbg_gemsolver_free: (a: number, b: number) => void;
6238
+ readonly __wbg_graph_free: (a: number, b: number) => void;
5943
6239
  readonly __wbg_graphcnesolver_free: (a: number, b: number) => void;
5944
6240
  readonly __wbg_gripsolver_free: (a: number, b: number) => void;
5945
6241
  readonly __wbg_groupinaboxsolver_free: (a: number, b: number) => void;
@@ -5947,6 +6243,7 @@ export interface InitOutput {
5947
6243
  readonly __wbg_gumapsolver_free: (a: number, b: number) => void;
5948
6244
  readonly __wbg_hde_free: (a: number, b: number) => void;
5949
6245
  readonly __wbg_hybridknnresult_free: (a: number, b: number) => void;
6246
+ readonly __wbg_ibumaphubdamping_free: (a: number, b: number) => void;
5950
6247
  readonly __wbg_ibumapsolver_free: (a: number, b: number) => void;
5951
6248
  readonly __wbg_kamadakawaisolver_free: (a: number, b: number) => void;
5952
6249
  readonly __wbg_kmeansresult_free: (a: number, b: number) => void;
@@ -5964,6 +6261,7 @@ export interface InitOutput {
5964
6261
  readonly __wbg_louvainresult_free: (a: number, b: number) => void;
5965
6262
  readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
5966
6263
  readonly __wbg_maxentstresssolver_free: (a: number, b: number) => void;
6264
+ readonly __wbg_metricanchorweighting_free: (a: number, b: number) => void;
5967
6265
  readonly __wbg_metricreport_free: (a: number, b: number) => void;
5968
6266
  readonly __wbg_minimumanglesummary_free: (a: number, b: number) => void;
5969
6267
  readonly __wbg_normetricsresult_free: (a: number, b: number) => void;
@@ -5972,6 +6270,8 @@ export interface InitOutput {
5972
6270
  readonly __wbg_partitionagreementresult_free: (a: number, b: number) => void;
5973
6271
  readonly __wbg_pfsprimeoverlapremoval_free: (a: number, b: number) => void;
5974
6272
  readonly __wbg_pivotmds_free: (a: number, b: number) => void;
6273
+ readonly __wbg_pivotmdsreport_free: (a: number, b: number) => void;
6274
+ readonly __wbg_pivotmdsreportresult_free: (a: number, b: number) => void;
5975
6275
  readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
5976
6276
  readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
5977
6277
  readonly __wbg_rdmds_free: (a: number, b: number) => void;
@@ -6007,6 +6307,7 @@ export interface InitOutput {
6007
6307
  readonly __wbg_twindeclutterer_free: (a: number, b: number) => void;
6008
6308
  readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
6009
6309
  readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
6310
+ readonly __wbg_unifiedmetricanchor_free: (a: number, b: number) => void;
6010
6311
  readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
6011
6312
  readonly _calinskiHarabaszScore2d: (a: number, b: number, c: any) => void;
6012
6313
  readonly _calinskiHarabaszScore3d: (a: number, b: number, c: any) => void;
@@ -6223,13 +6524,21 @@ export interface InitOutput {
6223
6524
  readonly arenaoctree3d_buildWeightedNd: (a: number, b: number, c: number, d: number, e: number) => void;
6224
6525
  readonly arenaoctree3d_buildXyz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
6225
6526
  readonly arenaoctree3d_clear: (a: number) => void;
6527
+ readonly arenaoctree3d_coincidentDistSq: (a: number) => number;
6226
6528
  readonly arenaoctree3d_computeCoulombRepulsion: (a: number, b: number, c: number, d: number) => void;
6227
6529
  readonly arenaoctree3d_computeEntropyRepulsion: (a: number, b: number, c: number, d: number) => void;
6228
6530
  readonly arenaoctree3d_computeKlRepulsion: (a: number, b: number, c: number) => void;
6229
6531
  readonly arenaoctree3d_computeMaxentRepulsion: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6230
- readonly arenaoctree3d_new: () => number;
6532
+ readonly arenaoctree3d_entropyMinDist: (a: number) => number;
6533
+ readonly arenaoctree3d_maxDepth: (a: number) => number;
6534
+ readonly arenaoctree3d_new: (a: number, b: any) => void;
6231
6535
  readonly arenaoctree3d_nodeCount: (a: number) => number;
6232
6536
  readonly arenaoctree3d_pointCount: (a: number) => number;
6537
+ readonly arenaoctree3d_setCoincidentDistSq: (a: number, b: number, c: number) => void;
6538
+ readonly arenaoctree3d_setEntropyMinDist: (a: number, b: number, c: number) => void;
6539
+ readonly arenaoctree3d_setMaxDepth: (a: number, b: number, c: number) => void;
6540
+ readonly arenaoctree3d_setTraversalStackCap: (a: number, b: number, c: number) => void;
6541
+ readonly arenaoctree3d_traversalStackCap: (a: number) => number;
6233
6542
  readonly aspectRatio: (a: number, b: number) => void;
6234
6543
  readonly assignLayers: (a: number, b: number, c: any) => void;
6235
6544
  readonly backboneresult_backboneCsr: (a: number) => number;
@@ -6366,7 +6675,7 @@ export interface InitOutput {
6366
6675
  readonly computeChebyshevBandpassCoefficients: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
6367
6676
  readonly computeDiffusionEmbedding: (a: number, b: number, c: any) => void;
6368
6677
  readonly computeEffectiveResistances: (a: number, b: number, c: any) => void;
6369
- readonly computeFuzzySimplicialSet: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6678
+ readonly computeFuzzySimplicialSet: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => void;
6370
6679
  readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
6371
6680
  readonly computeKnnProbabilities: (a: number, b: number, c: number, d: number, e: any) => void;
6372
6681
  readonly computeMedian2hopPerplexity: (a: number, b: number, c: any) => void;
@@ -6393,28 +6702,6 @@ export interface InitOutput {
6393
6702
  readonly crossingsummary_count: (a: number) => number;
6394
6703
  readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
6395
6704
  readonly crosslessness: (a: number, b: number, c: number) => void;
6396
- readonly csrgraph_degree: (a: number, b: number, c: number) => void;
6397
- readonly csrgraph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
6398
- readonly csrgraph_edges: (a: number, b: number) => void;
6399
- readonly csrgraph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
6400
- readonly csrgraph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
6401
- readonly csrgraph_hasEdge: (a: number, b: number, c: number, d: number) => void;
6402
- readonly csrgraph_indices: (a: number, b: number) => void;
6403
- readonly csrgraph_indptr: (a: number, b: number) => void;
6404
- readonly csrgraph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
6405
- readonly csrgraph_isConnected: (a: number) => number;
6406
- readonly csrgraph_isDirected: (a: number) => number;
6407
- readonly csrgraph_isEmpty: (a: number) => number;
6408
- readonly csrgraph_isWeighted: (a: number) => number;
6409
- readonly csrgraph_largestConnectedComponent: (a: number) => number;
6410
- readonly csrgraph_len: (a: number) => number;
6411
- readonly csrgraph_length: (a: number) => number;
6412
- readonly csrgraph_neighbors: (a: number, b: number, c: number) => void;
6413
- readonly csrgraph_nnz: (a: number) => number;
6414
- readonly csrgraph_numEdges: (a: number) => number;
6415
- readonly csrgraph_numNodes: (a: number) => number;
6416
- readonly csrgraph_weightDtype: (a: number) => number;
6417
- readonly csrgraph_weights: (a: number, b: number) => void;
6418
6705
  readonly csrmatrix_diagonal: (a: number, b: number) => void;
6419
6706
  readonly csrmatrix_estimateLambdaMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
6420
6707
  readonly csrmatrix_estimateLambdaMaxLanczos: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
@@ -6500,16 +6787,18 @@ export interface InitOutput {
6500
6787
  readonly drgraphsolver_target: (a: number) => number;
6501
6788
  readonly drgraphsolver_totalIterations: (a: number) => number;
6502
6789
  readonly dynamickdtree_dims: (a: number) => number;
6503
- readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number) => void;
6504
- readonly dynamickdtree_fromLayoutNd: (a: number, b: number) => void;
6790
+ readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6791
+ readonly dynamickdtree_fromLayoutNd: (a: number, b: number, c: any) => void;
6505
6792
  readonly dynamickdtree_isEmpty: (a: number) => number;
6506
6793
  readonly dynamickdtree_kNearest: (a: number, b: number, c: number, d: number, e: number) => void;
6507
6794
  readonly dynamickdtree_kNearestExcludingSelf: (a: number, b: number, c: number, d: number) => void;
6795
+ readonly dynamickdtree_leafSize: (a: number) => number;
6508
6796
  readonly dynamickdtree_len: (a: number) => number;
6509
6797
  readonly dynamickdtree_nearestExcludingSelf: (a: number, b: number, c: number) => void;
6510
- readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number) => void;
6798
+ readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6511
6799
  readonly dynamickdtree_numNodes: (a: number) => number;
6512
6800
  readonly dynamickdtree_point: (a: number, b: number, c: number) => void;
6801
+ readonly dynamickdtree_setLeafSize: (a: number, b: number, c: number) => void;
6513
6802
  readonly dynamickdtree_withinRadius: (a: number, b: number, c: number, d: number, e: number) => void;
6514
6803
  readonly dynamickdtree_withinRadiusSq: (a: number, b: number, c: number, d: number, e: number) => void;
6515
6804
  readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -6555,6 +6844,7 @@ export interface InitOutput {
6555
6844
  readonly eigenresult_usedDenseFallback: (a: number) => number;
6556
6845
  readonly eigenresult_vectors: (a: number, b: number) => void;
6557
6846
  readonly extract1hop2hopCsr: (a: number, b: number) => void;
6847
+ readonly extract1hopTetherWeights: (a: number, b: number, c: number, d: any) => void;
6558
6848
  readonly extractQuadrilateralBackbone: (a: number, b: number, c: any) => void;
6559
6849
  readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: any) => void;
6560
6850
  readonly extractSparse1hop2hopPairsWithMode: (a: number, b: number, c: any) => void;
@@ -6572,7 +6862,20 @@ export interface InitOutput {
6572
6862
  readonly fdebsolver_step: (a: number, b: number, c: number) => void;
6573
6863
  readonly fdebsolver_target: (a: number) => number;
6574
6864
  readonly fdebsolver_totalIterations: (a: number) => number;
6575
- readonly findAbParams: (a: number, b: number, c: number, d: number, e: number) => void;
6865
+ readonly fieldfftstats_inverseFfts: (a: number) => number;
6866
+ readonly fieldfftstats_kernelForwardFfts: (a: number) => number;
6867
+ readonly fieldfftstats_nx: (a: number) => number;
6868
+ readonly fieldfftstats_ny: (a: number) => number;
6869
+ readonly fieldfftstats_particleForwardFfts: (a: number) => number;
6870
+ readonly fieldfftstats_totalFft2dCalls: (a: number) => number;
6871
+ readonly fieldrepulsionkernel_cauchy: () => number;
6872
+ readonly fieldrepulsionkernel_gamma: (a: number, b: number) => void;
6873
+ readonly fieldrepulsionkernel_generalizedCauchy: (a: number, b: number) => void;
6874
+ readonly fieldrepulsionkernel_kind: (a: number, b: number) => void;
6875
+ readonly fieldrepulsionkernel_minScreen: (a: number, b: number) => void;
6876
+ readonly fieldrepulsionkernel_screenFrac: (a: number, b: number) => void;
6877
+ readonly fieldrepulsionkernel_screenedCauchy: (a: number, b: number, c: number, d: number) => void;
6878
+ readonly findAbParams: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6576
6879
  readonly fitfieldstats_inverseFfts: (a: number) => number;
6577
6880
  readonly fitfieldstats_kernelForwardFfts: (a: number) => number;
6578
6881
  readonly fitfieldstats_particleForwardFfts: (a: number) => number;
@@ -6650,6 +6953,28 @@ export interface InitOutput {
6650
6953
  readonly graph12hopRowNormalizedProbabilities: (a: number, b: number, c: any) => void;
6651
6954
  readonly graph12hopRowNormalizedProbabilitiesWithOptions: (a: number, b: number, c: any) => void;
6652
6955
  readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
6956
+ readonly graph_degree: (a: number, b: number, c: number) => void;
6957
+ readonly graph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
6958
+ readonly graph_edges: (a: number, b: number) => void;
6959
+ readonly graph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
6960
+ readonly graph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
6961
+ readonly graph_hasEdge: (a: number, b: number, c: number, d: number) => void;
6962
+ readonly graph_indices: (a: number, b: number) => void;
6963
+ readonly graph_indptr: (a: number, b: number) => void;
6964
+ readonly graph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
6965
+ readonly graph_isConnected: (a: number) => number;
6966
+ readonly graph_isDirected: (a: number) => number;
6967
+ readonly graph_isEmpty: (a: number) => number;
6968
+ readonly graph_isWeighted: (a: number) => number;
6969
+ readonly graph_largestConnectedComponent: (a: number) => number;
6970
+ readonly graph_len: (a: number) => number;
6971
+ readonly graph_length: (a: number) => number;
6972
+ readonly graph_neighbors: (a: number, b: number, c: number) => void;
6973
+ readonly graph_nnz: (a: number) => number;
6974
+ readonly graph_numEdges: (a: number) => number;
6975
+ readonly graph_numNodes: (a: number) => number;
6976
+ readonly graph_weightDtype: (a: number) => number;
6977
+ readonly graph_weights: (a: number, b: number) => void;
6653
6978
  readonly graphcnesolver__run2d: (a: number, b: number, c: number) => void;
6654
6979
  readonly graphcnesolver__run3d: (a: number, b: number, c: number) => void;
6655
6980
  readonly graphcnesolver__runManifold: (a: number, b: number, c: number) => void;
@@ -6741,6 +7066,14 @@ export interface InitOutput {
6741
7066
  readonly hybridknnresult_nPure2hopRows: (a: number) => number;
6742
7067
  readonly hybridknnresult_nnz: (a: number) => number;
6743
7068
  readonly hyperbolicCrossingNumber: (a: number, b: number, c: number) => void;
7069
+ readonly ibumaphubdamping_explicit: (a: number, b: any) => void;
7070
+ readonly ibumaphubdamping_exponent: (a: number, b: number) => void;
7071
+ readonly ibumaphubdamping_hubEta: (a: number, b: number) => void;
7072
+ readonly ibumaphubdamping_inverseDegree: () => number;
7073
+ readonly ibumaphubdamping_inverseDegreePower: (a: number, b: number) => void;
7074
+ readonly ibumaphubdamping_kind: (a: number, b: number) => void;
7075
+ readonly ibumaphubdamping_medianRowSum: () => number;
7076
+ readonly ibumaphubdamping_none: () => number;
6744
7077
  readonly ibumapsolver_a: (a: number) => number;
6745
7078
  readonly ibumapsolver_ab: (a: number, b: number) => void;
6746
7079
  readonly ibumapsolver_b: (a: number) => number;
@@ -6748,8 +7081,10 @@ export interface InitOutput {
6748
7081
  readonly ibumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: any) => void;
6749
7082
  readonly ibumapsolver_fromKnn: (a: number, b: number, c: any) => void;
6750
7083
  readonly ibumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
7084
+ readonly ibumapsolver_hubEta: (a: number, b: number) => void;
6751
7085
  readonly ibumapsolver_isFinished: (a: number) => number;
6752
7086
  readonly ibumapsolver_iteration: (a: number) => number;
7087
+ readonly ibumapsolver_lastFftStats: (a: number) => number;
6753
7088
  readonly ibumapsolver_new: (a: number, b: number, c: any) => void;
6754
7089
  readonly ibumapsolver_numEdges: (a: number) => number;
6755
7090
  readonly ibumapsolver_numNodes: (a: number) => number;
@@ -6971,6 +7306,7 @@ export interface InitOutput {
6971
7306
  readonly manifoldlayout2d_normalizeStd: (a: number, b: number, c: number, d: number) => void;
6972
7307
  readonly manifoldlayout2d_numNodes: (a: number) => number;
6973
7308
  readonly manifoldlayout2d_poincareCentroid: (a: number, b: number) => void;
7309
+ readonly manifoldlayout2d_poincareEps: (a: number) => number;
6974
7310
  readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
6975
7311
  readonly manifoldlayout2d_randomInit: (a: number, b: any, c: number, d: any) => void;
6976
7312
  readonly manifoldlayout2d_recenterPoincare: (a: number, b: number, c: number, d: number) => void;
@@ -6978,6 +7314,7 @@ export interface InitOutput {
6978
7314
  readonly manifoldlayout2d_rescaleGeodesic: (a: number, b: number, c: number) => void;
6979
7315
  readonly manifoldlayout2d_scale: (a: number) => number;
6980
7316
  readonly manifoldlayout2d_setAspect: (a: number, b: number, c: number) => void;
7317
+ readonly manifoldlayout2d_setPoincareEps: (a: number, b: number, c: number) => void;
6981
7318
  readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
6982
7319
  readonly manifoldlayout2d_setScale: (a: number, b: number, c: number) => void;
6983
7320
  readonly manifoldlayout2d_setTorusExtents: (a: number, b: number, c: number, d: number) => void;
@@ -7010,6 +7347,14 @@ export interface InitOutput {
7010
7347
  readonly maxentstresssolver_status: (a: number) => number;
7011
7348
  readonly maxentstresssolver_target: (a: number) => number;
7012
7349
  readonly maxentstresssolver_totalIterations: (a: number) => number;
7350
+ readonly metricanchorweighting_balancedInvD2: () => number;
7351
+ readonly metricanchorweighting_dGate: (a: number, b: number) => void;
7352
+ readonly metricanchorweighting_inversePower: (a: number, b: number) => void;
7353
+ readonly metricanchorweighting_kind: (a: number, b: number) => void;
7354
+ readonly metricanchorweighting_longRangeGated: (a: number, b: number, c: number) => void;
7355
+ readonly metricanchorweighting_medianFrac: (a: number, b: number) => void;
7356
+ readonly metricanchorweighting_power: (a: number, b: number) => void;
7357
+ readonly metricanchorweighting_relativeLongRangeGated: (a: number, b: number, c: number) => void;
7013
7358
  readonly metricreport_adjustedPatchNig: (a: number, b: number) => void;
7014
7359
  readonly metricreport_angularResolution: (a: number, b: number) => void;
7015
7360
  readonly metricreport_aspectRatio: (a: number, b: number) => void;
@@ -7125,8 +7470,17 @@ export interface InitOutput {
7125
7470
  readonly pivotMdsFromDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
7126
7471
  readonly pivotMdsInit: (a: number, b: number, c: any) => void;
7127
7472
  readonly pivotMdsWithPivots: (a: number, b: number, c: number, d: number, e: any) => void;
7128
- readonly pivotmds_generate: (a: number, b: number, c: number) => void;
7473
+ readonly pivotmds__generateDist: (a: number, b: number) => void;
7474
+ readonly pivotmds__generateGraph: (a: number, b: number, c: number) => void;
7475
+ readonly pivotmds__generateWithReportDist: (a: number, b: number) => void;
7476
+ readonly pivotmds__generateWithReportGraph: (a: number, b: number, c: number) => void;
7477
+ readonly pivotmds_fromPivotDistances: (a: number, b: any, c: number, d: number, e: any) => void;
7129
7478
  readonly pivotmds_new: (a: number, b: any) => void;
7479
+ readonly pivotmdsreport_eigenvalues: (a: number, b: number) => void;
7480
+ readonly pivotmdsreport_embeddability2d: (a: number) => number;
7481
+ readonly pivotmdsreport_explainedVarianceRatio: (a: number, b: number, c: number) => void;
7482
+ readonly pivotmdsreportresult_layout: (a: number) => any;
7483
+ readonly pivotmdsreportresult_report: (a: number) => number;
7130
7484
  readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
7131
7485
  readonly poincareEinsteinMidpoint: (a: number, b: number, c: number, d: number, e: number) => void;
7132
7486
  readonly poincareMobiusAdd: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -7146,16 +7500,18 @@ export interface InitOutput {
7146
7500
  readonly prismoverlapremoval_status: (a: number) => number;
7147
7501
  readonly prismoverlapremoval_step: (a: number, b: number, c: number) => void;
7148
7502
  readonly prismoverlapremoval_totalIterations: (a: number) => number;
7149
- readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
7503
+ readonly project1d: (a: number, b: number, c: number, d: any, e: any, f: any) => void;
7150
7504
  readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: any) => void;
7151
7505
  readonly projectClusteredLayoutWithRadii: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
7152
7506
  readonly projectClusteredRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
7153
- readonly projectLayoutAxis: (a: number, b: number, c: any, d: any) => void;
7507
+ readonly projectLayoutAxis: (a: number, b: number, c: any, d: any, e: any) => void;
7154
7508
  readonly projectPsdSpectralFilter: (a: number, b: any, c: any) => void;
7155
7509
  readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
7156
7510
  readonly randomWalkLaplacian: (a: number) => number;
7157
7511
  readonly rdMds: (a: number, b: number, c: any) => void;
7158
- readonly rdmds_generate: (a: number, b: number, c: number) => void;
7512
+ readonly rdmds__generateEigenpairs: (a: number, b: number) => void;
7513
+ readonly rdmds__generateGraph: (a: number, b: number, c: number) => void;
7514
+ readonly rdmds_fromEigenpairs: (a: number, b: any, c: any, d: any, e: any) => void;
7159
7515
  readonly rdmds_new: (a: number, b: any) => void;
7160
7516
  readonly rectangleOverlaps: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
7161
7517
  readonly refineClusterLayout: (a: number, b: number, c: any, d: any) => void;
@@ -7307,7 +7663,10 @@ export interface InitOutput {
7307
7663
  readonly sgd2solver__step3d: (a: number, b: number, c: number) => void;
7308
7664
  readonly sgd2solver__stepManifold: (a: number, b: number, c: number) => void;
7309
7665
  readonly sgd2solver__stepNd: (a: number, b: number, c: number) => void;
7666
+ readonly sgd2solver_batchSize: (a: number) => number;
7310
7667
  readonly sgd2solver_currentEta: (a: number) => number;
7668
+ readonly sgd2solver_damping: (a: number) => number;
7669
+ readonly sgd2solver_eps: (a: number) => number;
7311
7670
  readonly sgd2solver_isFinished: (a: number) => number;
7312
7671
  readonly sgd2solver_iteration: (a: number) => number;
7313
7672
  readonly sgd2solver_new: (a: number, b: number, c: any) => void;
@@ -7315,6 +7674,7 @@ export interface InitOutput {
7315
7674
  readonly sgd2solver_numSprings: (a: number) => number;
7316
7675
  readonly sgd2solver_resetSchedule: (a: number, b: number, c: any) => void;
7317
7676
  readonly sgd2solver_status: (a: number) => number;
7677
+ readonly sgd2solver_stepScale: (a: number) => number;
7318
7678
  readonly sgd2solver_target: (a: number) => number;
7319
7679
  readonly sgd2solver_totalIterations: (a: number) => number;
7320
7680
  readonly sgdsolver__run2d: (a: number, b: number, c: number) => void;
@@ -7348,6 +7708,7 @@ export interface InitOutput {
7348
7708
  readonly sgdsolver_numSprings: (a: number) => number;
7349
7709
  readonly sgdsolver_omega: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
7350
7710
  readonly sgdsolver_ortmannSparseStress: (a: number, b: number, c: any) => void;
7711
+ readonly sgdsolver_ortmannSparseStressFromPivots: (a: number, b: number, c: any, d: any, e: any) => void;
7351
7712
  readonly sgdsolver_randomPair: (a: number, b: number, c: any) => void;
7352
7713
  readonly sgdsolver_resetSchedule: (a: number, b: number, c: any) => void;
7353
7714
  readonly sgdsolver_sparseBarrierDog: (a: number, b: number, c: any) => void;
@@ -7360,6 +7721,7 @@ export interface InitOutput {
7360
7721
  readonly sgdsolver_totalIterations: (a: number) => number;
7361
7722
  readonly shiftedNormalizedLaplacian: (a: number, b: number, c: number, d: number) => void;
7362
7723
  readonly smallestLaplacianEigenpairs: (a: number, b: number, c: any) => void;
7724
+ readonly smallestSymLaplacianEigenpairsAmg: (a: number, b: number, c: any) => void;
7363
7725
  readonly snaptfdpsolver__run2d: (a: number, b: number, c: number) => void;
7364
7726
  readonly snaptfdpsolver__run3d: (a: number, b: number, c: number) => void;
7365
7727
  readonly snaptfdpsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -7511,6 +7873,7 @@ export interface InitOutput {
7511
7873
  readonly tfdpsolver_fromKnn: (a: number, b: any, c: any, d: any, e: any) => void;
7512
7874
  readonly tfdpsolver_isFinished: (a: number) => number;
7513
7875
  readonly tfdpsolver_iteration: (a: number) => number;
7876
+ readonly tfdpsolver_lastFftStats: (a: number) => number;
7514
7877
  readonly tfdpsolver_new: (a: number, b: number, c: any) => void;
7515
7878
  readonly tfdpsolver_numEdges: (a: number) => number;
7516
7879
  readonly tfdpsolver_numNodes: (a: number) => number;
@@ -7533,6 +7896,8 @@ export interface InitOutput {
7533
7896
  readonly toruscrossing_v1: (a: number) => number;
7534
7897
  readonly toruscrossing_v2: (a: number) => number;
7535
7898
  readonly transitiveReduction: (a: number, b: number) => void;
7899
+ readonly tsnetsolver__fromProbabilitiesWithConformalNoAnchor: (a: number, b: number, c: any, d: any, e: any) => void;
7900
+ readonly tsnetsolver__fromProbabilitiesWithConformalWithAnchor: (a: number, b: number, c: any, d: any, e: number, f: any) => void;
7536
7901
  readonly tsnetsolver__run2d: (a: number, b: number, c: number) => void;
7537
7902
  readonly tsnetsolver__run3d: (a: number, b: number, c: number) => void;
7538
7903
  readonly tsnetsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -7566,12 +7931,16 @@ export interface InitOutput {
7566
7931
  readonly tsnetsolver_target: (a: number) => number;
7567
7932
  readonly tsnetsolver_totalFft2dCalls: (a: number) => number;
7568
7933
  readonly tsnetsolver_totalIterations: (a: number) => number;
7934
+ readonly tsnetstage_coercive1hop: (a: number) => number;
7569
7935
  readonly tsnetstage_exaggeration: (a: number) => number;
7570
7936
  readonly tsnetstage_iterations: (a: number) => number;
7571
7937
  readonly tsnetstage_lambdaC: (a: number) => number;
7572
7938
  readonly tsnetstage_lambdaKl: (a: number) => number;
7939
+ readonly tsnetstage_lambdaMetric: (a: number) => number;
7573
7940
  readonly tsnetstage_lambdaR: (a: number) => number;
7574
7941
  readonly tsnetstage_new: (a: number, b: any, c: any) => void;
7942
+ readonly tsnetstage_spring1hop: (a: number) => number;
7943
+ readonly tsnetstage_springDeadzone: (a: number) => number;
7575
7944
  readonly twindeclutterer_apply: (a: number, b: number, c: number) => void;
7576
7945
  readonly twindeclutterer_lastClusterCount: (a: number) => number;
7577
7946
  readonly twindeclutterer_lastMovedCount: (a: number) => number;
@@ -7587,6 +7956,17 @@ export interface InitOutput {
7587
7956
  readonly twohopknnresult_n2hop: (a: number) => number;
7588
7957
  readonly twohopknnresult_nTruncated2hop: (a: number) => number;
7589
7958
  readonly twohopknnresult_nnz: (a: number) => number;
7959
+ readonly unifiedmetricanchor_activeFraction: (a: number) => number;
7960
+ readonly unifiedmetricanchor_fromEmbeddingPivots: (a: number, b: any, c: number, d: number, e: any, f: any) => void;
7961
+ readonly unifiedmetricanchor_fromF64Pivots: (a: number, b: number, c: any, d: any, e: any) => void;
7962
+ readonly unifiedmetricanchor_fromHopPivots: (a: number, b: number, c: any, d: any, e: any) => void;
7963
+ readonly unifiedmetricanchor_numNodes: (a: number) => number;
7964
+ readonly unifiedmetricanchor_pivotDistances: (a: number, b: number) => void;
7965
+ readonly unifiedmetricanchor_pivots: (a: number, b: number) => void;
7966
+ readonly unifiedmetricanchor_scaleAlpha: (a: number) => number;
7967
+ readonly unifiedmetricanchor_softEps: (a: number) => number;
7968
+ readonly unifiedmetricanchor_sumWd2: (a: number) => number;
7969
+ readonly unifiedmetricanchor_weights: (a: number, b: number) => void;
7590
7970
  readonly wasmMemory: () => any;
7591
7971
  readonly wasm_start: () => void;
7592
7972
  readonly wrapTorusPoint: (a: number, b: number, c: number) => void;