egraph 6.0.0-beta.4 → 6.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  */
@@ -1414,6 +1352,31 @@ export enum FieldRepulsionBackend {
1414
1352
  Exact = 3,
1415
1353
  }
1416
1354
 
1355
+ /**
1356
+ * Radial KL repulsion kernel family for `TsNetSolver`.
1357
+ */
1358
+ export class FieldRepulsionKernel {
1359
+ private constructor();
1360
+ free(): void;
1361
+ [Symbol.dispose](): void;
1362
+ /**
1363
+ * Classic Student-t Cauchy kernel `(1 + r^2)^(-1)`.
1364
+ */
1365
+ static cauchy(): FieldRepulsionKernel;
1366
+ /**
1367
+ * Generalized Box-Cox gamma-tail Cauchy kernel `(1 + r^2)^(-gamma)` (`gamma in (0.25, 6.0]`).
1368
+ */
1369
+ static generalizedCauchy(gamma: number): FieldRepulsionKernel;
1370
+ /**
1371
+ * Rational screened Cauchy kernel `(1 + r^2)^(-1) * (1 + r^2 / ell^2)^(-1)`.
1372
+ */
1373
+ static screenedCauchy(screen_frac: number, min_screen?: number | null): FieldRepulsionKernel;
1374
+ readonly gamma: number | undefined;
1375
+ readonly kind: string;
1376
+ readonly minScreen: number | undefined;
1377
+ readonly screenFrac: number | undefined;
1378
+ }
1379
+
1417
1380
  /**
1418
1381
  * FFT field telemetry counters returned by `TsNetSolver.lastFftStats()`.
1419
1382
  */
@@ -1506,7 +1469,7 @@ export class ForceAtlas2Solver {
1506
1469
  /**
1507
1470
  * Constructs a `ForceAtlas2Solver` from `graph` and optional `ForceAtlas2Options`.
1508
1471
  */
1509
- constructor(graph: CsrGraph, options: any);
1472
+ constructor(graph: Graph, options: any);
1510
1473
  nodeRadii(): Float64Array;
1511
1474
  readonly backend: ForceBackend;
1512
1475
  readonly isFinished: boolean;
@@ -1558,7 +1521,7 @@ export class FruchtermanReingoldSolver {
1558
1521
  /**
1559
1522
  * Constructs a `FruchtermanReingoldSolver` from `graph` and optional `FruchtermanReingoldOptions`.
1560
1523
  */
1561
- constructor(graph: CsrGraph, options: any);
1524
+ constructor(graph: Graph, options: any);
1562
1525
  readonly backend: FrBackend;
1563
1526
  readonly currentTemperature: number;
1564
1527
  readonly isFinished: boolean;
@@ -1637,7 +1600,7 @@ export class GemSolver {
1637
1600
  /**
1638
1601
  * Constructs a `GemSolver` from `graph` and optional `GemOptions`.
1639
1602
  */
1640
- constructor(graph: CsrGraph, options: any);
1603
+ constructor(graph: Graph, options: any);
1641
1604
  /**
1642
1605
  * Executes up to `steps` GEM rounds on `layout` in place.
1643
1606
  */
@@ -1689,6 +1652,108 @@ export enum GibIntraLayoutMode {
1689
1652
  YifanHu = 2,
1690
1653
  }
1691
1654
 
1655
+ /**
1656
+ * Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
1657
+ */
1658
+ export class Graph {
1659
+ private constructor();
1660
+ free(): void;
1661
+ [Symbol.dispose](): void;
1662
+ /**
1663
+ * Returns the degree (outgoing degree for directed graphs) of vertex `u`.
1664
+ */
1665
+ degree(u: number): number;
1666
+ /**
1667
+ * Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
1668
+ */
1669
+ edgeWeight(u: number, v: number): number | undefined;
1670
+ /**
1671
+ * Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
1672
+ */
1673
+ edges(): Uint32Array;
1674
+ /**
1675
+ * Constructs a `Graph` from CSR `indptr`, `indices`, and optional `weights`.
1676
+ *
1677
+ * The optional trailing parameters accept either `(directed, sanitize)` booleans or an
1678
+ * options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
1679
+ * Defaults are `directed = false` and `sanitize = true`.
1680
+ */
1681
+ static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): Graph;
1682
+ /**
1683
+ * Constructs a `Graph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
1684
+ * and optional `weights`.
1685
+ */
1686
+ static fromEdgeList(num_nodes: number, edges: Uint32Array | number[], weights: Float32Array | number[] | null | undefined, directed_or_options: any, sanitize?: boolean | null): Graph;
1687
+ /**
1688
+ * Returns `true` if an edge `(u, v)` exists in the graph.
1689
+ */
1690
+ hasEdge(u: number, v: number): boolean;
1691
+ /**
1692
+ * Returns a copy of the flat CSR `indices` neighbor array.
1693
+ */
1694
+ indices(): Uint32Array;
1695
+ /**
1696
+ * Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
1697
+ */
1698
+ indptr(): Uint32Array;
1699
+ /**
1700
+ * Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
1701
+ */
1702
+ inducedSubgraph(nodes: Uint32Array | number[]): Graph;
1703
+ /**
1704
+ * Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
1705
+ */
1706
+ isConnected(): boolean;
1707
+ /**
1708
+ * Returns `true` if the graph is directed.
1709
+ */
1710
+ isDirected(): boolean;
1711
+ /**
1712
+ * Returns `true` if the graph contains zero vertices.
1713
+ */
1714
+ isEmpty(): boolean;
1715
+ /**
1716
+ * Returns `true` if explicit edge weights are stored.
1717
+ */
1718
+ isWeighted(): boolean;
1719
+ /**
1720
+ * Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
1721
+ */
1722
+ largestConnectedComponent(): LargestConnectedComponentResult;
1723
+ /**
1724
+ * Returns the number of vertices in the graph.
1725
+ */
1726
+ len(): number;
1727
+ /**
1728
+ * Returns a copy of the neighbor indices adjacent to vertex `u`.
1729
+ */
1730
+ neighbors(u: number): Uint32Array;
1731
+ /**
1732
+ * Returns the number of stored CSR half-edge entries (`indices().length`).
1733
+ */
1734
+ nnz(): number;
1735
+ /**
1736
+ * Returns the number of logical edges in the graph.
1737
+ */
1738
+ numEdges(): number;
1739
+ /**
1740
+ * Returns the number of vertices in the graph.
1741
+ */
1742
+ numNodes(): number;
1743
+ /**
1744
+ * Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
1745
+ */
1746
+ weights(): Float32Array | undefined;
1747
+ /**
1748
+ * Returns the number of vertices in the graph.
1749
+ */
1750
+ readonly length: number;
1751
+ /**
1752
+ * Returns the scalar weight dtype stored in WebAssembly (`WeightDtype.Float32`).
1753
+ */
1754
+ readonly weightDtype: WeightDtype;
1755
+ }
1756
+
1692
1757
  /**
1693
1758
  * r" Contrastive objective for `GraphCneSolver`.
1694
1759
  */
@@ -1698,7 +1763,7 @@ export enum GraphCneObjective {
1698
1763
  }
1699
1764
 
1700
1765
  /**
1701
- * Cooperative `Graph-CNE` (Bohm et al., 2025) contrastive neighbor embedding solver (`f32`).
1766
+ * Cooperative `Graph-CNE` (Böhm et al., 2025) contrastive neighbor embedding solver (`f32`).
1702
1767
  */
1703
1768
  export class GraphCneSolver {
1704
1769
  free(): void;
@@ -1718,7 +1783,7 @@ export class GraphCneSolver {
1718
1783
  /**
1719
1784
  * Constructs a `GraphCneSolver` from `graph` and `GraphCneOptions`.
1720
1785
  */
1721
- constructor(graph: CsrGraph, options: any);
1786
+ constructor(graph: Graph, options: any);
1722
1787
  readonly currentLr: number;
1723
1788
  readonly isFinished: boolean;
1724
1789
  readonly iteration: number;
@@ -1735,7 +1800,7 @@ export class GraphCneSolver {
1735
1800
  export class GripSolver {
1736
1801
  free(): void;
1737
1802
  [Symbol.dispose](): void;
1738
- constructor(graph: CsrGraph, options: any);
1803
+ constructor(graph: Graph, options: any);
1739
1804
  runSteps(layout: Layout2d, steps: number): SolverStatus;
1740
1805
  run(layout: Layout2d): SolverStatus;
1741
1806
  step(layout: Layout2d): SolverStatus;
@@ -1763,7 +1828,7 @@ export class GroupInABoxSolver {
1763
1828
  /**
1764
1829
  * Constructs a `GroupInABoxSolver` from `graph`, `labels`, and optional `GroupInABoxOptions`.
1765
1830
  */
1766
- constructor(graph: CsrGraph, labels: any, options: any);
1831
+ constructor(graph: Graph, labels: any, options: any);
1767
1832
  /**
1768
1833
  * Executes up to `steps` intra-box layout iterations on `layout` in place.
1769
1834
  */
@@ -1821,9 +1886,9 @@ export class GuMapSolver {
1821
1886
  */
1822
1887
  static fromFuzzySet(probs: SparseProbabilities, options: any): GuMapSolver;
1823
1888
  /**
1824
- * Constructs a `GuMapSolver` from a `CsrGraph` using 1+2-hop pairs and DoG Varadhan landmarks.
1889
+ * Constructs a `GuMapSolver` from a `Graph` using 1+2-hop pairs and DoG Varadhan landmarks.
1825
1890
  */
1826
- static fromGraphDog(graph: CsrGraph, options: any): GuMapSolver;
1891
+ static fromGraphDog(graph: Graph, options: any): GuMapSolver;
1827
1892
  /**
1828
1893
  * Constructs a `GuMapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
1829
1894
  */
@@ -1831,11 +1896,11 @@ export class GuMapSolver {
1831
1896
  /**
1832
1897
  * Constructs a `GuMapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop priority CSR.
1833
1898
  */
1834
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): GuMapSolver;
1899
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): GuMapSolver;
1835
1900
  /**
1836
1901
  * Constructs a `GuMapSolver` from `graph` using 1+2-hop pairs and DoG Varadhan landmarks.
1837
1902
  */
1838
- constructor(graph: CsrGraph, options: any);
1903
+ constructor(graph: Graph, options: any);
1839
1904
  readonly a: number;
1840
1905
  readonly ab: Float64Array;
1841
1906
  readonly b: number;
@@ -1855,7 +1920,7 @@ export class GuMapSolver {
1855
1920
  export class Hde {
1856
1921
  free(): void;
1857
1922
  [Symbol.dispose](): void;
1858
- generate(graph: CsrGraph): any;
1923
+ generate(graph: Graph): any;
1859
1924
  constructor(options: any);
1860
1925
  }
1861
1926
 
@@ -1896,6 +1961,38 @@ export class HybridKnnResult {
1896
1961
  readonly nnz: number;
1897
1962
  }
1898
1963
 
1964
+ /**
1965
+ * Per-vertex hub-damping policy for `IbUmapSolver`.
1966
+ */
1967
+ export class IbUmapHubDamping {
1968
+ private constructor();
1969
+ free(): void;
1970
+ [Symbol.dispose](): void;
1971
+ /**
1972
+ * Explicit caller-supplied per-vertex hub damping factors `eta_i >= 0.0`.
1973
+ */
1974
+ static explicit(hub_eta: any): IbUmapHubDamping;
1975
+ /**
1976
+ * Generalized inverse-degree power hub damping (`eta_i = max(deg(i), 1)^(-exponent)`).
1977
+ */
1978
+ static inverseDegreePower(exponent: number): IbUmapHubDamping;
1979
+ /**
1980
+ * Classic inverse-degree hub damping (`eta_i = 1 / max(deg(i), 1)`).
1981
+ */
1982
+ static inverseDegree(): IbUmapHubDamping;
1983
+ /**
1984
+ * Median-row-sum hub damping preserving unit step sizes on typical vertices.
1985
+ */
1986
+ static medianRowSum(): IbUmapHubDamping;
1987
+ /**
1988
+ * Disable hub damping (`eta_i = 1.0`).
1989
+ */
1990
+ static none(): IbUmapHubDamping;
1991
+ readonly exponent: number | undefined;
1992
+ readonly hubEta: Float64Array | undefined;
1993
+ readonly kind: string;
1994
+ }
1995
+
1899
1996
  /**
1900
1997
  * Cooperative interpolation-based batch Graph UMAP (`ibUMAP`) solver (`f32`, `layout2d`).
1901
1998
  */
@@ -1914,12 +2011,16 @@ export class IbUmapSolver {
1914
2011
  /**
1915
2012
  * Constructs an `IbUmapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop pairs.
1916
2013
  */
1917
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): IbUmapSolver;
2014
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, max_2hop_or_options: any, options: any): IbUmapSolver;
2015
+ /**
2016
+ * Returns the effective per-vertex hub damping factors $\eta_i$ (`Float64Array`).
2017
+ */
2018
+ hubEta(): Float64Array;
1918
2019
  /**
1919
- * Constructs an `IbUmapSolver` from a `CsrGraph` using $O(|E|)$ 1+2-hop pairs and
2020
+ * Constructs an `IbUmapSolver` from a `Graph` using $O(|E|)$ 1+2-hop pairs and
1920
2021
  * regularized DoG Varadhan landmark ALT distances.
1921
2022
  */
1922
- constructor(graph: CsrGraph, options: any);
2023
+ constructor(graph: Graph, options: any);
1923
2024
  runSteps(layout: Layout2d, steps: number): SolverStatus;
1924
2025
  run(layout: Layout2d): SolverStatus;
1925
2026
  step(layout: Layout2d): SolverStatus;
@@ -2027,11 +2128,11 @@ export class KamadaKawaiSolver {
2027
2128
  /**
2028
2129
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
2029
2130
  */
2030
- static fromGraph(graph: CsrGraph, options: any): KamadaKawaiSolver;
2131
+ static fromGraph(graph: Graph, options: any): KamadaKawaiSolver;
2031
2132
  /**
2032
2133
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
2033
2134
  */
2034
- constructor(graph: CsrGraph, options: any);
2135
+ constructor(graph: Graph, options: any);
2035
2136
  readonly isFinished: boolean;
2036
2137
  readonly iteration: number;
2037
2138
  readonly numNodes: number;
@@ -2080,7 +2181,7 @@ export class KnnGraph {
2080
2181
  export class KorenSpectral {
2081
2182
  free(): void;
2082
2183
  [Symbol.dispose](): void;
2083
- generate(graph: CsrGraph): any;
2184
+ generate(graph: Graph): any;
2084
2185
  constructor(options: any);
2085
2186
  }
2086
2187
 
@@ -2151,7 +2252,7 @@ export class LargeVisSolver {
2151
2252
  /**
2152
2253
  * Constructs a `LargeVisSolver` from `graph` and `LargeVisOptions`.
2153
2254
  */
2154
- constructor(graph: CsrGraph, options: any);
2255
+ constructor(graph: Graph, options: any);
2155
2256
  readonly currentLr: number;
2156
2257
  readonly isFinished: boolean;
2157
2258
  readonly iteration: number;
@@ -2163,16 +2264,16 @@ export class LargeVisSolver {
2163
2264
  }
2164
2265
 
2165
2266
  /**
2166
- * Largest connected component result returned by `CsrGraph.largestConnectedComponent()`.
2267
+ * Largest connected component result returned by `Graph.largestConnectedComponent()`.
2167
2268
  */
2168
2269
  export class LargestConnectedComponentResult {
2169
2270
  private constructor();
2170
2271
  free(): void;
2171
2272
  [Symbol.dispose](): void;
2172
2273
  /**
2173
- * Returns a cloned handle to the induced `CsrGraph` of the largest connected component.
2274
+ * Returns a cloned handle to the induced `Graph` of the largest connected component.
2174
2275
  */
2175
- graph(): CsrGraph;
2276
+ graph(): Graph;
2176
2277
  /**
2177
2278
  * Alias for `originalNodeIds()`.
2178
2279
  */
@@ -2544,7 +2645,7 @@ export class LinLogSolver {
2544
2645
  /**
2545
2646
  * Constructs a `LinLogSolver` from `graph` and optional `LinLogOptions`.
2546
2647
  */
2547
- constructor(graph: CsrGraph, options: any);
2648
+ constructor(graph: Graph, options: any);
2548
2649
  readonly backend: ForceBackend;
2549
2650
  readonly isFinished: boolean;
2550
2651
  readonly iteration: number;
@@ -2676,7 +2777,7 @@ export class ManifoldLayout2d {
2676
2777
  */
2677
2778
  len(): number;
2678
2779
  /**
2679
- * Returns `{ scale, aspect }` metric parameters.
2780
+ * Returns `{ scale, aspect, poincareEps }` metric parameters.
2680
2781
  */
2681
2782
  metric(): any;
2682
2783
  /**
@@ -2711,6 +2812,10 @@ export class ManifoldLayout2d {
2711
2812
  * Sets the physical aspect ratio (`> 0`) without mutating stored coordinates.
2712
2813
  */
2713
2814
  setAspect(aspect: number): void;
2815
+ /**
2816
+ * Sets the Poincaré boundary clamp epsilon (`0 < eps < 0.5` in `f32`) without mutating coordinates.
2817
+ */
2818
+ setPoincareEps(eps: number): void;
2714
2819
  /**
2715
2820
  * Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
2716
2821
  */
@@ -2746,11 +2851,11 @@ export class ManifoldLayout2d {
2746
2851
  /**
2747
2852
  * Returns a rigidly panned `Torus2d` `ManifoldLayout2d` minimizing boundary-wrapped edges.
2748
2853
  */
2749
- torusAutoPan(graph: CsrGraph): ManifoldLayout2d;
2854
+ torusAutoPan(graph: Graph): ManifoldLayout2d;
2750
2855
  /**
2751
2856
  * Initializes a flat 2D torus layout via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
2752
2857
  */
2753
- static torusSpectralPhaseInit(graph: CsrGraph, seed: any): ManifoldLayout2d;
2858
+ static torusSpectralPhaseInit(graph: Graph, seed: any): ManifoldLayout2d;
2754
2859
  /**
2755
2860
  * Returns the first coordinate (`x` or `lon`) of vertex `index`.
2756
2861
  */
@@ -2775,6 +2880,10 @@ export class ManifoldLayout2d {
2775
2880
  * Returns the number of vertices in the manifold layout.
2776
2881
  */
2777
2882
  readonly numNodes: number;
2883
+ /**
2884
+ * Returns the Poincaré boundary clamp epsilon (`> 0` and `< 0.5`).
2885
+ */
2886
+ readonly poincareEps: number;
2778
2887
  /**
2779
2888
  * Returns the physical geodesic scale factor (`> 0`).
2780
2889
  */
@@ -2799,7 +2908,7 @@ export class MaxentStressSolver {
2799
2908
  /**
2800
2909
  * Constructs a `MaxentStressSolver` from `graph` and optional `MaxentStressOptions`.
2801
2910
  */
2802
- constructor(graph: CsrGraph, options: any);
2911
+ constructor(graph: Graph, options: any);
2803
2912
  readonly backend: ForceBackend;
2804
2913
  readonly currentAlpha: number;
2805
2914
  readonly effectiveQ: number;
@@ -2811,6 +2920,35 @@ export class MaxentStressSolver {
2811
2920
  readonly totalIterations: number | undefined;
2812
2921
  }
2813
2922
 
2923
+ /**
2924
+ * Distance weighting rule for `UnifiedMetricAnchor`.
2925
+ */
2926
+ export class MetricAnchorWeighting {
2927
+ private constructor();
2928
+ free(): void;
2929
+ [Symbol.dispose](): void;
2930
+ /**
2931
+ * Symmetric inverse-square distance weighting `w(d) = 1 / d^2`.
2932
+ */
2933
+ static balancedInvD2(): MetricAnchorWeighting;
2934
+ /**
2935
+ * Pure inverse-power distance weighting `w(d) = 1 / d^power` (`power > 0`).
2936
+ */
2937
+ static inversePower(power: number): MetricAnchorWeighting;
2938
+ /**
2939
+ * Smoothly distance-gated long-range metric weighting (`dGate >= 0`, `power > 0`).
2940
+ */
2941
+ static longRangeGated(d_gate: number, power: number): MetricAnchorWeighting;
2942
+ /**
2943
+ * Scale-adaptive distance-gated weighting (`medianFrac >= 0`, `power > 0`).
2944
+ */
2945
+ static relativeLongRangeGated(median_frac: number, power: number): MetricAnchorWeighting;
2946
+ readonly dGate: number | undefined;
2947
+ readonly kind: string;
2948
+ readonly medianFrac: number | undefined;
2949
+ readonly power: number | undefined;
2950
+ }
2951
+
2814
2952
  /**
2815
2953
  * Selective quality metric report returned by `evaluateMetrics`.
2816
2954
  *
@@ -3011,24 +3149,24 @@ export class PacmapGraphSolver {
3011
3149
  /**
3012
3150
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
3013
3151
  */
3014
- static fromGraph(graph: CsrGraph, options: any): PacmapGraphSolver;
3152
+ static fromGraph(graph: Graph, options: any): PacmapGraphSolver;
3015
3153
  /**
3016
3154
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
3017
3155
  */
3018
- constructor(graph: CsrGraph, options: any);
3156
+ constructor(graph: Graph, options: any);
3019
3157
  /**
3020
3158
  * Initializes an area-reserved coarse backbone `Layout2d` (`f32`) together with a configured
3021
3159
  * `PacmapGraphSolver` for end-to-end multilevel layout.
3022
3160
  */
3023
- static withBackbone(graph: CsrGraph, options: any): PacmapBackboneResult;
3161
+ static withBackbone(graph: Graph, options: any): PacmapBackboneResult;
3024
3162
  /**
3025
3163
  * Constructs a `PacmapGraphSolver` from a flat row-major `(numNodes, numLandmarks)` distance table.
3026
3164
  */
3027
- static withLandmarkDistances(graph: CsrGraph, landmark_dists: Float64Array | number[], num_landmarks: number, options: any): PacmapGraphSolver;
3165
+ static withLandmarkDistances(graph: Graph, landmark_dists: Float64Array | number[], num_landmarks: number, options: any): PacmapGraphSolver;
3028
3166
  /**
3029
3167
  * Constructs a `PacmapGraphSolver` reusing precomputed `DogVaradhanLandmarks`.
3030
3168
  */
3031
- static withLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): PacmapGraphSolver;
3169
+ static withLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): PacmapGraphSolver;
3032
3170
  readonly isFinished: boolean;
3033
3171
  readonly iteration: number;
3034
3172
  readonly numHinges: number;
@@ -3089,10 +3227,56 @@ export class PfsPrimeOverlapRemoval {
3089
3227
  export class PivotMds {
3090
3228
  free(): void;
3091
3229
  [Symbol.dispose](): void;
3092
- generate(graph: CsrGraph): any;
3230
+ _generateDist(): any;
3231
+ _generateGraph(graph: Graph): any;
3232
+ _generateWithReportDist(): PivotMdsReportResult;
3233
+ _generateWithReportGraph(graph: Graph): PivotMdsReportResult;
3234
+ /**
3235
+ * Constructs a `PivotMds` generator from a flat pivot-major `(numPivots * numNodes)`
3236
+ * distance buffer (`Float64Array`, `Uint32Array`, `Uint16Array`, `Uint8Array`, or `number[]`).
3237
+ */
3238
+ static fromPivotDistances(pivot_distances_kn: any, num_nodes: number, num_pivots: number, options: any): PivotMds;
3093
3239
  constructor(options: any);
3094
3240
  }
3095
3241
 
3242
+ /**
3243
+ * Spectral summary returned by `PivotMds.generateWithReport()`.
3244
+ */
3245
+ export class PivotMdsReport {
3246
+ private constructor();
3247
+ free(): void;
3248
+ [Symbol.dispose](): void;
3249
+ /**
3250
+ * Returns descending Gram-matrix eigenvalues of $C^T C$ (`Float64Array`).
3251
+ */
3252
+ eigenvalues(): Float64Array;
3253
+ /**
3254
+ * Returns the fraction of positive Gram-matrix variance explained by the top `dims` modes.
3255
+ */
3256
+ explainedVarianceRatio(dims: number): number;
3257
+ /**
3258
+ * Returns the 2D spectral metric embeddability ratio $\rho_{2\mathrm{D}} \in [0, 1]$.
3259
+ */
3260
+ readonly embeddability2d: number;
3261
+ }
3262
+
3263
+ /**
3264
+ * Combined layout and spectral report returned by `PivotMds.generateWithReport()`.
3265
+ */
3266
+ export class PivotMdsReportResult {
3267
+ private constructor();
3268
+ free(): void;
3269
+ [Symbol.dispose](): void;
3270
+ /**
3271
+ * Returns the generated `Layout2d`, `Layout3d`, or `LayoutNd`.
3272
+ */
3273
+ layout(): any;
3274
+ /**
3275
+ * Returns the spectral `PivotMdsReport`.
3276
+ */
3277
+ report(): PivotMdsReport;
3278
+ }
3279
+
3096
3280
  /**
3097
3281
  * PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
3098
3282
  */
@@ -3169,13 +3353,13 @@ export class PrismOverlapRemoval {
3169
3353
  }
3170
3354
 
3171
3355
  /**
3172
- * Resistance-distance MDS (`RdMds`) `LayoutGenerator` supporting
3173
- * `"layout2d"`, `"layout3d"`, and `"layoutNd"`.
3356
+ * Resistance-Distance MDS (`RdMds`, Onoue 2026) `LayoutGenerator` supporting
3357
+ * `TargetKind.Layout2d`, `TargetKind.Layout3d`, and `TargetKind.LayoutNd`.
3174
3358
  */
3175
3359
  export class RdMds {
3176
3360
  free(): void;
3177
3361
  [Symbol.dispose](): void;
3178
- generate(graph: CsrGraph): any;
3362
+ generate(graph: Graph): any;
3179
3363
  constructor(options: any);
3180
3364
  }
3181
3365
 
@@ -3187,9 +3371,9 @@ export class ResistanceCurvatureFlowResult {
3187
3371
  free(): void;
3188
3372
  [Symbol.dispose](): void;
3189
3373
  /**
3190
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final conductances `w_e = 1 / l_e`.
3374
+ * Builds a weighted undirected `Graph` (`f32`) storing final conductances `w_e = 1 / l_e`.
3191
3375
  */
3192
- conductanceGraph(): CsrGraph;
3376
+ conductanceGraph(): Graph;
3193
3377
  /**
3194
3378
  * Returns final edge conductances `w_e = 1 / l_e` (`Float64Array`).
3195
3379
  */
@@ -3211,9 +3395,9 @@ export class ResistanceCurvatureFlowResult {
3211
3395
  */
3212
3396
  effectiveResistances(): Float64Array;
3213
3397
  /**
3214
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final edge lengths `l_e`.
3398
+ * Builds a weighted undirected `Graph` (`f32`) storing final edge lengths `l_e`.
3215
3399
  */
3216
- lengthGraph(): CsrGraph;
3400
+ lengthGraph(): Graph;
3217
3401
  /**
3218
3402
  * Returns final link resistance curvatures `kappa_res(u, v)` (`Float64Array`).
3219
3403
  */
@@ -3486,7 +3670,7 @@ export class ScreenedPoissonRefiner {
3486
3670
  /**
3487
3671
  * Creates a `ScreenedPoissonRefiner` retaining 1-hop edges from `graph` for optional anchors.
3488
3672
  */
3489
- static fromGraph(graph: CsrGraph, options: any): ScreenedPoissonRefiner;
3673
+ static fromGraph(graph: Graph, options: any): ScreenedPoissonRefiner;
3490
3674
  /**
3491
3675
  * Returns telemetry from the most recent density field evaluation.
3492
3676
  */
@@ -3623,7 +3807,7 @@ export class SelLayoutSolver {
3623
3807
  /**
3624
3808
  * Constructs a `SelLayoutSolver` from `graph` and optional `SelOptions`.
3625
3809
  */
3626
- constructor(graph: CsrGraph, options: any);
3810
+ constructor(graph: Graph, options: any);
3627
3811
  /**
3628
3812
  * Executes up to `steps` SEL layout iterations on `layout` in place.
3629
3813
  */
@@ -3718,7 +3902,7 @@ export class SfcLayout {
3718
3902
  /**
3719
3903
  * Constructs an `SfcLayout` generator from `graph` and optional `SfcOptions`.
3720
3904
  */
3721
- constructor(graph: CsrGraph, options: any);
3905
+ constructor(graph: Graph, options: any);
3722
3906
  /**
3723
3907
  * Returns the deterministic community-ordered vertex permutation (`Uint32Array`).
3724
3908
  */
@@ -3754,17 +3938,21 @@ export class Sgd2Solver {
3754
3938
  /**
3755
3939
  * Constructs a preconditioned mini-batch stress SGD solver from `graph` and `Sgd2Options`.
3756
3940
  */
3757
- constructor(graph: CsrGraph, options: any);
3941
+ constructor(graph: Graph, options: any);
3758
3942
  /**
3759
3943
  * Resets the iteration schedule and RNG without reallocating stored pair buffers.
3760
3944
  */
3761
3945
  resetSchedule(options: any): void;
3946
+ readonly batchSize: number;
3762
3947
  readonly currentEta: number;
3948
+ readonly damping: number;
3949
+ readonly eps: number;
3763
3950
  readonly isFinished: boolean;
3764
3951
  readonly iteration: number;
3765
3952
  readonly numNodes: number;
3766
3953
  readonly numSprings: number;
3767
3954
  readonly status: SolverStatus;
3955
+ readonly stepScale: number;
3768
3956
  readonly target: TargetKind;
3769
3957
  readonly totalIterations: number | undefined;
3770
3958
  }
@@ -3876,23 +4064,32 @@ export class SgdSolver {
3876
4064
  /**
3877
4065
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
3878
4066
  */
3879
- static full(graph: CsrGraph, options: any): SgdSolver;
4067
+ static full(graph: Graph, options: any): SgdSolver;
3880
4068
  /**
3881
4069
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
3882
4070
  */
3883
- constructor(graph: CsrGraph, options: any);
4071
+ constructor(graph: Graph, options: any);
4072
+ /**
4073
+ * Constructs an Onoue (2026) Omega resistance-distance SGD solver combining 1-hop edges with
4074
+ * `k` randomly sampled partner pairs per node using Euclidean distances in a flat row-major
4075
+ * `(numNodes, dims)` spectral embedding.
4076
+ */
4077
+ static omega(graph: Graph, embedding: Float64Array | number[], dims: number, options: any): SgdSolver;
3884
4078
  /**
3885
- * Constructs an Omega SGD solver from a flat row-major `(numNodes, dims)` spectral embedding.
4079
+ * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver from preselected `pivots`
4080
+ * and a precomputed pivot-major `(pivots.length * numNodes)` distance buffer
4081
+ * (`Float64Array`/`Uint32Array`/`Uint16Array`/`Uint8Array`/`number[]`).
3886
4082
  */
3887
- static omega(graph: CsrGraph, embedding: Float64Array | number[], dims: number, options: any): SgdSolver;
4083
+ static ortmannSparseStressFromPivots(graph: Graph, pivots: any, pivot_distances_kn: any, options: any): SgdSolver;
3888
4084
  /**
3889
4085
  * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver.
3890
4086
  */
3891
- static ortmannSparseStress(graph: CsrGraph, options: any): SgdSolver;
4087
+ static ortmannSparseStress(graph: Graph, options: any): SgdSolver;
3892
4088
  /**
3893
- * Constructs a random-pair sparse SGD solver combining 1-hop edges with sampled random pairs.
4089
+ * Constructs an Onoue (2026) random-pair sparse stress SGD solver combining 1-hop edges with
4090
+ * sampled random pairs using exact shortest-path distances.
3894
4091
  */
3895
- static randomPair(graph: CsrGraph, options: any): SgdSolver;
4092
+ static randomPair(graph: Graph, options: any): SgdSolver;
3896
4093
  /**
3897
4094
  * Resets the SGD learning-rate schedule and RNG without reallocating stored pair buffers.
3898
4095
  */
@@ -3900,11 +4097,11 @@ export class SgdSolver {
3900
4097
  /**
3901
4098
  * Computes regularized Chebyshev DoG Varadhan landmarks and constructs a 3-tier Sparse Barrier SGD solver.
3902
4099
  */
3903
- static sparseBarrierDog(graph: CsrGraph, options: any): SgdSolver;
4100
+ static sparseBarrierDog(graph: Graph, options: any): SgdSolver;
3904
4101
  /**
3905
4102
  * Constructs a 3-tier Sparse Barrier SGD solver from precomputed `DogVaradhanLandmarks`.
3906
4103
  */
3907
- static sparseBarrierFromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
4104
+ static sparseBarrierFromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options: any): SgdSolver;
3908
4105
  /**
3909
4106
  * Returns `SparseBarrierStats` when constructed via `sparseBarrierFromLandmarks` or
3910
4107
  * `sparseBarrierDog`, or `undefined` otherwise.
@@ -3913,7 +4110,7 @@ export class SgdSolver {
3913
4110
  /**
3914
4111
  * Constructs a minimal-RAM SGD solver storing 1-hop springs and streaming non-edge negatives.
3915
4112
  */
3916
- static streamingNegatives(graph: CsrGraph, options: any): SgdSolver;
4113
+ static streamingNegatives(graph: Graph, options: any): SgdSolver;
3917
4114
  /**
3918
4115
  * Returns the learning rate `eta` for the upcoming iteration (`0.0` once finished).
3919
4116
  */
@@ -3981,7 +4178,7 @@ export class SnapTFdpSolver {
3981
4178
  /**
3982
4179
  * Constructs a `SnapTFdpSolver` from `graph` and `SnapTFdpOptions`.
3983
4180
  */
3984
- constructor(graph: CsrGraph, options: any);
4181
+ constructor(graph: Graph, options: any);
3985
4182
  readonly isFinished: boolean;
3986
4183
  readonly iteration: number;
3987
4184
  readonly numNodes: number;
@@ -4126,7 +4323,7 @@ export class SpatialIntruderRefiner {
4126
4323
  /**
4127
4324
  * Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
4128
4325
  */
4129
- constructor(graph: CsrGraph, options: any);
4326
+ constructor(graph: Graph, options: any);
4130
4327
  /**
4131
4328
  * Executes up to `steps` refinement rounds on `layout` in place.
4132
4329
  */
@@ -4414,7 +4611,7 @@ export enum StressMajorizationBackend {
4414
4611
  }
4415
4612
 
4416
4613
  /**
4417
- * Cooperative Gansner-Koren-North (2004) Stress Majorization layout solver (`f32`)
4614
+ * Cooperative Gansner, Koren, & North (2005) Stress Majorization layout solver (`f32`)
4418
4615
  * across `Layout2d`, `Layout3d`, `LayoutNd`, and `ManifoldLayout2d`.
4419
4616
  */
4420
4617
  export class StressMajorizationSolver {
@@ -4443,11 +4640,11 @@ export class StressMajorizationSolver {
4443
4640
  /**
4444
4641
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
4445
4642
  */
4446
- static fromGraph(graph: CsrGraph, options: any): StressMajorizationSolver;
4643
+ static fromGraph(graph: Graph, options: any): StressMajorizationSolver;
4447
4644
  /**
4448
4645
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
4449
4646
  */
4450
- constructor(graph: CsrGraph, options: any);
4647
+ constructor(graph: Graph, options: any);
4451
4648
  readonly backend: StressMajorizationBackend;
4452
4649
  readonly isFinished: boolean;
4453
4650
  readonly iteration: number;
@@ -4490,9 +4687,9 @@ export class TFdpSolver {
4490
4687
  */
4491
4688
  static fromKnn(knn_or_indptr: any, indices_or_options: any, weights_or_options: any, options: any): TFdpSolver;
4492
4689
  /**
4493
- * Constructs a `TFdpSolver` directly from a `CsrGraph`.
4690
+ * Constructs a `TFdpSolver` directly from a `Graph`.
4494
4691
  */
4495
- constructor(graph: CsrGraph, options: any);
4692
+ constructor(graph: Graph, options: any);
4496
4693
  readonly backend: FieldRepulsionBackend;
4497
4694
  readonly currentRho: number;
4498
4695
  readonly isFinished: boolean;
@@ -4560,6 +4757,8 @@ export enum TsNetBackend {
4560
4757
  export class TsNetSolver {
4561
4758
  free(): void;
4562
4759
  [Symbol.dispose](): void;
4760
+ static _fromProbabilitiesWithConformalNoAnchor(probs: SparseProbabilities, stages: any, edge_tether: any, options: any): TsNetSolver;
4761
+ static _fromProbabilitiesWithConformalWithAnchor(probs: SparseProbabilities, stages: any, edge_tether: any, metric_anchor: UnifiedMetricAnchor, options: any): TsNetSolver;
4563
4762
  _run2d(layout: Layout2d): SolverStatus;
4564
4763
  _run3d(layout: Layout3d): SolverStatus;
4565
4764
  _runManifold(layout: ManifoldLayout2d): SolverStatus;
@@ -4572,13 +4771,13 @@ export class TsNetSolver {
4572
4771
  _step3d(layout: Layout3d): SolverStatus;
4573
4772
  _stepManifold(layout: ManifoldLayout2d): SolverStatus;
4574
4773
  _stepNd(layout: LayoutNd): SolverStatus;
4575
- static fromGraphPartialBfs(graph: CsrGraph, options: any): TsNetSolver;
4774
+ static fromGraphPartialBfs(graph: Graph, options: any): TsNetSolver;
4576
4775
  /**
4577
4776
  * Constructs a `TsNetSolver` from `graph` using direct row-normalized `A1 + w2 * A2`
4578
4777
  * affinity with configurable 2-hop sampling `mode` and optional `maxBridgeDegree`.
4579
4778
  */
4580
- static fromGraphRowNormalizedWithOptions(graph: CsrGraph, options: any): TsNetSolver;
4581
- static fromGraphRowNormalized(graph: CsrGraph, options: any): TsNetSolver;
4779
+ static fromGraphRowNormalizedWithOptions(graph: Graph, options: any): TsNetSolver;
4780
+ static fromGraphRowNormalized(graph: Graph, options: any): TsNetSolver;
4582
4781
  static fromKnn(knn: KnnGraph, options: any): TsNetSolver;
4583
4782
  /**
4584
4783
  * Constructs a `TsNetSolver` from precomputed symmetric `SparseProbabilities` and explicit `stages`.
@@ -4586,8 +4785,8 @@ export class TsNetSolver {
4586
4785
  static fromProbabilitiesWithStages(probs: SparseProbabilities, stages: any, options: any): TsNetSolver;
4587
4786
  static fromProbabilities(probs: SparseProbabilities, options: any): TsNetSolver;
4588
4787
  lastFftStats(): FitFieldStats | undefined;
4589
- constructor(graph: CsrGraph, options: any);
4590
- static pure2Hop(graph: CsrGraph, options: any): TsNetSolver;
4788
+ constructor(graph: Graph, options: any);
4789
+ static pure2Hop(graph: Graph, options: any): TsNetSolver;
4591
4790
  readonly backend: TsNetBackend;
4592
4791
  readonly currentStageLr: number;
4593
4792
  readonly isFinished: boolean;
@@ -4612,11 +4811,15 @@ export class TsNetStage {
4612
4811
  * Constructs a validated `TsNetStage` from `(iterations, options?)` or `{ iterations, ... }`.
4613
4812
  */
4614
4813
  constructor(iterations_or_options: any, options: any);
4814
+ readonly coercive1hop: number;
4615
4815
  readonly exaggeration: number;
4616
4816
  readonly iterations: number;
4617
4817
  readonly lambdaC: number;
4618
4818
  readonly lambdaKl: number;
4819
+ readonly lambdaMetric: number;
4619
4820
  readonly lambdaR: number;
4821
+ readonly spring1hop: number;
4822
+ readonly springDeadzone: number;
4620
4823
  }
4621
4824
 
4622
4825
  /**
@@ -4646,13 +4849,13 @@ export class TwoHopCsr {
4646
4849
  free(): void;
4647
4850
  [Symbol.dispose](): void;
4648
4851
  /**
4649
- * Returns a cloned handle to the canonical unweighted 1-hop `CsrGraph`.
4852
+ * Returns a cloned handle to the canonical unweighted 1-hop `Graph`.
4650
4853
  */
4651
- hop1(): CsrGraph;
4854
+ hop1(): Graph;
4652
4855
  /**
4653
- * Returns a cloned handle to the disjoint pure 2-hop `CsrGraph`.
4856
+ * Returns a cloned handle to the disjoint pure 2-hop `Graph`.
4654
4857
  */
4655
- hop2(): CsrGraph;
4858
+ hop2(): Graph;
4656
4859
  }
4657
4860
 
4658
4861
  /**
@@ -4705,7 +4908,45 @@ export enum TwoHopSamplingMode {
4705
4908
  }
4706
4909
 
4707
4910
  /**
4708
- * r" Scalar edge-weight storage precision supported by WebAssembly `CsrGraph`.
4911
+ * Persistent scale-aligned global metric skeleton anchor for conformal `TsNetSolver`.
4912
+ */
4913
+ export class UnifiedMetricAnchor {
4914
+ private constructor();
4915
+ free(): void;
4916
+ [Symbol.dispose](): void;
4917
+ /**
4918
+ * Builds a `UnifiedMetricAnchor` from a flat row-major `(numNodes, dim)` continuous embedding.
4919
+ */
4920
+ static fromEmbeddingPivots(embedding_row_major: any, num_nodes: number, dim: number, pivots: any, options: any): UnifiedMetricAnchor;
4921
+ /**
4922
+ * Builds a `UnifiedMetricAnchor` from floating-point shortest-path pivot distances (`Infinity` unreachable).
4923
+ */
4924
+ static fromF64Pivots(num_nodes: number, pivots: any, pivot_distances: any, options: any): UnifiedMetricAnchor;
4925
+ /**
4926
+ * Builds a `UnifiedMetricAnchor` from integer hop-distance pivot rows (`Uint32Array`/`Uint16Array`/`Uint8Array`).
4927
+ */
4928
+ static fromHopPivots(num_nodes: number, pivots: any, pivot_distances: any, options: any): UnifiedMetricAnchor;
4929
+ /**
4930
+ * Returns the flat pivot-major ideal distances (`Float32Array`, `<= 0.0` inactive).
4931
+ */
4932
+ pivotDistances(): Float32Array;
4933
+ /**
4934
+ * Returns the selected anchor pivot vertex indices (`Uint32Array`).
4935
+ */
4936
+ pivots(): Uint32Array;
4937
+ /**
4938
+ * Returns the flat pivot-major normalized anchor weights (`Float32Array`).
4939
+ */
4940
+ weights(): Float32Array;
4941
+ readonly activeFraction: number;
4942
+ readonly numNodes: number;
4943
+ readonly scaleAlpha: number;
4944
+ readonly softEps: number;
4945
+ readonly sumWd2: number;
4946
+ }
4947
+
4948
+ /**
4949
+ * r" Scalar edge-weight storage precision supported by WebAssembly `Graph`.
4709
4950
  */
4710
4951
  export enum WeightDtype {
4711
4952
  Float32 = 0,
@@ -4729,7 +4970,7 @@ export class YifanHuSolver {
4729
4970
  /**
4730
4971
  * Constructs a `YifanHuSolver` from `graph` and optional `YifanHuOptions`.
4731
4972
  */
4732
- constructor(graph: CsrGraph, options: any);
4973
+ constructor(graph: Graph, options: any);
4733
4974
  readonly backend: ForceBackend;
4734
4975
  readonly currentLevel: number;
4735
4976
  readonly isFinished: boolean;
@@ -4768,12 +5009,12 @@ export function _cqKmeansNd(layout: LayoutNd, labels: any, options: any): Partit
4768
5009
  /**
4769
5010
  * Finds all crossing edge sub-segment pairs on the unit torus `[0, 1)^2` for `Layout2d`.
4770
5011
  */
4771
- export function _crossingEdgesTorus2d(graph: CsrGraph, layout: Layout2d): TorusCrossing[];
5012
+ export function _crossingEdgesTorus2d(graph: Graph, layout: Layout2d): TorusCrossing[];
4772
5013
 
4773
5014
  /**
4774
5015
  * Finds all crossing edge sub-segment pairs on the flat torus for `ManifoldLayout2d` (`torus2d`).
4775
5016
  */
4776
- export function _crossingEdgesTorusManifold(graph: CsrGraph, layout: ManifoldLayout2d): TorusCrossing[];
5017
+ export function _crossingEdgesTorusManifold(graph: Graph, layout: ManifoldLayout2d): TorusCrossing[];
4777
5018
 
4778
5019
  export function _daviesBouldinScore2d(layout: Layout2d, labels: any): number;
4779
5020
 
@@ -4786,13 +5027,13 @@ export function _daviesBouldinScoreNd(layout: LayoutNd, labels: any): number;
4786
5027
  /**
4787
5028
  * Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
4788
5029
  */
4789
- export function _dggPreservation2d(graph: CsrGraph, layout: Layout2d): number;
5030
+ export function _dggPreservation2d(graph: Graph, layout: Layout2d): number;
4790
5031
 
4791
- export function _dggPreservation3d(graph: CsrGraph, layout: Layout3d): number;
5032
+ export function _dggPreservation3d(graph: Graph, layout: Layout3d): number;
4792
5033
 
4793
- export function _dggPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5034
+ export function _dggPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
4794
5035
 
4795
- export function _dggPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
5036
+ export function _dggPreservationNd(graph: Graph, layout: LayoutNd): number;
4796
5037
 
4797
5038
  export function _distanceConsistency2d(layout: Layout2d, labels: any): number;
4798
5039
 
@@ -4813,38 +5054,38 @@ export function _distributionConsistencyNd(layout: LayoutNd, labels: any, option
4813
5054
  /**
4814
5055
  * Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
4815
5056
  */
4816
- export function _drngPreservation2d(graph: CsrGraph, layout: Layout2d): number;
5057
+ export function _drngPreservation2d(graph: Graph, layout: Layout2d): number;
4817
5058
 
4818
- export function _drngPreservation3d(graph: CsrGraph, layout: Layout3d): number;
5059
+ export function _drngPreservation3d(graph: Graph, layout: Layout3d): number;
4819
5060
 
4820
- export function _drngPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5061
+ export function _drngPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
4821
5062
 
4822
- export function _drngPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
5063
+ export function _drngPreservationNd(graph: Graph, layout: LayoutNd): number;
4823
5064
 
4824
5065
  /**
4825
5066
  * Selectively evaluates quality metrics on `Layout2d` without an `originalLayout`.
4826
5067
  */
4827
- export function _evaluateMetrics2d(graph: CsrGraph, layout: Layout2d, targets: any, options: any): MetricReport;
5068
+ export function _evaluateMetrics2d(graph: Graph, layout: Layout2d, targets: any, options: any): MetricReport;
4828
5069
 
4829
5070
  /**
4830
5071
  * Selectively evaluates quality metrics on `Layout2d` with a reference `originalLayout`.
4831
5072
  */
4832
- export function _evaluateMetrics2dWithOriginal(graph: CsrGraph, layout: Layout2d, targets: any, options: any, original_layout: Layout2d): MetricReport;
5073
+ export function _evaluateMetrics2dWithOriginal(graph: Graph, layout: Layout2d, targets: any, options: any, original_layout: Layout2d): MetricReport;
4833
5074
 
4834
5075
  /**
4835
5076
  * Selectively evaluates quality metrics on `Layout3d`, skipping unrequested work.
4836
5077
  */
4837
- export function _evaluateMetrics3d(graph: CsrGraph, layout: Layout3d, targets: any, options: any): MetricReport;
5078
+ export function _evaluateMetrics3d(graph: Graph, layout: Layout3d, targets: any, options: any): MetricReport;
4838
5079
 
4839
5080
  /**
4840
5081
  * Selectively evaluates quality metrics on `ManifoldLayout2d`, skipping unrequested work.
4841
5082
  */
4842
- export function _evaluateMetricsManifold(graph: CsrGraph, layout: ManifoldLayout2d, targets: any, options: any): MetricReport;
5083
+ export function _evaluateMetricsManifold(graph: Graph, layout: ManifoldLayout2d, targets: any, options: any): MetricReport;
4843
5084
 
4844
5085
  /**
4845
5086
  * Selectively evaluates quality metrics on `LayoutNd`, skipping unrequested work.
4846
5087
  */
4847
- export function _evaluateMetricsNd(graph: CsrGraph, layout: LayoutNd, targets: any, options: any): MetricReport;
5088
+ export function _evaluateMetricsNd(graph: Graph, layout: LayoutNd, targets: any, options: any): MetricReport;
4848
5089
 
4849
5090
  /**
4850
5091
  * Extracts exact undirected Gabriel Graph (`GG`) edges as flat `[u0, v0, ...]` (`Uint32Array`).
@@ -4860,47 +5101,47 @@ export function _gabrielGraphEdgesNd(layout: LayoutNd): Uint32Array;
4860
5101
  /**
4861
5102
  * Computes Gabriel graph condition violations across `graph` edges under `layout`.
4862
5103
  */
4863
- export function _gabrielGraphProperty2d(graph: CsrGraph, layout: Layout2d): number;
5104
+ export function _gabrielGraphProperty2d(graph: Graph, layout: Layout2d): number;
4864
5105
 
4865
- export function _gabrielGraphProperty3d(graph: CsrGraph, layout: Layout3d): number;
5106
+ export function _gabrielGraphProperty3d(graph: Graph, layout: Layout3d): number;
4866
5107
 
4867
- export function _gabrielGraphPropertyManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5108
+ export function _gabrielGraphPropertyManifold(graph: Graph, layout: ManifoldLayout2d): number;
4868
5109
 
4869
- export function _gabrielGraphPropertyNd(graph: CsrGraph, layout: LayoutNd): number;
5110
+ export function _gabrielGraphPropertyNd(graph: Graph, layout: LayoutNd): number;
4870
5111
 
4871
5112
  /**
4872
5113
  * Evaluates ideal edge-length preservation error sum for `graph` under `layout`.
4873
5114
  */
4874
- export function _idealEdgeLengths2d(graph: CsrGraph, layout: Layout2d): number;
5115
+ export function _idealEdgeLengths2d(graph: Graph, layout: Layout2d): number;
4875
5116
 
4876
- export function _idealEdgeLengths3d(graph: CsrGraph, layout: Layout3d): number;
5117
+ export function _idealEdgeLengths3d(graph: Graph, layout: Layout3d): number;
4877
5118
 
4878
- export function _idealEdgeLengthsManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5119
+ export function _idealEdgeLengthsManifold(graph: Graph, layout: ManifoldLayout2d): number;
4879
5120
 
4880
- export function _idealEdgeLengthsNd(graph: CsrGraph, layout: LayoutNd): number;
5121
+ export function _idealEdgeLengthsNd(graph: Graph, layout: LayoutNd): number;
4881
5122
 
4882
5123
  /**
4883
5124
  * Evaluates ideal edge-length preservation error against a uniform `unitEdgeLength > 0`.
4884
5125
  */
4885
- export function _idealEdgeLengthsWithUnit2d(graph: CsrGraph, layout: Layout2d, unit_edge_length: number): number;
5126
+ export function _idealEdgeLengthsWithUnit2d(graph: Graph, layout: Layout2d, unit_edge_length: number): number;
4886
5127
 
4887
- export function _idealEdgeLengthsWithUnit3d(graph: CsrGraph, layout: Layout3d, unit_edge_length: number): number;
5128
+ export function _idealEdgeLengthsWithUnit3d(graph: Graph, layout: Layout3d, unit_edge_length: number): number;
4888
5129
 
4889
- export function _idealEdgeLengthsWithUnitManifold(graph: CsrGraph, layout: ManifoldLayout2d, unit_edge_length: number): number;
5130
+ export function _idealEdgeLengthsWithUnitManifold(graph: Graph, layout: ManifoldLayout2d, unit_edge_length: number): number;
4890
5131
 
4891
- export function _idealEdgeLengthsWithUnitNd(graph: CsrGraph, layout: LayoutNd, unit_edge_length: number): number;
5132
+ export function _idealEdgeLengthsWithUnitNd(graph: Graph, layout: LayoutNd, unit_edge_length: number): number;
4892
5133
 
4893
- export function _landmarkStratifiedRta2d(graph: CsrGraph, layout: Layout2d, options: any): number;
5134
+ export function _landmarkStratifiedRta2d(graph: Graph, layout: Layout2d, options: any): number;
4894
5135
 
4895
- export function _landmarkStratifiedRta3d(graph: CsrGraph, layout: Layout3d, options: any): number;
5136
+ export function _landmarkStratifiedRta3d(graph: Graph, layout: Layout3d, options: any): number;
4896
5137
 
4897
- export function _landmarkStratifiedRtaDetail2d(graph: CsrGraph, layout: Layout2d, options: any): RtaEvaluation;
5138
+ export function _landmarkStratifiedRtaDetail2d(graph: Graph, layout: Layout2d, options: any): RtaEvaluation;
4898
5139
 
4899
- export function _landmarkStratifiedRtaDetail3d(graph: CsrGraph, layout: Layout3d, options: any): RtaEvaluation;
5140
+ export function _landmarkStratifiedRtaDetail3d(graph: Graph, layout: Layout3d, options: any): RtaEvaluation;
4900
5141
 
4901
- export function _landmarkStratifiedRtaDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): RtaEvaluation;
5142
+ export function _landmarkStratifiedRtaDetailManifold(graph: Graph, layout: ManifoldLayout2d, options: any): RtaEvaluation;
4902
5143
 
4903
- export function _landmarkStratifiedRtaDetailNd(graph: CsrGraph, layout: LayoutNd, options: any): RtaEvaluation;
5144
+ export function _landmarkStratifiedRtaDetailNd(graph: Graph, layout: LayoutNd, options: any): RtaEvaluation;
4904
5145
 
4905
5146
  export function _landmarkStratifiedRtaFromLandmarks2d(layout: Layout2d, landmark_ids: any, landmark_dists: any, options: any): RtaEvaluation;
4906
5147
 
@@ -4910,20 +5151,20 @@ export function _landmarkStratifiedRtaFromLandmarksManifold(layout: ManifoldLayo
4910
5151
 
4911
5152
  export function _landmarkStratifiedRtaFromLandmarksNd(layout: LayoutNd, landmark_ids: any, landmark_dists: any, options: any): RtaEvaluation;
4912
5153
 
4913
- export function _landmarkStratifiedRtaManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5154
+ export function _landmarkStratifiedRtaManifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4914
5155
 
4915
- export function _landmarkStratifiedRtaNd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5156
+ export function _landmarkStratifiedRtaNd(graph: Graph, layout: LayoutNd, options: any): number;
4916
5157
 
4917
5158
  /**
4918
5159
  * Evaluates duplicate-node (`f32`/`f64`), zero-length edge, and bounding-box degeneracies.
4919
5160
  */
4920
- export function _layoutDegeneracy2d(graph: CsrGraph, layout: Layout2d): LayoutDegeneracy;
5161
+ export function _layoutDegeneracy2d(graph: Graph, layout: Layout2d): LayoutDegeneracy;
4921
5162
 
4922
- export function _layoutDegeneracy3d(graph: CsrGraph, layout: Layout3d): LayoutDegeneracy;
5163
+ export function _layoutDegeneracy3d(graph: Graph, layout: Layout3d): LayoutDegeneracy;
4923
5164
 
4924
- export function _layoutDegeneracyManifold(graph: CsrGraph, layout: ManifoldLayout2d): LayoutDegeneracy;
5165
+ export function _layoutDegeneracyManifold(graph: Graph, layout: ManifoldLayout2d): LayoutDegeneracy;
4925
5166
 
4926
- export function _layoutDegeneracyNd(graph: CsrGraph, layout: LayoutNd): LayoutDegeneracy;
5167
+ export function _layoutDegeneracyNd(graph: Graph, layout: LayoutNd): LayoutDegeneracy;
4927
5168
 
4928
5169
  export function _neighborhoodHit2d(layout: Layout2d, labels: any, options: any): number;
4929
5170
 
@@ -4936,24 +5177,24 @@ export function _neighborhoodHitNd(layout: LayoutNd, labels: any, options: any):
4936
5177
  /**
4937
5178
  * Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
4938
5179
  */
4939
- export function _neighborhoodPreservation1Hop2d(graph: CsrGraph, layout: Layout2d): number;
5180
+ export function _neighborhoodPreservation1Hop2d(graph: Graph, layout: Layout2d): number;
4940
5181
 
4941
- export function _neighborhoodPreservation1Hop3d(graph: CsrGraph, layout: Layout3d): number;
5182
+ export function _neighborhoodPreservation1Hop3d(graph: Graph, layout: Layout3d): number;
4942
5183
 
4943
- export function _neighborhoodPreservation1HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5184
+ export function _neighborhoodPreservation1HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
4944
5185
 
4945
- export function _neighborhoodPreservation1HopNd(graph: CsrGraph, layout: LayoutNd): number;
5186
+ export function _neighborhoodPreservation1HopNd(graph: Graph, layout: LayoutNd): number;
4946
5187
 
4947
5188
  /**
4948
5189
  * Computes `StaticKdTree`-accelerated 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]`.
4949
5190
  */
4950
- export function _neighborhoodPreservation2Hop2d(graph: CsrGraph, layout: Layout2d): number;
5191
+ export function _neighborhoodPreservation2Hop2d(graph: Graph, layout: Layout2d): number;
4951
5192
 
4952
- export function _neighborhoodPreservation2Hop3d(graph: CsrGraph, layout: Layout3d): number;
5193
+ export function _neighborhoodPreservation2Hop3d(graph: Graph, layout: Layout3d): number;
4953
5194
 
4954
- export function _neighborhoodPreservation2HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5195
+ export function _neighborhoodPreservation2HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
4955
5196
 
4956
- export function _neighborhoodPreservation2HopNd(graph: CsrGraph, layout: LayoutNd): number;
5197
+ export function _neighborhoodPreservation2HopNd(graph: Graph, layout: LayoutNd): number;
4957
5198
 
4958
5199
  /**
4959
5200
  * Computes the one-sided hinge node-resolution violation sum of `layout`.
@@ -4988,53 +5229,53 @@ export function _relativeNeighborhoodEdgesNd(layout: LayoutNd): Uint32Array;
4988
5229
  /**
4989
5230
  * Estimates 1-hop neighborhood preservation (`NP1`) via vertex sampling (`options?: { numSamples?, seed? }`).
4990
5231
  */
4991
- export function _sampledNp12d(graph: CsrGraph, layout: Layout2d, options: any): number;
5232
+ export function _sampledNp12d(graph: Graph, layout: Layout2d, options: any): number;
4992
5233
 
4993
- export function _sampledNp13d(graph: CsrGraph, layout: Layout3d, options: any): number;
5234
+ export function _sampledNp13d(graph: Graph, layout: Layout3d, options: any): number;
4994
5235
 
4995
- export function _sampledNp1Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5236
+ export function _sampledNp1Manifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
4996
5237
 
4997
- export function _sampledNp1Nd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5238
+ export function _sampledNp1Nd(graph: Graph, layout: LayoutNd, options: any): number;
4998
5239
 
4999
5240
  /**
5000
5241
  * Estimates 2-hop neighborhood preservation (`NP2`) via vertex sampling (`options?: { numSamples?, seed? }`).
5001
5242
  */
5002
- export function _sampledNp22d(graph: CsrGraph, layout: Layout2d, options: any): number;
5243
+ export function _sampledNp22d(graph: Graph, layout: Layout2d, options: any): number;
5003
5244
 
5004
- export function _sampledNp23d(graph: CsrGraph, layout: Layout3d, options: any): number;
5245
+ export function _sampledNp23d(graph: Graph, layout: Layout3d, options: any): number;
5005
5246
 
5006
- export function _sampledNp2Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5247
+ export function _sampledNp2Manifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
5007
5248
 
5008
- export function _sampledNp2Nd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5249
+ export function _sampledNp2Nd(graph: Graph, layout: LayoutNd, options: any): number;
5009
5250
 
5010
5251
  /**
5011
5252
  * Computes $O(kN)$ pivot-sampled Scale-Normalized Stress (`SNS`) (`options?: { numPivots?, seed? }`).
5012
5253
  */
5013
- export function _sampledScaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d, options: any): number;
5254
+ export function _sampledScaleNormalizedStress2d(graph: Graph, layout: Layout2d, options: any): number;
5014
5255
 
5015
- export function _sampledScaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d, options: any): number;
5256
+ export function _sampledScaleNormalizedStress3d(graph: Graph, layout: Layout3d, options: any): number;
5016
5257
 
5017
- export function _sampledScaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d, options: any): number;
5258
+ export function _sampledScaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d, options: any): number;
5018
5259
 
5019
- export function _sampledScaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd, options: any): number;
5260
+ export function _sampledScaleNormalizedStressNd(graph: Graph, layout: LayoutNd, options: any): number;
5020
5261
 
5021
5262
  /**
5022
5263
  * Computes closed-form Scale-Normalized Stress (`SNS`) in `[0.0, 1.0]` for `graph` and `layout`.
5023
5264
  */
5024
- export function _scaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d): number;
5265
+ export function _scaleNormalizedStress2d(graph: Graph, layout: Layout2d): number;
5025
5266
 
5026
- export function _scaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d): number;
5267
+ export function _scaleNormalizedStress3d(graph: Graph, layout: Layout3d): number;
5027
5268
 
5028
5269
  /**
5029
5270
  * Computes detailed closed-form Scale-Normalized Stress (`SNS`) diagnostics for `graph` and `layout`.
5030
5271
  */
5031
- export function _scaleNormalizedStressDetail2d(graph: CsrGraph, layout: Layout2d): StressEvaluation;
5272
+ export function _scaleNormalizedStressDetail2d(graph: Graph, layout: Layout2d): StressEvaluation;
5032
5273
 
5033
- export function _scaleNormalizedStressDetail3d(graph: CsrGraph, layout: Layout3d): StressEvaluation;
5274
+ export function _scaleNormalizedStressDetail3d(graph: Graph, layout: Layout3d): StressEvaluation;
5034
5275
 
5035
- export function _scaleNormalizedStressDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d): StressEvaluation;
5276
+ export function _scaleNormalizedStressDetailManifold(graph: Graph, layout: ManifoldLayout2d): StressEvaluation;
5036
5277
 
5037
- export function _scaleNormalizedStressDetailNd(graph: CsrGraph, layout: LayoutNd): StressEvaluation;
5278
+ export function _scaleNormalizedStressDetailNd(graph: Graph, layout: LayoutNd): StressEvaluation;
5038
5279
 
5039
5280
  /**
5040
5281
  * Computes closed-form Scale-Normalized Stress (`SNS`) from a flat row-major `N * N` `distances`
@@ -5048,9 +5289,9 @@ export function _scaleNormalizedStressFromDistancesManifold(layout: ManifoldLayo
5048
5289
 
5049
5290
  export function _scaleNormalizedStressFromDistancesNd(layout: LayoutNd, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
5050
5291
 
5051
- export function _scaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5292
+ export function _scaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d): number;
5052
5293
 
5053
- export function _scaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd): number;
5294
+ export function _scaleNormalizedStressNd(graph: Graph, layout: LayoutNd): number;
5054
5295
 
5055
5296
  export function _sepmeGab2d(layout: Layout2d, labels: any): number;
5056
5297
 
@@ -5095,22 +5336,22 @@ export function _silhouetteScoreNd(layout: LayoutNd, labels: any): number;
5095
5336
  /**
5096
5337
  * Counts non-adjacent edge sub-segment crossings on the flat unit torus `[0, 1)^2` for `Layout2d`.
5097
5338
  */
5098
- export function _torusCrossingNumber2d(graph: CsrGraph, layout: Layout2d): number;
5339
+ export function _torusCrossingNumber2d(graph: Graph, layout: Layout2d): number;
5099
5340
 
5100
5341
  /**
5101
5342
  * Counts non-adjacent edge sub-segment crossings on the flat torus for `ManifoldLayout2d` (`torus2d`).
5102
5343
  */
5103
- export function _torusCrossingNumberManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
5344
+ export function _torusCrossingNumberManifold(graph: Graph, layout: ManifoldLayout2d): number;
5104
5345
 
5105
5346
  /**
5106
5347
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `Layout2d`.
5107
5348
  */
5108
- export function _torusLayoutEdgeSegments2d(graph: CsrGraph, layout: Layout2d): Float64Array;
5349
+ export function _torusLayoutEdgeSegments2d(graph: Graph, layout: Layout2d): Float64Array;
5109
5350
 
5110
5351
  /**
5111
5352
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `ManifoldLayout2d`.
5112
5353
  */
5113
- export function _torusLayoutEdgeSegmentsManifold(graph: CsrGraph, layout: ManifoldLayout2d): Float64Array;
5354
+ export function _torusLayoutEdgeSegmentsManifold(graph: Graph, layout: ManifoldLayout2d): Float64Array;
5114
5355
 
5115
5356
  /**
5116
5357
  * Returns adaptive Chebyshev polynomial degree for diffusion time `t`.
@@ -5152,22 +5393,22 @@ export function alignClusteredCentroids(fine_layout: Layout2d, coarse_layout: La
5152
5393
  /**
5153
5394
  * Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
5154
5395
  */
5155
- export function allPairsBfs(graph: CsrGraph, unit_edge_length?: number | null): Float64Array;
5396
+ export function allPairsBfs(graph: Graph, unit_edge_length?: number | null): Float64Array;
5156
5397
 
5157
5398
  /**
5158
5399
  * Computes the flat row-major `(numNodes, numNodes)` all-pairs Dijkstra distance matrix (`Float64Array`).
5159
5400
  */
5160
- export function allPairsDijkstra(graph: CsrGraph): Float64Array;
5401
+ export function allPairsDijkstra(graph: Graph): Float64Array;
5161
5402
 
5162
5403
  /**
5163
5404
  * Computes the exponential angular-resolution penalty sum over incident edge pairs.
5164
5405
  */
5165
- export function angularResolution(graph: CsrGraph, layout: Layout2d): number;
5406
+ export function angularResolution(graph: Graph, layout: Layout2d): number;
5166
5407
 
5167
5408
  /**
5168
5409
  * Constructs a symmetric PSD Coifman-Lafon anisotropic graph Laplacian `L_aniso`.
5169
5410
  */
5170
- export function anisotropicLaplacian(graph: CsrGraph, options: any): AnisotropicLaplacianResult;
5411
+ export function anisotropicLaplacian(graph: Graph, options: any): AnisotropicLaplacianResult;
5171
5412
 
5172
5413
  /**
5173
5414
  * Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
@@ -5181,19 +5422,19 @@ export function applyRelativeDistanceFloor(d1: Float64Array, d2: Float64Array, d
5181
5422
  export function aspectRatio(layout: Layout2d): number;
5182
5423
 
5183
5424
  /**
5184
- * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `CsrGraph`.
5425
+ * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `Graph`.
5185
5426
  */
5186
- export function assignLayers(graph: CsrGraph, method: any): Uint32Array;
5427
+ export function assignLayers(graph: Graph, method: any): Uint32Array;
5187
5428
 
5188
5429
  /**
5189
5430
  * Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
5190
5431
  */
5191
- export function bfsSingleSource(graph: CsrGraph, source: number, unit_edge_length?: number | null): Float64Array;
5432
+ export function bfsSingleSource(graph: Graph, source: number, unit_edge_length?: number | null): Float64Array;
5192
5433
 
5193
5434
  /**
5194
5435
  * Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
5195
5436
  */
5196
- export function buildCapped12hopKnn(graph: CsrGraph, max_2hop_per_node: number | null | undefined, seed: any): TwoHopKnnResult;
5437
+ export function buildCapped12hopKnn(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): TwoHopKnnResult;
5197
5438
 
5198
5439
  /**
5199
5440
  * Builds 2-term Difference-of-Gaussians filter terms `[[1 - betaFloor, t1], [-alpha * (1 - betaFloor), t2]]`.
@@ -5209,12 +5450,12 @@ export function buildGumap12hopPriorityCsr(num_nodes: number, u1: Uint32Array |
5209
5450
  /**
5210
5451
  * Builds a hybrid 1+2-hop + two-step coarse `StaticKdTree` + full-$D$ reranked `KnnGraph`.
5211
5452
  */
5212
- export function buildHybridAdaptiveKnn(graph: CsrGraph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options: any): HybridKnnResult;
5453
+ export function buildHybridAdaptiveKnn(graph: Graph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options: any): HybridKnnResult;
5213
5454
 
5214
5455
  /**
5215
5456
  * Builds a pure 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
5216
5457
  */
5217
- export function buildPure2hopKnn(graph: CsrGraph): TwoHopKnnResult;
5458
+ export function buildPure2hopKnn(graph: Graph): TwoHopKnnResult;
5218
5459
 
5219
5460
  /**
5220
5461
  * Builds parameter-free R1 regularized DoG terms from $\sigma_\lambda$.
@@ -5230,7 +5471,7 @@ export function buildRerankKnn(coords: Float64Array | number[], num_nodes: numbe
5230
5471
  /**
5231
5472
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`.
5232
5473
  */
5233
- export function chebyshevDogJlEmbedding(graph: CsrGraph, options: any): Float64Array;
5474
+ export function chebyshevDogJlEmbedding(graph: Graph, options: any): Float64Array;
5234
5475
 
5235
5476
  /**
5236
5477
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`
@@ -5241,7 +5482,7 @@ export function chebyshevDogJlEmbeddingMatrix(matrix: CsrMatrix, options: any):
5241
5482
  /**
5242
5483
  * Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
5243
5484
  */
5244
- export function chebyshevHeatSpmv(graph: CsrGraph, vectors: Float64Array | number[], num_cols: number, t: number, options: any): Float64Array;
5485
+ export function chebyshevHeatSpmv(graph: Graph, vectors: Float64Array | number[], num_cols: number, t: number, options: any): Float64Array;
5245
5486
 
5246
5487
  /**
5247
5488
  * Applies Chebyshev heat diffusion $\exp(-t A)$ to a row-major `(numNodes, numCols)` buffer
@@ -5257,12 +5498,12 @@ export function classDensityMeasure(layout: Layout2d, labels: any, options: any)
5257
5498
  /**
5258
5499
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`, default `dims = 2`).
5259
5500
  */
5260
- export function classicalMds(graph: CsrGraph, dims?: number | null): LayoutNd;
5501
+ export function classicalMds(graph: Graph, dims?: number | null): LayoutNd;
5261
5502
 
5262
5503
  /**
5263
5504
  * Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
5264
5505
  */
5265
- export function classicalMds2d(graph: CsrGraph): Layout2d;
5506
+ export function classicalMds2d(graph: Graph): Layout2d;
5266
5507
 
5267
5508
  /**
5268
5509
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`) from a flat `(numNodes, numNodes)`
@@ -5283,22 +5524,22 @@ export function clusterAreaFaithfulnessDetail(layout: Layout2d, labels: any, opt
5283
5524
  /**
5284
5525
  * Runs coarse Louvain edge-length-first area reservation and non-SPD backbone initialization.
5285
5526
  */
5286
- export function coarseBackboneInit(graph: CsrGraph, options: any): CoarseBackboneResult;
5527
+ export function coarseBackboneInit(graph: Graph, options: any): CoarseBackboneResult;
5287
5528
 
5288
5529
  /**
5289
- * Coarsens an undirected `CsrGraph` by contracting vertices that share a cluster label.
5530
+ * Coarsens an undirected `Graph` by contracting vertices that share a cluster label.
5290
5531
  */
5291
- export function coarsenGraph(graph: CsrGraph, labels: Uint32Array | number[]): CoarsenedGraphResult;
5532
+ export function coarsenGraph(graph: Graph, labels: Uint32Array | number[]): CoarsenedGraphResult;
5292
5533
 
5293
5534
  /**
5294
5535
  * Builds the combinatorial graph Laplacian $L = D - A$ as a `CsrMatrix`.
5295
5536
  */
5296
- export function combinatorialLaplacian(graph: CsrGraph): CsrMatrix;
5537
+ export function combinatorialLaplacian(graph: Graph): CsrMatrix;
5297
5538
 
5298
5539
  /**
5299
5540
  * Computes exact distinct 1-hop + 2-hop neighborhood sizes $|B_2(u) \setminus \{u\}|$.
5300
5541
  */
5301
- export function compute2hopNeighborhoodSizes(graph: CsrGraph): Uint32Array;
5542
+ export function compute2hopNeighborhoodSizes(graph: Graph): Uint32Array;
5302
5543
 
5303
5544
  /**
5304
5545
  * Computes Chebyshev expansion coefficients for $\sum_m w_m \exp(-t_m \lambda)$ over `[0, lambdaMax]`.
@@ -5308,18 +5549,18 @@ export function computeChebyshevBandpassCoefficients(terms: any, lambda_max?: nu
5308
5549
  /**
5309
5550
  * Computes heat-diffusion spectral embedding $D^{-1/2} U \exp(-0.5 t \Lambda)$.
5310
5551
  */
5311
- export function computeDiffusionEmbedding(graph: CsrGraph, options: any): SpectralEmbeddingResult;
5552
+ export function computeDiffusionEmbedding(graph: Graph, options: any): SpectralEmbeddingResult;
5312
5553
 
5313
5554
  /**
5314
5555
  * Computes effective edge resistances and Foster's theorem diagnostics via exact pseudoinverse
5315
5556
  * (for small graphs) or Spielman-Srivastava JL projection solved with `AmgPcgSolver`.
5316
5557
  */
5317
- export function computeEffectiveResistances(graph: CsrGraph, options: any): EffectiveResistanceResult;
5558
+ export function computeEffectiveResistances(graph: Graph, options: any): EffectiveResistanceResult;
5318
5559
 
5319
5560
  /**
5320
5561
  * Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
5321
5562
  */
5322
- export function computeFuzzySimplicialSet(knn: KnnGraph, sigma_iters?: number | null, sigma_tolerance?: number | null): SparseProbabilities;
5563
+ export function computeFuzzySimplicialSet(knn: KnnGraph, sigma_iters_or_options: any, sigma_tolerance?: number | null, fuzzy_threshold?: number | null): SparseProbabilities;
5323
5564
 
5324
5565
  /**
5325
5566
  * Computes parameter-free Horvitz-Thompson repulsion scaling $\gamma_{\mathrm{eff}}$.
@@ -5334,69 +5575,69 @@ export function computeKnnProbabilities(knn: KnnGraph, perplexities: Float64Arra
5334
5575
  /**
5335
5576
  * Computes scalar median 2-hop adaptive perplexity.
5336
5577
  */
5337
- export function computeMedian2hopPerplexity(graph: CsrGraph, options: any): number;
5578
+ export function computeMedian2hopPerplexity(graph: Graph, options: any): number;
5338
5579
 
5339
5580
  /**
5340
5581
  * Computes per-node 2-hop adaptive perplexities.
5341
5582
  */
5342
- export function computeNodewise2hopPerplexities(graph: CsrGraph, options: any): Float64Array;
5583
+ export function computeNodewise2hopPerplexities(graph: Graph, options: any): Float64Array;
5343
5584
 
5344
5585
  /**
5345
5586
  * Computes pure-Rust pivoted `RHGH` landmark tables via `AmgPcgSolver` + JL diagonal probes.
5346
5587
  */
5347
- export function computePivotedRhghLandmarks(graph: CsrGraph, options: any): RhghLandmarksResult;
5588
+ export function computePivotedRhghLandmarks(graph: Graph, options: any): RhghLandmarksResult;
5348
5589
 
5349
5590
  /**
5350
5591
  * Computes pure-Rust pivoted `RHGH` landmark distances as `{ landmarks: RhghLandmarks, result: RhghLandmarksResult }`.
5351
5592
  */
5352
- export function computePivotedRhghLandmarksResult(graph: CsrGraph, options: any): RhghLandmarks;
5593
+ export function computePivotedRhghLandmarksResult(graph: Graph, options: any): RhghLandmarks;
5353
5594
 
5354
5595
  /**
5355
5596
  * Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
5356
5597
  */
5357
- export function computeRegularizedDogVaradhanLandmarks(graph: CsrGraph, options: any): DogVaradhanLandmarks;
5598
+ export function computeRegularizedDogVaradhanLandmarks(graph: Graph, options: any): DogVaradhanLandmarks;
5358
5599
 
5359
5600
  /**
5360
5601
  * Computes regularized DoG Varadhan landmark tables from a custom symmetric PSD `CsrMatrix`
5361
5602
  * with dynamic `[0, lambdaMax]` spectrum scaling.
5362
5603
  */
5363
- export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: CsrGraph, matrix: CsrMatrix, options: any): DogVaradhanLandmarks;
5604
+ export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: Graph, matrix: CsrMatrix, options: any): DogVaradhanLandmarks;
5364
5605
 
5365
5606
  /**
5366
- * Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
5607
+ * Computes an Onoue (2026) effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
5367
5608
  */
5368
- export function computeResistanceEmbedding(graph: CsrGraph, options: any): SpectralEmbeddingResult;
5609
+ export function computeResistanceEmbedding(graph: Graph, options: any): SpectralEmbeddingResult;
5369
5610
 
5370
5611
  /**
5371
5612
  * Returns all non-adjacent crossing edge pairs in `graph` under `layout`.
5372
5613
  */
5373
- export function crossingEdges(graph: CsrGraph, layout: Layout2d): CrossingPair[];
5614
+ export function crossingEdges(graph: Graph, layout: Layout2d): CrossingPair[];
5374
5615
 
5375
5616
  /**
5376
5617
  * Finds all hyperbolic geodesic crossing pairs on `HyperbolicPoincare` or `HyperbolicLorentz`.
5377
5618
  */
5378
- export function crossingEdgesHyperbolic(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
5619
+ export function crossingEdgesHyperbolic(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
5379
5620
 
5380
5621
  /**
5381
5622
  * Finds all shortest great-circle geodesic arc crossing pairs on `ManifoldKind::Spherical`.
5382
5623
  */
5383
- export function crossingEdgesSpherical(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
5624
+ export function crossingEdgesSpherical(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
5384
5625
 
5385
5626
  /**
5386
5627
  * Computes both exact crossing count and crossing-angle statistics in a single sweep pass.
5387
5628
  */
5388
- export function crossingSummary(graph: CsrGraph, layout: Layout2d): CrossingSummary;
5629
+ export function crossingSummary(graph: Graph, layout: Layout2d): CrossingSummary;
5389
5630
 
5390
5631
  /**
5391
5632
  * Computes exact DRGraph Eq. (17) crosslessness $1 - \sqrt{c / c_{\max}} \in [0.0, 1.0]$.
5392
5633
  */
5393
- export function crosslessness(graph: CsrGraph, layout: Layout2d): number;
5634
+ export function crosslessness(graph: Graph, layout: Layout2d): number;
5394
5635
 
5395
5636
  /**
5396
5637
  * Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
5397
5638
  * returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
5398
5639
  */
5399
- export function cycleEdges(graph: CsrGraph): Uint32Array;
5640
+ export function cycleEdges(graph: Graph): Uint32Array;
5400
5641
 
5401
5642
  /**
5402
5643
  * Returns static `DatasetInfo` records for all built-in benchmark datasets.
@@ -5414,9 +5655,9 @@ export function datasetInfo(name: string): DatasetInfo | undefined;
5414
5655
  export function declutterTwins2d(layout: Layout2d, options: any): number;
5415
5656
 
5416
5657
  /**
5417
- * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `CsrGraph`.
5658
+ * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `Graph`.
5418
5659
  */
5419
- export function delaunayToCsr(layout: Layout2d): CsrGraph;
5660
+ export function delaunayToCsr(layout: Layout2d): Graph;
5420
5661
 
5421
5662
  /**
5422
5663
  * Computes the deterministic 2D Delaunay triangulation of `layout`.
@@ -5426,7 +5667,7 @@ export function delaunayTriangulation(layout: Layout2d): DelaunayResult;
5426
5667
  /**
5427
5668
  * Computes weighted single-source Dijkstra shortest-path distances from `source` (`Float64Array`).
5428
5669
  */
5429
- export function dijkstraSingleSource(graph: CsrGraph, source: number): Float64Array;
5670
+ export function dijkstraSingleSource(graph: Graph, source: number): Float64Array;
5430
5671
 
5431
5672
  /**
5432
5673
  * Computes the undirected angle in `[0.0, pi]` radians between 2D vectors `(x1, y1)` and `(x2, y2)`,
@@ -5437,43 +5678,48 @@ export function edgeAngle(x1: number, y1: number, x2: number, y2: number): numbe
5437
5678
  /**
5438
5679
  * Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
5439
5680
  */
5440
- export function extract1hop2hopCsr(graph: CsrGraph): TwoHopCsr;
5681
+ export function extract1hop2hopCsr(graph: Graph): TwoHopCsr;
5441
5682
 
5442
5683
  /**
5443
- * Extracts the Quadrilateral Simmelian Backbone from an undirected `CsrGraph`.
5684
+ * Computes continuous degree-normalized 1-hop slack-tether weights aligned with `probs.indices()`.
5444
5685
  */
5445
- export function extractQuadrilateralBackbone(graph: CsrGraph, options: any): BackboneResult;
5686
+ export function extract1hopTetherWeights(graph: Graph, probs: SparseProbabilities, options: any): Float32Array;
5687
+
5688
+ /**
5689
+ * Extracts the Quadrilateral Simmelian Backbone from an undirected `Graph`.
5690
+ */
5691
+ export function extractQuadrilateralBackbone(graph: Graph, options: any): BackboneResult;
5446
5692
 
5447
5693
  /**
5448
5694
  * Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
5449
5695
  */
5450
- export function extractSparse1hop2hopPairs(graph: CsrGraph, max_2hop_per_node: number | null | undefined, seed: any): Sparse12HopPairs;
5696
+ export function extractSparse1hop2hopPairs(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): Sparse12HopPairs;
5451
5697
 
5452
5698
  /**
5453
5699
  * Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode` and optional `maxBridgeDegree`.
5454
5700
  */
5455
- export function extractSparse1hop2hopPairsWithMode(graph: CsrGraph, options: any): Sparse12HopPairs;
5701
+ export function extractSparse1hop2hopPairsWithMode(graph: Graph, options: any): Sparse12HopPairs;
5456
5702
 
5457
5703
  /**
5458
5704
  * Fits low-dimensional UMAP parameters `[a, b]` from `minDist` and `spread`.
5459
5705
  */
5460
- export function findAbParams(min_dist?: number | null, spread?: number | null): Float64Array;
5706
+ export function findAbParams(min_dist: number | null | undefined, spread: number | null | undefined, options: any): Float64Array;
5461
5707
 
5462
5708
  /**
5463
- * Generates a regular hyperbolic branching tree `CsrGraph` with `branchingFactor` and `depth`.
5709
+ * Generates a regular hyperbolic branching tree `Graph` with `branchingFactor` and `depth`.
5464
5710
  */
5465
- export function generateHyperbolicTree(branching_factor: number, depth: number): CsrGraph;
5711
+ export function generateHyperbolicTree(branching_factor: number, depth: number): Graph;
5466
5712
 
5467
5713
  /**
5468
5714
  * Generates hierarchical separation constraints `y[u] + gap <= y[v]` for directed edges
5469
5715
  * `(u, v)` spanning `layers[u] < layers[v]`.
5470
5716
  */
5471
- export function generateLayeredConstraints(graph: CsrGraph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
5717
+ export function generateLayeredConstraints(graph: Graph, layers: Uint32Array | number[], min_layer_distance?: number | null): SeparationConstraint[];
5472
5718
 
5473
5719
  /**
5474
- * Generates a deterministic layered Directed Acyclic Graph (`CsrGraph`).
5720
+ * Generates a deterministic layered Directed Acyclic Graph (`Graph`).
5475
5721
  */
5476
- export function generateLayeredDag(num_layers: number, nodes_per_layer: number, options: any): CsrGraph;
5722
+ export function generateLayeredDag(num_layers: number, nodes_per_layer: number, options: any): Graph;
5477
5723
 
5478
5724
  /**
5479
5725
  * Generates a deterministic Stochastic Block Model graph returning `{ graph, labels }`.
@@ -5481,60 +5727,60 @@ export function generateLayeredDag(num_layers: number, nodes_per_layer: number,
5481
5727
  export function generateSbmGraph(block_sizes: Uint32Array | number[], options: any): any;
5482
5728
 
5483
5729
  /**
5484
- * Generates a closed UV spherical grid mesh `CsrGraph` with poles and `latitudes x longitudes` rings.
5730
+ * Generates a closed UV spherical grid mesh `Graph` with poles and `latitudes x longitudes` rings.
5485
5731
  */
5486
- export function generateSphericalGrid(latitudes: number, longitudes: number): CsrGraph;
5732
+ export function generateSphericalGrid(latitudes: number, longitudes: number): Graph;
5487
5733
 
5488
5734
  /**
5489
- * Generates a subdivided icosphere spherical geodesic mesh `CsrGraph`.
5735
+ * Generates a subdivided icosphere spherical geodesic mesh `Graph`.
5490
5736
  */
5491
- export function generateSphericalIcosphere(subdivisions?: number | null): CsrGraph;
5737
+ export function generateSphericalIcosphere(subdivisions?: number | null): Graph;
5492
5738
 
5493
5739
  /**
5494
- * Generates a periodic 2D torus mesh `CsrGraph` of size `rows x cols` (`>= 3x3`).
5740
+ * Generates a periodic 2D torus mesh `Graph` of size `rows x cols` (`>= 3x3`).
5495
5741
  */
5496
- export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): CsrGraph;
5742
+ export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): Graph;
5497
5743
 
5498
5744
  /**
5499
- * Generates a deterministic undirected weighted `CsrGraph` with edge weights in `[minWeight, maxWeight]`.
5745
+ * Generates a deterministic undirected weighted `Graph` with edge weights in `[minWeight, maxWeight]`.
5500
5746
  */
5501
- export function generateWeightedGraph(num_nodes: number, options: any): CsrGraph;
5747
+ export function generateWeightedGraph(num_nodes: number, options: any): Graph;
5502
5748
 
5503
5749
  /**
5504
5750
  * Computes Miller et al. (2024) Eq. (2) Geodesic Distortion without post-hoc rescaling
5505
5751
  * on a `ManifoldLayout2d`.
5506
5752
  */
5507
- export function geodesicDistortion(graph: CsrGraph, layout: ManifoldLayout2d): number;
5753
+ export function geodesicDistortion(graph: Graph, layout: ManifoldLayout2d): number;
5508
5754
 
5509
5755
  /**
5510
5756
  * Computes row-normalized symmetrized 1+2-hop probabilities with optional capping and `(d_i d_j)^(-degreeBeta)` decay.
5511
5757
  */
5512
- export function graph12hopRowNormalizedProbabilities(graph: CsrGraph, options: any): SparseProbabilities;
5758
+ export function graph12hopRowNormalizedProbabilities(graph: Graph, options: any): SparseProbabilities;
5513
5759
 
5514
5760
  /**
5515
5761
  * Computes row-normalized symmetrized 1+2-hop probabilities with explicit `TwoHopSamplingMode` and `maxBridgeDegree`.
5516
5762
  */
5517
- export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: CsrGraph, options: any): SparseProbabilities;
5763
+ export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: Graph, options: any): SparseProbabilities;
5518
5764
 
5519
5765
  /**
5520
- * Computes row-normalized symmetrized graph probabilities from a `CsrGraph`.
5766
+ * Computes row-normalized symmetrized graph probabilities from a `Graph`.
5521
5767
  */
5522
- export function graphRowNormalizedProbabilities(graph: CsrGraph): SparseProbabilities;
5768
+ export function graphRowNormalizedProbabilities(graph: Graph): SparseProbabilities;
5523
5769
 
5524
5770
  /**
5525
5771
  * Computes a 2D Harel-Koren High-Dimensional Embedding (`HDE`) `Layout2d` (`f32`).
5526
5772
  */
5527
- export function hde(graph: CsrGraph, options: any): Layout2d;
5773
+ export function hde(graph: Graph, options: any): Layout2d;
5528
5774
 
5529
5775
  /**
5530
5776
  * Computes an $N$-dimensional Harel-Koren High-Dimensional Embedding (`HDE`) `LayoutNd` (`f32`).
5531
5777
  */
5532
- export function hdeNd(graph: CsrGraph, options: any): LayoutNd;
5778
+ export function hdeNd(graph: Graph, options: any): LayoutNd;
5533
5779
 
5534
5780
  /**
5535
5781
  * Counts exact hyperbolic geodesic crossings on `HyperbolicPoincare` or `HyperbolicLorentz`.
5536
5782
  */
5537
- export function hyperbolicCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
5783
+ export function hyperbolicCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
5538
5784
 
5539
5785
  /**
5540
5786
  * Clusters flat row-major `(numNodes, dims)` points with deterministic K-Means++.
@@ -5544,22 +5790,22 @@ export function kmeansPlusPlus(points: Float64Array | number[], num_nodes: numbe
5544
5790
  /**
5545
5791
  * Computes Koren's degree-normalized 2D spectral initialization `Layout2d` (`f32`).
5546
5792
  */
5547
- export function korenSpectralInit(graph: CsrGraph, options: any): Layout2d;
5793
+ export function korenSpectralInit(graph: Graph, options: any): Layout2d;
5548
5794
 
5549
5795
  /**
5550
- * Detects communities on an undirected `CsrGraph` via asynchronous Label Propagation.
5796
+ * Detects communities on an undirected `Graph` via asynchronous Label Propagation.
5551
5797
  */
5552
- export function labelPropagation(graph: CsrGraph, max_iterations: number | null | undefined, seed: any): LabelPropagationResult;
5798
+ export function labelPropagation(graph: Graph, max_iterations: number | null | undefined, seed: any): LabelPropagationResult;
5553
5799
 
5554
5800
  /**
5555
5801
  * Builds a `CsrMatrix` graph Laplacian of the requested `kind` (default `LaplacianKind.SymmetricNormalized`).
5556
5802
  */
5557
- export function laplacian(graph: CsrGraph, kind: any): CsrMatrix;
5803
+ export function laplacian(graph: Graph, kind: any): CsrMatrix;
5558
5804
 
5559
5805
  /**
5560
- * Detects communities on an undirected `CsrGraph` via the Leiden algorithm (`Modularity` or `CPM`).
5806
+ * Detects communities on an undirected `Graph` via the Leiden algorithm (`Modularity` or `CPM`).
5561
5807
  */
5562
- export function leidenCommunities(graph: CsrGraph, options: any): LeidenResult;
5808
+ export function leidenCommunities(graph: Graph, options: any): LeidenResult;
5563
5809
 
5564
5810
  /**
5565
5811
  * Returns the canonical names of all built-in benchmark datasets (`string[]`).
@@ -5594,27 +5840,27 @@ export function lorentzToPoincarePoint(x: number, y: number): Float64Array;
5594
5840
  /**
5595
5841
  * Runs multi-level Louvain coarsening with resolution decay up to `maxCoarseNodes`.
5596
5842
  */
5597
- export function louvainCoarsen(graph: CsrGraph, options: any): CoarsenedHierarchyResult;
5843
+ export function louvainCoarsen(graph: Graph, options: any): CoarsenedHierarchyResult;
5598
5844
 
5599
5845
  /**
5600
- * Detects communities on an undirected `CsrGraph` via multi-level Louvain modularity optimization.
5846
+ * Detects communities on an undirected `Graph` via multi-level Louvain modularity optimization.
5601
5847
  */
5602
- export function louvainCommunities(graph: CsrGraph, options: any): LouvainResult;
5848
+ export function louvainCommunities(graph: Graph, options: any): LouvainResult;
5603
5849
 
5604
5850
  /**
5605
5851
  * Computes DRGraph Eq. (19) strict minimum-angle resolution (`A2`) in `[0.0, 1.0]`.
5606
5852
  */
5607
- export function minimumAngle(graph: CsrGraph, layout: Layout2d): number;
5853
+ export function minimumAngle(graph: Graph, layout: Layout2d): number;
5608
5854
 
5609
5855
  /**
5610
5856
  * Computes DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
5611
5857
  */
5612
- export function minimumAngleSummary(graph: CsrGraph, layout: Layout2d): MinimumAngleSummary;
5858
+ export function minimumAngleSummary(graph: Graph, layout: Layout2d): MinimumAngleSummary;
5613
5859
 
5614
5860
  /**
5615
5861
  * Computes all 5 Chen et al. (2020) NOR metrics including graph edge-length distortion (`elRsd`).
5616
5862
  */
5617
- export function norMetrics(graph: CsrGraph, orig_layout: Layout2d, adjusted_layout: Layout2d, half_widths: Float32Array | number[], half_heights: Float32Array | number[]): NorMetricsResult;
5863
+ export function norMetrics(graph: Graph, orig_layout: Layout2d, adjusted_layout: Layout2d, half_widths: Float32Array | number[], half_heights: Float32Array | number[]): NorMetricsResult;
5618
5864
 
5619
5865
  /**
5620
5866
  * Computes Chen et al. (2020) NOR metrics without a graph (`elRsd = 0.0`).
@@ -5627,14 +5873,14 @@ export function norMetricsWithoutGraph(orig_layout: Layout2d, adjusted_layout: L
5627
5873
  export function normalizeLayout2d(layout: Layout2d, target_std: number | null | undefined, seed: any): void;
5628
5874
 
5629
5875
  /**
5630
- * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `CsrGraph`.
5876
+ * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `Graph`.
5631
5877
  */
5632
- export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): CsrGraph;
5878
+ export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): Graph;
5633
5879
 
5634
5880
  /**
5635
5881
  * Computes a $k$-NN graph via Partial BFS with deterministic Fisher-Yates tie-breaking.
5636
5882
  */
5637
- export function partialBfsKnn(graph: CsrGraph, k: number | null | undefined, seed: any): KnnGraph;
5883
+ export function partialBfsKnn(graph: Graph, k: number | null | undefined, seed: any): KnnGraph;
5638
5884
 
5639
5885
  /**
5640
5886
  * Computes `ARI`, `AMI`, `homogeneity`, `completeness`, `vMeasure`, and `fmi` between two labelings.
@@ -5644,7 +5890,7 @@ export function partitionAgreement(labels_true: any, labels_pred: any): Partitio
5644
5890
  /**
5645
5891
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
5646
5892
  */
5647
- export function pivotMds(graph: CsrGraph, options: any): Layout2d;
5893
+ export function pivotMds(graph: Graph, options: any): Layout2d;
5648
5894
 
5649
5895
  /**
5650
5896
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from a flat `(numNodes, numPivots)` distance matrix.
@@ -5654,12 +5900,12 @@ export function pivotMdsFromDistances(distances_nk: Float64Array | number[], num
5654
5900
  /**
5655
5901
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
5656
5902
  */
5657
- export function pivotMdsInit(graph: CsrGraph, options: any): Layout2d;
5903
+ export function pivotMdsInit(graph: Graph, options: any): Layout2d;
5658
5904
 
5659
5905
  /**
5660
5906
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from an explicit slice of `pivots`.
5661
5907
  */
5662
- export function pivotMdsWithPivots(graph: CsrGraph, pivots: Uint32Array | number[], options: any): Layout2d;
5908
+ export function pivotMdsWithPivots(graph: Graph, pivots: Uint32Array | number[], options: any): Layout2d;
5663
5909
 
5664
5910
  /**
5665
5911
  * Computes the Poincaré disk hyperbolic geodesic distance between `(x1, y1)` and `(x2, y2)`.
@@ -5690,7 +5936,7 @@ export function prismDistortionWithEdges(original_layout: Layout2d, adjusted_lay
5690
5936
  /**
5691
5937
  * Projects `coords` (`Float32Array`) in place onto the feasible region defined by `constraints`.
5692
5938
  */
5693
- export function project1d(coords: Float32Array, constraints: any): void;
5939
+ export function project1d(coords: Float32Array, constraints: any, options: any): void;
5694
5940
 
5695
5941
  /**
5696
5942
  * Projects a coarse 2D `Layout2d` (`f32`) back onto fine vertices via `nodeToCoarse`.
@@ -5715,7 +5961,7 @@ export function projectClusteredRectangleNoOverlap2d(layout: Layout2d, labels: U
5715
5961
  /**
5716
5962
  * Projects axis `axis` (`0` / `"x"` or `1` / `"y"`) of `layout` in place onto `constraints`.
5717
5963
  */
5718
- export function projectLayoutAxis(layout: Layout2d, axis: any, constraints: any): void;
5964
+ export function projectLayoutAxis(layout: Layout2d, axis: any, constraints: any, options: any): void;
5719
5965
 
5720
5966
  /**
5721
5967
  * Projects spectral filter `terms` onto the PSD cone, returning `{ termsPsd, deltaPsd, hMin }`.
@@ -5731,12 +5977,12 @@ export function projectRectangleNoOverlap2d(layout: Layout2d, half_widths: Float
5731
5977
  /**
5732
5978
  * Builds the random-walk normalized graph Laplacian $L_{\mathrm{rw}} = D^{-1}(D - A)$ as a `CsrMatrix`.
5733
5979
  */
5734
- export function randomWalkLaplacian(graph: CsrGraph): CsrMatrix;
5980
+ export function randomWalkLaplacian(graph: Graph): CsrMatrix;
5735
5981
 
5736
5982
  /**
5737
- * Computes a `LayoutNd` (`f32`) zero-guarded resistance-distance spectral embedding (`RdMds`).
5983
+ * Computes a `LayoutNd` (`f32`) zero-guarded Resistance-Distance MDS spectral embedding (`RdMds`, Onoue 2026).
5738
5984
  */
5739
- export function rdMds(graph: CsrGraph, options: any): LayoutNd;
5985
+ export function rdMds(graph: Graph, options: any): LayoutNd;
5740
5986
 
5741
5987
  /**
5742
5988
  * Finds all overlapping rectangle pairs `[i0, j0, i1, j1, ...]` (`i < j`) for `layout`
@@ -5750,9 +5996,9 @@ export function rectangleOverlaps(layout: Layout2d, half_widths: Float32Array |
5750
5996
  export function refineClusterLayout(layout: Layout2d, labels: any, options: any): number;
5751
5997
 
5752
5998
  /**
5753
- * Constructs a directed acyclic `CsrGraph` by reversing cycle-closing back-edges.
5999
+ * Constructs a directed acyclic `Graph` by reversing cycle-closing back-edges.
5754
6000
  */
5755
- export function removeCycles(graph: CsrGraph): CsrGraph;
6001
+ export function removeCycles(graph: Graph): Graph;
5756
6002
 
5757
6003
  /**
5758
6004
  * Computes a `dims`-dimensional Representative / Landmark MDS `LayoutNd` (`f32`) from a flat
@@ -5763,7 +6009,7 @@ export function representativeMds(distances_to_reps: Float64Array | number[], nu
5763
6009
  /**
5764
6010
  * Runs Devriendt-Lambiotte resistance curvature flow on `graph` and classifies target geometry.
5765
6011
  */
5766
- export function resistanceCurvatureFlow(graph: CsrGraph, options: any): ResistanceCurvatureFlowResult;
6012
+ export function resistanceCurvatureFlow(graph: Graph, options: any): ResistanceCurvatureFlowResult;
5767
6013
 
5768
6014
  /**
5769
6015
  * Median-centers and Gaussian-calibrated radial quantile-scales `layout` in place so core spread matches `targetStd` (default `1.0`).
@@ -5773,18 +6019,18 @@ export function robustNormalizeLayout2d(layout: Layout2d, options: any): void;
5773
6019
  /**
5774
6020
  * Estimates edge crossings in $O(\text{numSamples})$ time (`options?: { numSamples?, seed? }`).
5775
6021
  */
5776
- export function sampledCrossingNumber(graph: CsrGraph, layout: Layout2d, options: any): number;
6022
+ export function sampledCrossingNumber(graph: Graph, layout: Layout2d, options: any): number;
5777
6023
 
5778
6024
  /**
5779
6025
  * Estimates DRGraph Eq. (17) crosslessness $1 - \sqrt{\hat{c} / c_{\max}} \in [0.0, 1.0]$
5780
6026
  * (`options?: { numSamples?, seed? }`).
5781
6027
  */
5782
- export function sampledCrosslessness(graph: CsrGraph, layout: Layout2d, options: any): number;
6028
+ export function sampledCrosslessness(graph: Graph, layout: Layout2d, options: any): number;
5783
6029
 
5784
6030
  /**
5785
6031
  * Selects well-spaced shortest-path pivots via Core-First MaxMin BFS.
5786
6032
  */
5787
- export function selectMaxminSpPivots(graph: CsrGraph, options: any): Uint32Array;
6033
+ export function selectMaxminSpPivots(graph: Graph, options: any): Uint32Array;
5788
6034
 
5789
6035
  /**
5790
6036
  * Installs `console_error_panic_hook` once so any Rust panic reports a readable stack trace
@@ -5800,22 +6046,28 @@ export function shiftedNormalizedLaplacian(l_sym: CsrMatrix, lambda_max?: number
5800
6046
  /**
5801
6047
  * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$.
5802
6048
  */
5803
- export function smallestLaplacianEigenpairs(graph: CsrGraph, options: any): EigenResult;
6049
+ export function smallestLaplacianEigenpairs(graph: Graph, options: any): EigenResult;
6050
+
6051
+ /**
6052
+ * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$ using
6053
+ * AMG-PCG-preconditioned block Generalized Davidson with explicit $v_0 = D^{1/2}\mathbf{1}$ deflation.
6054
+ */
6055
+ export function smallestSymLaplacianEigenpairsAmg(graph: Graph, options: any): EigenResult;
5804
6056
 
5805
6057
  /**
5806
- * Performs Ng-Jordan-Weiss spectral clustering on an undirected `CsrGraph`.
6058
+ * Performs Ng-Jordan-Weiss spectral clustering on an undirected `Graph`.
5807
6059
  */
5808
- export function spectralClustering(graph: CsrGraph, options: any): SpectralClusteringResult;
6060
+ export function spectralClustering(graph: Graph, options: any): SpectralClusteringResult;
5809
6061
 
5810
6062
  /**
5811
6063
  * Computes exact $O(|E|)$ spectral variance and degree summary statistics of $L_{\mathrm{sym}}$.
5812
6064
  */
5813
- export function spectralMomentStats(graph: CsrGraph): SpectralMomentStats;
6065
+ export function spectralMomentStats(graph: Graph): SpectralMomentStats;
5814
6066
 
5815
6067
  /**
5816
6068
  * Counts exact great-circle geodesic arc crossings on `ManifoldKind::Spherical`.
5817
6069
  */
5818
- export function sphericalCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
6070
+ export function sphericalCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
5819
6071
 
5820
6072
  /**
5821
6073
  * Computes the great-circle geodesic distance on the unit sphere in `[0, pi]`.
@@ -5840,12 +6092,12 @@ export function squarifiedTreemap(weights: any, options: any): Float64Array;
5840
6092
  /**
5841
6093
  * Computes the exact sweep-line crossing-angle penalty $\sum \cos^2(\theta)$.
5842
6094
  */
5843
- export function sweepCrossingAngle(graph: CsrGraph, layout: Layout2d): number;
6095
+ export function sweepCrossingAngle(graph: Graph, layout: Layout2d): number;
5844
6096
 
5845
6097
  /**
5846
6098
  * Counts the exact number of non-adjacent edge crossings via $O((|E|+K)\log|E|)$ sweep-line.
5847
6099
  */
5848
- export function sweepCrossingNumber(graph: CsrGraph, layout: Layout2d): number;
6100
+ export function sweepCrossingNumber(graph: Graph, layout: Layout2d): number;
5849
6101
 
5850
6102
  /**
5851
6103
  * Computes ascending symmetric eigenpairs `(lambdas, vectors)` of an `n x n` row-major matrix
@@ -5857,7 +6109,7 @@ export function symmetricEigenJacobi(a_row_major: Float64Array | number[], n: nu
5857
6109
  * Builds the symmetric normalized Laplacian $L_{\mathrm{sym}} = I - D^{-1/2} A D^{-1/2}$
5858
6110
  * and inverse square-root degrees `{ matrix, invSqrtDeg }`.
5859
6111
  */
5860
- export function symmetricNormalizedLaplacian(graph: CsrGraph): any;
6112
+ export function symmetricNormalizedLaplacian(graph: Graph): any;
5861
6113
 
5862
6114
  /**
5863
6115
  * Computes row-normalized symmetrized joint probabilities from arbitrary CSR directed affinities.
@@ -5877,12 +6129,12 @@ export function torusEdgeSegments(x1: number, y1: number, x2: number, y2: number
5877
6129
  /**
5878
6130
  * Initializes a flat 2D torus `ManifoldLayout2d` via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
5879
6131
  */
5880
- export function torusSpectralPhaseInit(graph: CsrGraph, seed: any): ManifoldLayout2d;
6132
+ export function torusSpectralPhaseInit(graph: Graph, seed: any): ManifoldLayout2d;
5881
6133
 
5882
6134
  /**
5883
- * Computes the exact transitive reduction of a directed acyclic `CsrGraph`.
6135
+ * Computes the exact transitive reduction of a directed acyclic `Graph`.
5884
6136
  */
5885
- export function transitiveReduction(graph: CsrGraph): CsrGraph;
6137
+ export function transitiveReduction(graph: Graph): Graph;
5886
6138
 
5887
6139
  /**
5888
6140
  * Returns the active WebAssembly linear `WebAssembly.Memory` instance.
@@ -5922,7 +6174,6 @@ export interface InitOutput {
5922
6174
  readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
5923
6175
  readonly __wbg_crossingpair_free: (a: number, b: number) => void;
5924
6176
  readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
5925
- readonly __wbg_csrgraph_free: (a: number, b: number) => void;
5926
6177
  readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
5927
6178
  readonly __wbg_datasetinfo_free: (a: number, b: number) => void;
5928
6179
  readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
@@ -5935,11 +6186,13 @@ export interface InitOutput {
5935
6186
  readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
5936
6187
  readonly __wbg_eigenresult_free: (a: number, b: number) => void;
5937
6188
  readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
6189
+ readonly __wbg_fieldrepulsionkernel_free: (a: number, b: number) => void;
5938
6190
  readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
5939
6191
  readonly __wbg_forbidoverlapremoval_free: (a: number, b: number) => void;
5940
6192
  readonly __wbg_forceatlas2solver_free: (a: number, b: number) => void;
5941
6193
  readonly __wbg_fruchtermanreingoldsolver_free: (a: number, b: number) => void;
5942
6194
  readonly __wbg_gemsolver_free: (a: number, b: number) => void;
6195
+ readonly __wbg_graph_free: (a: number, b: number) => void;
5943
6196
  readonly __wbg_graphcnesolver_free: (a: number, b: number) => void;
5944
6197
  readonly __wbg_gripsolver_free: (a: number, b: number) => void;
5945
6198
  readonly __wbg_groupinaboxsolver_free: (a: number, b: number) => void;
@@ -5947,6 +6200,7 @@ export interface InitOutput {
5947
6200
  readonly __wbg_gumapsolver_free: (a: number, b: number) => void;
5948
6201
  readonly __wbg_hde_free: (a: number, b: number) => void;
5949
6202
  readonly __wbg_hybridknnresult_free: (a: number, b: number) => void;
6203
+ readonly __wbg_ibumaphubdamping_free: (a: number, b: number) => void;
5950
6204
  readonly __wbg_ibumapsolver_free: (a: number, b: number) => void;
5951
6205
  readonly __wbg_kamadakawaisolver_free: (a: number, b: number) => void;
5952
6206
  readonly __wbg_kmeansresult_free: (a: number, b: number) => void;
@@ -5964,6 +6218,7 @@ export interface InitOutput {
5964
6218
  readonly __wbg_louvainresult_free: (a: number, b: number) => void;
5965
6219
  readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
5966
6220
  readonly __wbg_maxentstresssolver_free: (a: number, b: number) => void;
6221
+ readonly __wbg_metricanchorweighting_free: (a: number, b: number) => void;
5967
6222
  readonly __wbg_metricreport_free: (a: number, b: number) => void;
5968
6223
  readonly __wbg_minimumanglesummary_free: (a: number, b: number) => void;
5969
6224
  readonly __wbg_normetricsresult_free: (a: number, b: number) => void;
@@ -5972,6 +6227,8 @@ export interface InitOutput {
5972
6227
  readonly __wbg_partitionagreementresult_free: (a: number, b: number) => void;
5973
6228
  readonly __wbg_pfsprimeoverlapremoval_free: (a: number, b: number) => void;
5974
6229
  readonly __wbg_pivotmds_free: (a: number, b: number) => void;
6230
+ readonly __wbg_pivotmdsreport_free: (a: number, b: number) => void;
6231
+ readonly __wbg_pivotmdsreportresult_free: (a: number, b: number) => void;
5975
6232
  readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
5976
6233
  readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
5977
6234
  readonly __wbg_rdmds_free: (a: number, b: number) => void;
@@ -6007,6 +6264,7 @@ export interface InitOutput {
6007
6264
  readonly __wbg_twindeclutterer_free: (a: number, b: number) => void;
6008
6265
  readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
6009
6266
  readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
6267
+ readonly __wbg_unifiedmetricanchor_free: (a: number, b: number) => void;
6010
6268
  readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
6011
6269
  readonly _calinskiHarabaszScore2d: (a: number, b: number, c: any) => void;
6012
6270
  readonly _calinskiHarabaszScore3d: (a: number, b: number, c: any) => void;
@@ -6223,13 +6481,21 @@ export interface InitOutput {
6223
6481
  readonly arenaoctree3d_buildWeightedNd: (a: number, b: number, c: number, d: number, e: number) => void;
6224
6482
  readonly arenaoctree3d_buildXyz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
6225
6483
  readonly arenaoctree3d_clear: (a: number) => void;
6484
+ readonly arenaoctree3d_coincidentDistSq: (a: number) => number;
6226
6485
  readonly arenaoctree3d_computeCoulombRepulsion: (a: number, b: number, c: number, d: number) => void;
6227
6486
  readonly arenaoctree3d_computeEntropyRepulsion: (a: number, b: number, c: number, d: number) => void;
6228
6487
  readonly arenaoctree3d_computeKlRepulsion: (a: number, b: number, c: number) => void;
6229
6488
  readonly arenaoctree3d_computeMaxentRepulsion: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
6230
- readonly arenaoctree3d_new: () => number;
6489
+ readonly arenaoctree3d_entropyMinDist: (a: number) => number;
6490
+ readonly arenaoctree3d_maxDepth: (a: number) => number;
6491
+ readonly arenaoctree3d_new: (a: number, b: any) => void;
6231
6492
  readonly arenaoctree3d_nodeCount: (a: number) => number;
6232
6493
  readonly arenaoctree3d_pointCount: (a: number) => number;
6494
+ readonly arenaoctree3d_setCoincidentDistSq: (a: number, b: number, c: number) => void;
6495
+ readonly arenaoctree3d_setEntropyMinDist: (a: number, b: number, c: number) => void;
6496
+ readonly arenaoctree3d_setMaxDepth: (a: number, b: number, c: number) => void;
6497
+ readonly arenaoctree3d_setTraversalStackCap: (a: number, b: number, c: number) => void;
6498
+ readonly arenaoctree3d_traversalStackCap: (a: number) => number;
6233
6499
  readonly aspectRatio: (a: number, b: number) => void;
6234
6500
  readonly assignLayers: (a: number, b: number, c: any) => void;
6235
6501
  readonly backboneresult_backboneCsr: (a: number) => number;
@@ -6366,7 +6632,7 @@ export interface InitOutput {
6366
6632
  readonly computeChebyshevBandpassCoefficients: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
6367
6633
  readonly computeDiffusionEmbedding: (a: number, b: number, c: any) => void;
6368
6634
  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;
6635
+ readonly computeFuzzySimplicialSet: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => void;
6370
6636
  readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
6371
6637
  readonly computeKnnProbabilities: (a: number, b: number, c: number, d: number, e: any) => void;
6372
6638
  readonly computeMedian2hopPerplexity: (a: number, b: number, c: any) => void;
@@ -6393,28 +6659,6 @@ export interface InitOutput {
6393
6659
  readonly crossingsummary_count: (a: number) => number;
6394
6660
  readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
6395
6661
  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
6662
  readonly csrmatrix_diagonal: (a: number, b: number) => void;
6419
6663
  readonly csrmatrix_estimateLambdaMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
6420
6664
  readonly csrmatrix_estimateLambdaMaxLanczos: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
@@ -6500,16 +6744,18 @@ export interface InitOutput {
6500
6744
  readonly drgraphsolver_target: (a: number) => number;
6501
6745
  readonly drgraphsolver_totalIterations: (a: number) => number;
6502
6746
  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;
6747
+ readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6748
+ readonly dynamickdtree_fromLayoutNd: (a: number, b: number, c: any) => void;
6505
6749
  readonly dynamickdtree_isEmpty: (a: number) => number;
6506
6750
  readonly dynamickdtree_kNearest: (a: number, b: number, c: number, d: number, e: number) => void;
6507
6751
  readonly dynamickdtree_kNearestExcludingSelf: (a: number, b: number, c: number, d: number) => void;
6752
+ readonly dynamickdtree_leafSize: (a: number) => number;
6508
6753
  readonly dynamickdtree_len: (a: number) => number;
6509
6754
  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;
6755
+ readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6511
6756
  readonly dynamickdtree_numNodes: (a: number) => number;
6512
6757
  readonly dynamickdtree_point: (a: number, b: number, c: number) => void;
6758
+ readonly dynamickdtree_setLeafSize: (a: number, b: number, c: number) => void;
6513
6759
  readonly dynamickdtree_withinRadius: (a: number, b: number, c: number, d: number, e: number) => void;
6514
6760
  readonly dynamickdtree_withinRadiusSq: (a: number, b: number, c: number, d: number, e: number) => void;
6515
6761
  readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -6555,6 +6801,7 @@ export interface InitOutput {
6555
6801
  readonly eigenresult_usedDenseFallback: (a: number) => number;
6556
6802
  readonly eigenresult_vectors: (a: number, b: number) => void;
6557
6803
  readonly extract1hop2hopCsr: (a: number, b: number) => void;
6804
+ readonly extract1hopTetherWeights: (a: number, b: number, c: number, d: any) => void;
6558
6805
  readonly extractQuadrilateralBackbone: (a: number, b: number, c: any) => void;
6559
6806
  readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: any) => void;
6560
6807
  readonly extractSparse1hop2hopPairsWithMode: (a: number, b: number, c: any) => void;
@@ -6572,7 +6819,14 @@ export interface InitOutput {
6572
6819
  readonly fdebsolver_step: (a: number, b: number, c: number) => void;
6573
6820
  readonly fdebsolver_target: (a: number) => number;
6574
6821
  readonly fdebsolver_totalIterations: (a: number) => number;
6575
- readonly findAbParams: (a: number, b: number, c: number, d: number, e: number) => void;
6822
+ readonly fieldrepulsionkernel_cauchy: () => number;
6823
+ readonly fieldrepulsionkernel_gamma: (a: number, b: number) => void;
6824
+ readonly fieldrepulsionkernel_generalizedCauchy: (a: number, b: number) => void;
6825
+ readonly fieldrepulsionkernel_kind: (a: number, b: number) => void;
6826
+ readonly fieldrepulsionkernel_minScreen: (a: number, b: number) => void;
6827
+ readonly fieldrepulsionkernel_screenFrac: (a: number, b: number) => void;
6828
+ readonly fieldrepulsionkernel_screenedCauchy: (a: number, b: number, c: number, d: number) => void;
6829
+ readonly findAbParams: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
6576
6830
  readonly fitfieldstats_inverseFfts: (a: number) => number;
6577
6831
  readonly fitfieldstats_kernelForwardFfts: (a: number) => number;
6578
6832
  readonly fitfieldstats_particleForwardFfts: (a: number) => number;
@@ -6650,6 +6904,28 @@ export interface InitOutput {
6650
6904
  readonly graph12hopRowNormalizedProbabilities: (a: number, b: number, c: any) => void;
6651
6905
  readonly graph12hopRowNormalizedProbabilitiesWithOptions: (a: number, b: number, c: any) => void;
6652
6906
  readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
6907
+ readonly graph_degree: (a: number, b: number, c: number) => void;
6908
+ readonly graph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
6909
+ readonly graph_edges: (a: number, b: number) => void;
6910
+ readonly graph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
6911
+ readonly graph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
6912
+ readonly graph_hasEdge: (a: number, b: number, c: number, d: number) => void;
6913
+ readonly graph_indices: (a: number, b: number) => void;
6914
+ readonly graph_indptr: (a: number, b: number) => void;
6915
+ readonly graph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
6916
+ readonly graph_isConnected: (a: number) => number;
6917
+ readonly graph_isDirected: (a: number) => number;
6918
+ readonly graph_isEmpty: (a: number) => number;
6919
+ readonly graph_isWeighted: (a: number) => number;
6920
+ readonly graph_largestConnectedComponent: (a: number) => number;
6921
+ readonly graph_len: (a: number) => number;
6922
+ readonly graph_length: (a: number) => number;
6923
+ readonly graph_neighbors: (a: number, b: number, c: number) => void;
6924
+ readonly graph_nnz: (a: number) => number;
6925
+ readonly graph_numEdges: (a: number) => number;
6926
+ readonly graph_numNodes: (a: number) => number;
6927
+ readonly graph_weightDtype: (a: number) => number;
6928
+ readonly graph_weights: (a: number, b: number) => void;
6653
6929
  readonly graphcnesolver__run2d: (a: number, b: number, c: number) => void;
6654
6930
  readonly graphcnesolver__run3d: (a: number, b: number, c: number) => void;
6655
6931
  readonly graphcnesolver__runManifold: (a: number, b: number, c: number) => void;
@@ -6741,6 +7017,14 @@ export interface InitOutput {
6741
7017
  readonly hybridknnresult_nPure2hopRows: (a: number) => number;
6742
7018
  readonly hybridknnresult_nnz: (a: number) => number;
6743
7019
  readonly hyperbolicCrossingNumber: (a: number, b: number, c: number) => void;
7020
+ readonly ibumaphubdamping_explicit: (a: number, b: any) => void;
7021
+ readonly ibumaphubdamping_exponent: (a: number, b: number) => void;
7022
+ readonly ibumaphubdamping_hubEta: (a: number, b: number) => void;
7023
+ readonly ibumaphubdamping_inverseDegree: () => number;
7024
+ readonly ibumaphubdamping_inverseDegreePower: (a: number, b: number) => void;
7025
+ readonly ibumaphubdamping_kind: (a: number, b: number) => void;
7026
+ readonly ibumaphubdamping_medianRowSum: () => number;
7027
+ readonly ibumaphubdamping_none: () => number;
6744
7028
  readonly ibumapsolver_a: (a: number) => number;
6745
7029
  readonly ibumapsolver_ab: (a: number, b: number) => void;
6746
7030
  readonly ibumapsolver_b: (a: number) => number;
@@ -6748,6 +7032,7 @@ export interface InitOutput {
6748
7032
  readonly ibumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: any) => void;
6749
7033
  readonly ibumapsolver_fromKnn: (a: number, b: number, c: any) => void;
6750
7034
  readonly ibumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
7035
+ readonly ibumapsolver_hubEta: (a: number, b: number) => void;
6751
7036
  readonly ibumapsolver_isFinished: (a: number) => number;
6752
7037
  readonly ibumapsolver_iteration: (a: number) => number;
6753
7038
  readonly ibumapsolver_new: (a: number, b: number, c: any) => void;
@@ -6971,6 +7256,7 @@ export interface InitOutput {
6971
7256
  readonly manifoldlayout2d_normalizeStd: (a: number, b: number, c: number, d: number) => void;
6972
7257
  readonly manifoldlayout2d_numNodes: (a: number) => number;
6973
7258
  readonly manifoldlayout2d_poincareCentroid: (a: number, b: number) => void;
7259
+ readonly manifoldlayout2d_poincareEps: (a: number) => number;
6974
7260
  readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
6975
7261
  readonly manifoldlayout2d_randomInit: (a: number, b: any, c: number, d: any) => void;
6976
7262
  readonly manifoldlayout2d_recenterPoincare: (a: number, b: number, c: number, d: number) => void;
@@ -6978,6 +7264,7 @@ export interface InitOutput {
6978
7264
  readonly manifoldlayout2d_rescaleGeodesic: (a: number, b: number, c: number) => void;
6979
7265
  readonly manifoldlayout2d_scale: (a: number) => number;
6980
7266
  readonly manifoldlayout2d_setAspect: (a: number, b: number, c: number) => void;
7267
+ readonly manifoldlayout2d_setPoincareEps: (a: number, b: number, c: number) => void;
6981
7268
  readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
6982
7269
  readonly manifoldlayout2d_setScale: (a: number, b: number, c: number) => void;
6983
7270
  readonly manifoldlayout2d_setTorusExtents: (a: number, b: number, c: number, d: number) => void;
@@ -7010,6 +7297,14 @@ export interface InitOutput {
7010
7297
  readonly maxentstresssolver_status: (a: number) => number;
7011
7298
  readonly maxentstresssolver_target: (a: number) => number;
7012
7299
  readonly maxentstresssolver_totalIterations: (a: number) => number;
7300
+ readonly metricanchorweighting_balancedInvD2: () => number;
7301
+ readonly metricanchorweighting_dGate: (a: number, b: number) => void;
7302
+ readonly metricanchorweighting_inversePower: (a: number, b: number) => void;
7303
+ readonly metricanchorweighting_kind: (a: number, b: number) => void;
7304
+ readonly metricanchorweighting_longRangeGated: (a: number, b: number, c: number) => void;
7305
+ readonly metricanchorweighting_medianFrac: (a: number, b: number) => void;
7306
+ readonly metricanchorweighting_power: (a: number, b: number) => void;
7307
+ readonly metricanchorweighting_relativeLongRangeGated: (a: number, b: number, c: number) => void;
7013
7308
  readonly metricreport_adjustedPatchNig: (a: number, b: number) => void;
7014
7309
  readonly metricreport_angularResolution: (a: number, b: number) => void;
7015
7310
  readonly metricreport_aspectRatio: (a: number, b: number) => void;
@@ -7125,8 +7420,17 @@ export interface InitOutput {
7125
7420
  readonly pivotMdsFromDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
7126
7421
  readonly pivotMdsInit: (a: number, b: number, c: any) => void;
7127
7422
  readonly pivotMdsWithPivots: (a: number, b: number, c: number, d: number, e: any) => void;
7128
- readonly pivotmds_generate: (a: number, b: number, c: number) => void;
7423
+ readonly pivotmds__generateDist: (a: number, b: number) => void;
7424
+ readonly pivotmds__generateGraph: (a: number, b: number, c: number) => void;
7425
+ readonly pivotmds__generateWithReportDist: (a: number, b: number) => void;
7426
+ readonly pivotmds__generateWithReportGraph: (a: number, b: number, c: number) => void;
7427
+ readonly pivotmds_fromPivotDistances: (a: number, b: any, c: number, d: number, e: any) => void;
7129
7428
  readonly pivotmds_new: (a: number, b: any) => void;
7429
+ readonly pivotmdsreport_eigenvalues: (a: number, b: number) => void;
7430
+ readonly pivotmdsreport_embeddability2d: (a: number) => number;
7431
+ readonly pivotmdsreport_explainedVarianceRatio: (a: number, b: number, c: number) => void;
7432
+ readonly pivotmdsreportresult_layout: (a: number) => any;
7433
+ readonly pivotmdsreportresult_report: (a: number) => number;
7130
7434
  readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
7131
7435
  readonly poincareEinsteinMidpoint: (a: number, b: number, c: number, d: number, e: number) => void;
7132
7436
  readonly poincareMobiusAdd: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -7146,11 +7450,11 @@ export interface InitOutput {
7146
7450
  readonly prismoverlapremoval_status: (a: number) => number;
7147
7451
  readonly prismoverlapremoval_step: (a: number, b: number, c: number) => void;
7148
7452
  readonly prismoverlapremoval_totalIterations: (a: number) => number;
7149
- readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
7453
+ readonly project1d: (a: number, b: number, c: number, d: any, e: any, f: any) => void;
7150
7454
  readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: any) => void;
7151
7455
  readonly projectClusteredLayoutWithRadii: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
7152
7456
  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;
7457
+ readonly projectLayoutAxis: (a: number, b: number, c: any, d: any, e: any) => void;
7154
7458
  readonly projectPsdSpectralFilter: (a: number, b: any, c: any) => void;
7155
7459
  readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
7156
7460
  readonly randomWalkLaplacian: (a: number) => number;
@@ -7307,7 +7611,10 @@ export interface InitOutput {
7307
7611
  readonly sgd2solver__step3d: (a: number, b: number, c: number) => void;
7308
7612
  readonly sgd2solver__stepManifold: (a: number, b: number, c: number) => void;
7309
7613
  readonly sgd2solver__stepNd: (a: number, b: number, c: number) => void;
7614
+ readonly sgd2solver_batchSize: (a: number) => number;
7310
7615
  readonly sgd2solver_currentEta: (a: number) => number;
7616
+ readonly sgd2solver_damping: (a: number) => number;
7617
+ readonly sgd2solver_eps: (a: number) => number;
7311
7618
  readonly sgd2solver_isFinished: (a: number) => number;
7312
7619
  readonly sgd2solver_iteration: (a: number) => number;
7313
7620
  readonly sgd2solver_new: (a: number, b: number, c: any) => void;
@@ -7315,6 +7622,7 @@ export interface InitOutput {
7315
7622
  readonly sgd2solver_numSprings: (a: number) => number;
7316
7623
  readonly sgd2solver_resetSchedule: (a: number, b: number, c: any) => void;
7317
7624
  readonly sgd2solver_status: (a: number) => number;
7625
+ readonly sgd2solver_stepScale: (a: number) => number;
7318
7626
  readonly sgd2solver_target: (a: number) => number;
7319
7627
  readonly sgd2solver_totalIterations: (a: number) => number;
7320
7628
  readonly sgdsolver__run2d: (a: number, b: number, c: number) => void;
@@ -7348,6 +7656,7 @@ export interface InitOutput {
7348
7656
  readonly sgdsolver_numSprings: (a: number) => number;
7349
7657
  readonly sgdsolver_omega: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
7350
7658
  readonly sgdsolver_ortmannSparseStress: (a: number, b: number, c: any) => void;
7659
+ readonly sgdsolver_ortmannSparseStressFromPivots: (a: number, b: number, c: any, d: any, e: any) => void;
7351
7660
  readonly sgdsolver_randomPair: (a: number, b: number, c: any) => void;
7352
7661
  readonly sgdsolver_resetSchedule: (a: number, b: number, c: any) => void;
7353
7662
  readonly sgdsolver_sparseBarrierDog: (a: number, b: number, c: any) => void;
@@ -7360,6 +7669,7 @@ export interface InitOutput {
7360
7669
  readonly sgdsolver_totalIterations: (a: number) => number;
7361
7670
  readonly shiftedNormalizedLaplacian: (a: number, b: number, c: number, d: number) => void;
7362
7671
  readonly smallestLaplacianEigenpairs: (a: number, b: number, c: any) => void;
7672
+ readonly smallestSymLaplacianEigenpairsAmg: (a: number, b: number, c: any) => void;
7363
7673
  readonly snaptfdpsolver__run2d: (a: number, b: number, c: number) => void;
7364
7674
  readonly snaptfdpsolver__run3d: (a: number, b: number, c: number) => void;
7365
7675
  readonly snaptfdpsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -7533,6 +7843,8 @@ export interface InitOutput {
7533
7843
  readonly toruscrossing_v1: (a: number) => number;
7534
7844
  readonly toruscrossing_v2: (a: number) => number;
7535
7845
  readonly transitiveReduction: (a: number, b: number) => void;
7846
+ readonly tsnetsolver__fromProbabilitiesWithConformalNoAnchor: (a: number, b: number, c: any, d: any, e: any) => void;
7847
+ readonly tsnetsolver__fromProbabilitiesWithConformalWithAnchor: (a: number, b: number, c: any, d: any, e: number, f: any) => void;
7536
7848
  readonly tsnetsolver__run2d: (a: number, b: number, c: number) => void;
7537
7849
  readonly tsnetsolver__run3d: (a: number, b: number, c: number) => void;
7538
7850
  readonly tsnetsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -7566,12 +7878,16 @@ export interface InitOutput {
7566
7878
  readonly tsnetsolver_target: (a: number) => number;
7567
7879
  readonly tsnetsolver_totalFft2dCalls: (a: number) => number;
7568
7880
  readonly tsnetsolver_totalIterations: (a: number) => number;
7881
+ readonly tsnetstage_coercive1hop: (a: number) => number;
7569
7882
  readonly tsnetstage_exaggeration: (a: number) => number;
7570
7883
  readonly tsnetstage_iterations: (a: number) => number;
7571
7884
  readonly tsnetstage_lambdaC: (a: number) => number;
7572
7885
  readonly tsnetstage_lambdaKl: (a: number) => number;
7886
+ readonly tsnetstage_lambdaMetric: (a: number) => number;
7573
7887
  readonly tsnetstage_lambdaR: (a: number) => number;
7574
7888
  readonly tsnetstage_new: (a: number, b: any, c: any) => void;
7889
+ readonly tsnetstage_spring1hop: (a: number) => number;
7890
+ readonly tsnetstage_springDeadzone: (a: number) => number;
7575
7891
  readonly twindeclutterer_apply: (a: number, b: number, c: number) => void;
7576
7892
  readonly twindeclutterer_lastClusterCount: (a: number) => number;
7577
7893
  readonly twindeclutterer_lastMovedCount: (a: number) => number;
@@ -7587,6 +7903,17 @@ export interface InitOutput {
7587
7903
  readonly twohopknnresult_n2hop: (a: number) => number;
7588
7904
  readonly twohopknnresult_nTruncated2hop: (a: number) => number;
7589
7905
  readonly twohopknnresult_nnz: (a: number) => number;
7906
+ readonly unifiedmetricanchor_activeFraction: (a: number) => number;
7907
+ readonly unifiedmetricanchor_fromEmbeddingPivots: (a: number, b: any, c: number, d: number, e: any, f: any) => void;
7908
+ readonly unifiedmetricanchor_fromF64Pivots: (a: number, b: number, c: any, d: any, e: any) => void;
7909
+ readonly unifiedmetricanchor_fromHopPivots: (a: number, b: number, c: any, d: any, e: any) => void;
7910
+ readonly unifiedmetricanchor_numNodes: (a: number) => number;
7911
+ readonly unifiedmetricanchor_pivotDistances: (a: number, b: number) => void;
7912
+ readonly unifiedmetricanchor_pivots: (a: number, b: number) => void;
7913
+ readonly unifiedmetricanchor_scaleAlpha: (a: number) => number;
7914
+ readonly unifiedmetricanchor_softEps: (a: number) => number;
7915
+ readonly unifiedmetricanchor_sumWd2: (a: number) => number;
7916
+ readonly unifiedmetricanchor_weights: (a: number, b: number) => void;
7590
7917
  readonly wasmMemory: () => any;
7591
7918
  readonly wasm_start: () => void;
7592
7919
  readonly wrapTorusPoint: (a: number, b: number, c: number) => void;