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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/pkg/index.d.ts CHANGED
@@ -141,11 +141,11 @@ export class AmgPcgSolver {
141
141
  /**
142
142
  * Constructs an `AmgPcgSolver` for a shifted graph Laplacian (`AmgLaplacianKind.Combinatorial` or `SymmetricNormalized`).
143
143
  */
144
- static fromGraphLaplacian(graph: CsrGraph, kind?: AmgLaplacianKind | null, shift?: number | null, options?: AmgPcgOptions | null): AmgPcgSolver;
144
+ static fromGraphLaplacian(graph: Graph, kind?: AmgLaplacianKind | null, shift?: number | null, options?: AmgPcgOptions | null): AmgPcgSolver;
145
145
  /**
146
146
  * Constructs an `AmgPcgSolver` for `I + gamma * L_sym` with exact `D^{1/2} 1` near-nullspace.
147
147
  */
148
- static fromGraphRegularizedLaplacian(graph: CsrGraph, gamma?: number | null, options?: AmgPcgOptions | null): AmgPcgSolver;
148
+ static fromGraphRegularizedLaplacian(graph: Graph, gamma?: number | null, options?: AmgPcgOptions | null): AmgPcgSolver;
149
149
  /**
150
150
  * Executes up to `steps` cooperative PCG iterations and returns the updated status.
151
151
  */
@@ -303,9 +303,37 @@ export class ArenaOctree3d {
303
303
  */
304
304
  computeMaxentRepulsion(theta?: number | null, q?: number | null, eps_sq?: number | null): Float32Array;
305
305
  /**
306
- * Constructs an empty reusable `ArenaOctree3d` workspace.
306
+ * Constructs an empty reusable `ArenaOctree3d` workspace with optional configuration.
307
307
  */
308
- constructor();
308
+ constructor(options?: ArenaOctree3dOptions | null);
309
+ /**
310
+ * Validates and updates `coincidentDistSq` (finite and `>= 0`).
311
+ */
312
+ setCoincidentDistSq(coincident_dist_sq: number): void;
313
+ /**
314
+ * Validates and updates `entropyMinDist` (finite and `>= 0`).
315
+ */
316
+ setEntropyMinDist(entropy_min_dist: number): void;
317
+ /**
318
+ * Validates and updates the maximum subdivision depth (`>= 1`).
319
+ */
320
+ setMaxDepth(max_depth: number): void;
321
+ /**
322
+ * Validates and updates `traversalStackCap` (`>= 1`).
323
+ */
324
+ setTraversalStackCap(traversal_stack_cap: number): void;
325
+ /**
326
+ * Returns the squared coincidence threshold below which points share a leaf chain.
327
+ */
328
+ readonly coincidentDistSq: number;
329
+ /**
330
+ * Returns the minimum distance threshold below which entropy repulsion is skipped.
331
+ */
332
+ readonly entropyMinDist: number;
333
+ /**
334
+ * Returns the maximum subdivision depth (`>= 1`).
335
+ */
336
+ readonly maxDepth: number;
309
337
  /**
310
338
  * Returns the total number of internal and leaf octree nodes allocated.
311
339
  */
@@ -314,6 +342,10 @@ export class ArenaOctree3d {
314
342
  * Returns the number of points currently indexed in the octree.
315
343
  */
316
344
  readonly pointCount: number;
345
+ /**
346
+ * Returns the minimum pre-reserved DFS traversal stack capacity (`>= 1`).
347
+ */
348
+ readonly traversalStackCap: number;
317
349
  }
318
350
 
319
351
  /**
@@ -332,9 +364,9 @@ export class BackboneResult {
332
364
  free(): void;
333
365
  [Symbol.dispose](): void;
334
366
  /**
335
- * Returns a cloned weighted undirected `CsrGraph` representing the reweighted backbone.
367
+ * Returns a cloned weighted undirected `Graph` representing the reweighted backbone.
336
368
  */
337
- backboneCsr(): CsrGraph;
369
+ backboneCsr(): Graph;
338
370
  /**
339
371
  * Returns flat `[u0, v0, u1, v1, ...]` backbone edge endpoints (`Uint32Array`).
340
372
  */
@@ -370,7 +402,7 @@ export class BackboneSolver {
370
402
  /**
371
403
  * Constructs a `BackboneSolver` from `graph` and optional `BackboneOptions`.
372
404
  */
373
- constructor(graph: CsrGraph, options?: BackboneOptions | null);
405
+ constructor(graph: Graph, options?: BackboneOptions | null);
374
406
  /**
375
407
  * Executes up to `steps` backbone layout iterations on `layout` in place.
376
408
  */
@@ -432,7 +464,7 @@ export class ChebyshevDogKernel {
432
464
  /**
433
465
  * Builds a `ChebyshevDogKernel` from `graph` using Core-First MaxMin landmarks.
434
466
  */
435
- constructor(graph: CsrGraph, options?: ChebyshevDogKernelOptions | null);
467
+ constructor(graph: Graph, options?: ChebyshevDogKernelOptions | null);
436
468
  termsPsd(): SpectralFilterTerm[];
437
469
  /**
438
470
  * Converts the landmark kernel block into a `(numNodes, numLandmarks)` Normalized Varadhan table.
@@ -441,7 +473,7 @@ export class ChebyshevDogKernel {
441
473
  /**
442
474
  * Builds a `ChebyshevDogKernel` using explicitly provided `landmarks`.
443
475
  */
444
- static withLandmarks(graph: CsrGraph, landmarks: Uint32Array | number[], options?: ChebyshevDogKernelOptions | null): ChebyshevDogKernel;
476
+ static withLandmarks(graph: Graph, landmarks: Uint32Array | number[], options?: ChebyshevDogKernelOptions | null): ChebyshevDogKernel;
445
477
  readonly alpha: number;
446
478
  readonly betaAuto: number;
447
479
  readonly betaEff: number;
@@ -473,7 +505,7 @@ export class ClassDensityResult {
473
505
  export class ClassicalMds {
474
506
  free(): void;
475
507
  [Symbol.dispose](): void;
476
- generate(graph: CsrGraph): Layout2d | Layout3d | LayoutNd;
508
+ generate(graph: Graph): Layout2d | Layout3d | LayoutNd;
477
509
  constructor(options?: ClassicalMdsOptions | null);
478
510
  }
479
511
 
@@ -530,7 +562,7 @@ export class ClusterRefineSolver {
530
562
  /**
531
563
  * Constructs a `ClusterRefineSolver` with graph topology for `hac` mean edge-length scaling.
532
564
  */
533
- static fromGraph(graph: CsrGraph, labels: Uint32Array | number[], options?: ClusterRefineOptions | null): ClusterRefineSolver;
565
+ static fromGraph(graph: Graph, labels: Uint32Array | number[], options?: ClusterRefineOptions | null): ClusterRefineSolver;
534
566
  /**
535
567
  * Constructs a `ClusterRefineSolver` from `labels` without graph edge lengths.
536
568
  */
@@ -585,7 +617,7 @@ export class CoarseBackbone {
585
617
  [Symbol.dispose](): void;
586
618
  generateResult(): CoarseBackboneResult;
587
619
  generate(): Layout2d;
588
- constructor(graph: CsrGraph, options?: CoarseBackboneOptions | null);
620
+ constructor(graph: Graph, options?: CoarseBackboneOptions | null);
589
621
  }
590
622
 
591
623
  /**
@@ -596,9 +628,9 @@ export class CoarseBackboneResult {
596
628
  free(): void;
597
629
  [Symbol.dispose](): void;
598
630
  /**
599
- * Returns the coarsest `CsrGraph` (`f32`).
631
+ * Returns the coarsest `Graph` (`f32`).
600
632
  */
601
- coarseGraph(): CsrGraph;
633
+ coarseGraph(): Graph;
602
634
  /**
603
635
  * Returns the coarse super-node `Layout2d` (`f32`) scaled consistently with `fineLayout`.
604
636
  */
@@ -665,6 +697,11 @@ export interface AmgPcgOptions {
665
697
  diagEps?: number | null;
666
698
  eigEps?: number | null;
667
699
  symTol?: number | null;
700
+ residualRecomputeInterval?: number | null;
701
+ stalledCoarsestSgsSweeps?: number | null;
702
+ smootherDiagEps?: number | null;
703
+ jacobiCoarsestMaxSweeps?: number | null;
704
+ jacobiCoarsestTol?: number | null;
668
705
  seed?: number | bigint | null;
669
706
  randomizeTies?: boolean | null;
670
707
  nearNullspace?: Float64Array | number[] | null;
@@ -676,6 +713,10 @@ export interface EffectiveResistanceOptions {
676
713
  weightsAreLengths?: boolean | null;
677
714
  exact?: boolean | null;
678
715
  exactMaxNodes?: number | null;
716
+ maxExactNodes?: number | null;
717
+ exactJacobiMaxSweeps?: number | null;
718
+ exactJacobiTol?: number | null;
719
+ linkResistanceEps?: number | null;
679
720
  eigEps?: number | null;
680
721
  relTol?: number | null;
681
722
  maxIterations?: number | null;
@@ -689,11 +730,13 @@ export interface ResistanceCurvatureFlowOptions extends EffectiveResistanceOptio
689
730
  hyperbolicThreshold?: number | null;
690
731
  sphericalThreshold?: number | null;
691
732
  torusStdThreshold?: number | null;
733
+ torusDegCvThreshold?: number | null;
692
734
  }
693
735
 
694
736
  export interface TsNetOptions {
695
737
  target?: TargetKind | null;
696
738
  backend?: TsNetBackend | null;
739
+ exactThreshold?: number | null;
697
740
  stageIterations?: readonly [number, number, number] | Uint32Array | number[] | null;
698
741
  learningRate?: number | null;
699
742
  learningRateDivisor?: number | null;
@@ -708,6 +751,11 @@ export interface TsNetOptions {
708
751
  momentum?: number | null;
709
752
  epsilonR?: number | null;
710
753
  theta?: number | null;
754
+ quadtreeMaxDepth?: number | null;
755
+ coincidentDistSq?: number | null;
756
+ minTotalZ?: number | null;
757
+ entropyMinDist?: number | null;
758
+ minLambdaSum?: number | null;
711
759
  power?: number | null;
712
760
  sigmaIters?: number | null;
713
761
  sigmaTolerance?: number | null;
@@ -717,6 +765,9 @@ export interface TsNetOptions {
717
765
  interpolationOrder?: InterpolationOrder | null;
718
766
  minGridDim?: number | null;
719
767
  maxGridDim?: number | null;
768
+ repulsionKernel?: FieldRepulsionKernel | FieldRepulsionKernelLike | null;
769
+ finalLrFloor?: number | null;
770
+ alphaUpdateInterval?: number | null;
720
771
  seed?: number | bigint | null;
721
772
  }
722
773
 
@@ -746,6 +797,10 @@ export interface TsNetStageOptions {
746
797
  lambdaKl?: number | null;
747
798
  lambdaC?: number | null;
748
799
  lambdaR?: number | null;
800
+ lambdaMetric?: number | null;
801
+ coercive1hop?: number | null;
802
+ spring1hop?: number | null;
803
+ springDeadzone?: number | null;
749
804
  }
750
805
 
751
806
  export interface SgdScheduleOptions {
@@ -820,11 +875,18 @@ export interface SparseBarrierDogOptions extends SparseBarrierOptions {
820
875
  degreeNormalize?: boolean | null;
821
876
  pExp?: number | null;
822
877
  epsPsd?: number | null;
878
+ epsSim?: number | null;
879
+ dogEpsSim?: number | null;
823
880
  tCoarse?: number | null;
824
881
  t1?: number | null;
825
882
  t2?: number | null;
826
883
  alpha?: number | null;
827
884
  betaFloor?: number | null;
885
+ powerIters?: number | null;
886
+ powerSafetyFactor?: number | null;
887
+ lanczosSteps?: number | null;
888
+ safetyFactor?: number | null;
889
+ lanczosSafetyFactor?: number | null;
828
890
  }
829
891
 
830
892
  export interface GuMapOptions {
@@ -839,6 +901,11 @@ export interface GuMapOptions {
839
901
  sigmaIters?: number | null;
840
902
  sigmaTolerance?: number | null;
841
903
  symmetricNegative?: boolean | null;
904
+ tier2Margin?: number | null;
905
+ minDistSqClamp?: number | null;
906
+ repulsiveDistSqEps?: number | null;
907
+ gradClamp?: number | null;
908
+ epsDist?: number | null;
842
909
  seed?: number | bigint | null;
843
910
  }
844
911
 
@@ -851,11 +918,18 @@ export interface GuMapDogOptions extends GuMapOptions {
851
918
  degreeNormalize?: boolean | null;
852
919
  pExp?: number | null;
853
920
  epsPsd?: number | null;
921
+ epsSim?: number | null;
922
+ dogEpsSim?: number | null;
854
923
  tCoarse?: number | null;
855
924
  t1?: number | null;
856
925
  t2?: number | null;
857
926
  alpha?: number | null;
858
927
  betaFloor?: number | null;
928
+ powerIters?: number | null;
929
+ powerSafetyFactor?: number | null;
930
+ lanczosSteps?: number | null;
931
+ safetyFactor?: number | null;
932
+ lanczosSafetyFactor?: number | null;
859
933
  }
860
934
 
861
935
  export interface GuMapLandmarksOptions extends GuMapOptions {
@@ -879,6 +953,11 @@ export interface SpatialRefinerOptions {
879
953
  hingeFp?: boolean | null;
880
954
  minSepRatio?: number | null;
881
955
  wSep?: number | null;
956
+ maxWeightRatio?: number | null;
957
+ /** Non-negative integer <= Number.MAX_SAFE_INTEGER or non-negative bigint. */
958
+ exact2hopFloorWork?: number | bigint | null;
959
+ /** Non-negative integer <= Number.MAX_SAFE_INTEGER or non-negative bigint. */
960
+ exact2hopLinearFactor?: number | bigint | null;
882
961
  seed?: number | bigint | null;
883
962
  }
884
963
 
@@ -890,6 +969,7 @@ export interface StressMajorizationOptions {
890
969
  pcgTolerance?: number | null;
891
970
  pcgMaxIterations?: number | null;
892
971
  minNorm?: number | null;
972
+ backtrackAlphas?: Float64Array | number[] | null;
893
973
  }
894
974
 
895
975
  export interface KamadaKawaiOptions {
@@ -897,6 +977,9 @@ export interface KamadaKawaiOptions {
897
977
  eps?: number | null;
898
978
  maxInnerIters?: number | null;
899
979
  maxIterations?: number | null;
980
+ hessianDetTol?: number | null;
981
+ minSeparation?: number | null;
982
+ maxNewtonStep?: number | null;
900
983
  }
901
984
 
902
985
  export interface TFdpOptions {
@@ -906,6 +989,10 @@ export interface TFdpOptions {
906
989
  learningRate?: number | null;
907
990
  momentum?: number | null;
908
991
  theta?: number | null;
992
+ quadtreeMaxDepth?: number | null;
993
+ coincidentDistSq?: number | null;
994
+ minTotalZ?: number | null;
995
+ entropyMinDist?: number | null;
909
996
  alpha?: number | null;
910
997
  gamma?: number | null;
911
998
  rhoStart?: number | null;
@@ -929,9 +1016,20 @@ export interface IbUmapOptions {
929
1016
  a?: number | null;
930
1017
  b?: number | null;
931
1018
  cK?: number | null;
1019
+ repulsiveEps?: number | null;
932
1020
  tauScale?: number | null;
1021
+ tier2Margin?: number | null;
1022
+ minDistSqClamp?: number | null;
1023
+ epsDist?: number | null;
933
1024
  hubDamping?: boolean | null;
1025
+ hubDampingMode?: IbUmapHubDamping | IbUmapHubDampingLike | null;
1026
+ hubEta?: Float64Array | number[] | null;
1027
+ normalizeAttractionByMedianRowSum?: boolean | null;
934
1028
  theta?: number | null;
1029
+ quadtreeMaxDepth?: number | null;
1030
+ coincidentDistSq?: number | null;
1031
+ minTotalZ?: number | null;
1032
+ entropyMinDist?: number | null;
935
1033
  sigmaIters?: number | null;
936
1034
  sigmaTolerance?: number | null;
937
1035
  degrees?: Uint32Array | number[] | null;
@@ -946,11 +1044,18 @@ export interface IbUmapOptions {
946
1044
  degreeNormalize?: boolean | null;
947
1045
  pExp?: number | null;
948
1046
  epsPsd?: number | null;
1047
+ epsSim?: number | null;
1048
+ dogEpsSim?: number | null;
949
1049
  tCoarse?: number | null;
950
1050
  t1?: number | null;
951
1051
  t2?: number | null;
952
1052
  alpha?: number | null;
953
1053
  betaFloor?: number | null;
1054
+ powerIters?: number | null;
1055
+ powerSafetyFactor?: number | null;
1056
+ lanczosSteps?: number | null;
1057
+ safetyFactor?: number | null;
1058
+ lanczosSafetyFactor?: number | null;
954
1059
  seed?: number | bigint | null;
955
1060
  }
956
1061
 
@@ -966,6 +1071,8 @@ export interface SnapTFdpOptions {
966
1071
  rhoPower?: number | null;
967
1072
  degreeBeta?: number | null;
968
1073
  boundedAttraction?: boolean | null;
1074
+ maxAttrStep?: number | null;
1075
+ maxRepStep?: number | null;
969
1076
  seed?: number | bigint | null;
970
1077
  }
971
1078
 
@@ -980,6 +1087,8 @@ export interface ChebyshevDogKernelOptions {
980
1087
  jlDim?: number | null;
981
1088
  epsPsd?: number | null;
982
1089
  lambdaMax?: number | null;
1090
+ tailL1Tol?: number | null;
1091
+ tileCols?: number | null;
983
1092
  seed?: number | bigint | null;
984
1093
  }
985
1094
 
@@ -994,6 +1103,9 @@ export interface PacmapGraphOptions {
994
1103
  max1hopPerNode?: number | null;
995
1104
  degreeWeightBeta?: number | null;
996
1105
  numLandmarks?: number | null;
1106
+ adamBeta1?: number | null;
1107
+ adamBeta2?: number | null;
1108
+ adamEps?: number | null;
997
1109
  seed?: number | bigint | null;
998
1110
  }
999
1111
 
@@ -1011,6 +1123,7 @@ export interface PivotMdsGeneratorOptions {
1011
1123
  numPivots?: number | null;
1012
1124
  minDegree?: number | null;
1013
1125
  targetStd?: number | null;
1126
+ tileNodes?: number | null;
1014
1127
  pivots?: Uint32Array | number[] | null;
1015
1128
  seed?: number | bigint | null;
1016
1129
  }
@@ -1026,6 +1139,16 @@ export interface RdMdsGeneratorOptions {
1026
1139
  seed?: number | bigint | null;
1027
1140
  }
1028
1141
 
1142
+ export interface RdMdsFromEigenpairsOptions {
1143
+ target?: TargetKind | null;
1144
+ dims?: number | null;
1145
+ eigEps?: number | null;
1146
+ degreeNormalize?: boolean | null;
1147
+ targetStd?: number | null;
1148
+ seed?: number | bigint | null;
1149
+ numNodes?: number | null;
1150
+ }
1151
+
1029
1152
  export interface KorenSpectralGeneratorOptions {
1030
1153
  target?: TargetKind | null;
1031
1154
  dims?: number | null;
@@ -1044,11 +1167,17 @@ export interface DogVaradhanOptions {
1044
1167
  degreeNormalize?: boolean | null;
1045
1168
  pExp?: number | null;
1046
1169
  epsPsd?: number | null;
1170
+ epsSim?: number | null;
1047
1171
  tCoarse?: number | null;
1048
1172
  t1?: number | null;
1049
1173
  t2?: number | null;
1050
1174
  alpha?: number | null;
1051
1175
  betaFloor?: number | null;
1176
+ powerIters?: number | null;
1177
+ powerSafetyFactor?: number | null;
1178
+ lanczosSteps?: number | null;
1179
+ safetyFactor?: number | null;
1180
+ lanczosSafetyFactor?: number | null;
1052
1181
  seed?: number | bigint | null;
1053
1182
  }
1054
1183
 
@@ -1057,6 +1186,8 @@ export interface ChebyshevHeatSpmvOptions {
1057
1186
  lambdaMax?: number | null;
1058
1187
  lanczosSteps?: number | null;
1059
1188
  safetyFactor?: number | null;
1189
+ tailL1Tol?: number | null;
1190
+ tileCols?: number | null;
1060
1191
  seed?: number | bigint | null;
1061
1192
  }
1062
1193
 
@@ -1071,6 +1202,8 @@ export interface ChebyshevDogJlOptions {
1071
1202
  lambdaMax?: number | null;
1072
1203
  lanczosSteps?: number | null;
1073
1204
  safetyFactor?: number | null;
1205
+ tailL1Tol?: number | null;
1206
+ tileCols?: number | null;
1074
1207
  scaleVec?: Float64Array | number[] | null;
1075
1208
  seed?: number | bigint | null;
1076
1209
  }
@@ -1087,6 +1220,8 @@ export interface SpectralEigenOptions {
1087
1220
  nModes?: number | null;
1088
1221
  tol?: number | null;
1089
1222
  maxIterations?: number | null;
1223
+ subspaceDim?: number | null;
1224
+ laplacianShift?: number | null;
1090
1225
  maxSweeps?: number | null;
1091
1226
  seed?: number | bigint | null;
1092
1227
  }
@@ -1127,9 +1262,21 @@ export interface KnnProbabilitiesOptions {
1127
1262
  power?: number | null;
1128
1263
  sigmaIters?: number | null;
1129
1264
  sigmaTolerance?: number | null;
1265
+ minProbSum?: number | null;
1266
+ perplexityMargin?: number | null;
1130
1267
  rowNormalize?: boolean | null;
1131
1268
  }
1132
1269
 
1270
+ export interface FuzzySimplicialSetOptions {
1271
+ sigmaIters?: number | null;
1272
+ sigmaTolerance?: number | null;
1273
+ fuzzyThreshold?: number | null;
1274
+ }
1275
+
1276
+ export interface FindAbParamsOptions {
1277
+ abFitNumSamples?: number | null;
1278
+ }
1279
+
1133
1280
  export interface CoarseLouvainOptions {
1134
1281
  maxCoarseNodes?: number | null;
1135
1282
  resolution?: number | null;
@@ -1231,6 +1378,13 @@ export interface ForceAtlas2Options {
1231
1378
  preventOverlap?: boolean | null;
1232
1379
  defaultNodeRadius?: number | null;
1233
1380
  nodeRadii?: Float64Array | Float32Array | number[] | null;
1381
+ defaultMaxDisplacementBase?: number | null;
1382
+ coulombEpsSq?: number | null;
1383
+ minSpeed?: number | null;
1384
+ overlapDprimeMin?: number | null;
1385
+ overlapRepulsionK?: number | null;
1386
+ overlapQuadtreeMaxDepth?: number | null;
1387
+ overlapQuadtreeCoincidentSq?: number | null;
1234
1388
  seed?: number | bigint | null;
1235
1389
  }
1236
1390
 
@@ -1263,6 +1417,13 @@ export interface LinLogOptions {
1263
1417
  gravity?: number | null;
1264
1418
  edgeWeightInfluence?: number | null;
1265
1419
  maxDisplacement?: number | null;
1420
+ isolatedNodeMass?: number | null;
1421
+ defaultMaxDisplacementBase?: number | null;
1422
+ coulombEpsSq?: number | null;
1423
+ minSpeed?: number | null;
1424
+ maxSpeed?: number | null;
1425
+ quadtreeMaxDepth?: number | null;
1426
+ quadtreeCoincidentDistSq?: number | null;
1266
1427
  seed?: number | bigint | null;
1267
1428
  }
1268
1429
 
@@ -1275,6 +1436,10 @@ export interface FruchtermanReingoldOptions {
1275
1436
  initialTemperature?: number | null;
1276
1437
  gravity?: number | null;
1277
1438
  theta?: number | null;
1439
+ coincidentDistSq?: number | null;
1440
+ coincidentPerturbDist?: number | null;
1441
+ bhEpsSq?: number | null;
1442
+ gravityAnchorLimit?: number | null;
1278
1443
  seed?: number | bigint | null;
1279
1444
  }
1280
1445
 
@@ -1285,6 +1450,7 @@ export interface BackboneOptions {
1285
1450
  useWeights?: boolean | null;
1286
1451
  layoutMode?: BackboneLayoutMode | null;
1287
1452
  iterations?: number | null;
1453
+ weightTieEps?: number | null;
1288
1454
  seed?: number | bigint | null;
1289
1455
  }
1290
1456
 
@@ -1302,6 +1468,7 @@ export interface ClusterRefineOptions {
1302
1468
  kmeansMaxIterations?: number | null;
1303
1469
  shiftStep?: number | null;
1304
1470
  margin?: number | null;
1471
+ geomEps?: number | null;
1305
1472
  seed?: number | bigint | null;
1306
1473
  }
1307
1474
 
@@ -1314,6 +1481,7 @@ export interface GroupInABoxOptions {
1314
1481
  intraIterations?: number | null;
1315
1482
  fdIterations?: number | null;
1316
1483
  fitBounds?: boolean | null;
1484
+ geomEps?: number | null;
1317
1485
  clusterWeights?: Float64Array | Float32Array | number[] | null;
1318
1486
  seed?: number | bigint | null;
1319
1487
  }
@@ -1332,6 +1500,8 @@ export interface GTreeOptions {
1332
1500
  maxIterations?: number | null;
1333
1501
  padding?: number | null;
1334
1502
  compactTMax?: number | null;
1503
+ minEdgeDist?: number | null;
1504
+ maxStage2FinalIters?: number | null;
1335
1505
  seed?: number | bigint | null;
1336
1506
  }
1337
1507
 
@@ -1343,6 +1513,9 @@ export interface ForbidOptions {
1343
1513
  overlapWeightK?: number | null;
1344
1514
  scaleStep?: number | null;
1345
1515
  padding?: number | null;
1516
+ minEdgeDist?: number | null;
1517
+ minTargetDist?: number | null;
1518
+ sgd2Eps?: number | null;
1346
1519
  seed?: number | bigint | null;
1347
1520
  }
1348
1521
 
@@ -1483,6 +1656,8 @@ export interface MaxentStressOptions {
1483
1656
  theta?: number | null;
1484
1657
  useBarnesHut?: boolean | null;
1485
1658
  epsSq?: number | null;
1659
+ collapsedSpanEps?: number | null;
1660
+ minNormSqSum?: number | null;
1486
1661
  seed?: number | bigint | null;
1487
1662
  }
1488
1663
 
@@ -1494,6 +1669,9 @@ export interface GripOptions {
1494
1669
  edgeLength?: number | null;
1495
1670
  tempR?: number | null;
1496
1671
  tempS?: number | null;
1672
+ minSeparationSqFactor?: number | null;
1673
+ coincidentSqFactor?: number | null;
1674
+ treemapPadding?: number | null;
1497
1675
  seed?: number | bigint | null;
1498
1676
  }
1499
1677
 
@@ -1509,6 +1687,8 @@ export interface GemOptions {
1509
1687
  oscillationSensitivity?: number | null;
1510
1688
  rotationSensitivity?: number | null;
1511
1689
  perturbation?: number | null;
1690
+ minDistSq?: number | null;
1691
+ minNorm?: number | null;
1512
1692
  seed?: number | bigint | null;
1513
1693
  }
1514
1694
 
@@ -1518,6 +1698,7 @@ export interface SelOptions {
1518
1698
  mapping?: SelWeightMapping | null;
1519
1699
  layoutBackend?: SelLayoutBackend | null;
1520
1700
  iterations?: number | null;
1701
+ unassignedEntropySentinel?: number | null;
1521
1702
  seed?: number | bigint | null;
1522
1703
  frConfig?: FruchtermanReingoldOptions | null;
1523
1704
  tFdpConfig?: TFdpOptions | null;
@@ -1532,6 +1713,7 @@ export interface SfcOptions {
1532
1713
  curve?: SfcCurveKind | null;
1533
1714
  scale?: number | null;
1534
1715
  resolutionOrder?: number | null;
1716
+ maxOrder?: number | null;
1535
1717
  seed?: number | bigint | null;
1536
1718
  }
1537
1719
 
@@ -1547,6 +1729,8 @@ export interface YifanHuOptions {
1547
1729
  minCoarsenSize?: number | null;
1548
1730
  minCoarsenRatio?: number | null;
1549
1731
  convergenceTolerance?: number | null;
1732
+ maxCoarsenLevels?: number | null;
1733
+ prolongationJitterFactor?: number | null;
1550
1734
  seed?: number | bigint | null;
1551
1735
  }
1552
1736
 
@@ -1556,17 +1740,28 @@ export interface PrismOptions {
1556
1740
  cgMaxIters?: number | null;
1557
1741
  cgTolerance?: number | null;
1558
1742
  padding?: number | null;
1743
+ minEdgeDist?: number | null;
1744
+ minWeightDist?: number | null;
1745
+ innerMajorizationIters?: number | null;
1746
+ overlapWeightBoost?: number | null;
1747
+ ssorOmega?: number | null;
1748
+ overlapMicroDistRatio?: number | null;
1749
+ stallNoImproveStreak?: number | null;
1559
1750
  seed?: number | bigint | null;
1560
1751
  }
1561
1752
 
1562
1753
  export interface TwinDeclutterOptions {
1754
+ epsRel?: number | null;
1755
+ rFrac?: number | null;
1756
+ rCapRel?: number | null;
1757
+ minPairRel?: number | null;
1563
1758
  iterations?: number | null;
1564
- kNeighbors?: number | null;
1565
- minRelativeSeparation?: number | null;
1566
- stiffness?: number | null;
1567
- anchorWeight?: number | null;
1568
- stepScale?: number | null;
1569
- seed?: number | bigint | null;
1759
+ degenerateDiagEps?: number | null;
1760
+ }
1761
+
1762
+ export interface ConstraintProjectorOptions {
1763
+ violationTol?: number | null;
1764
+ splitLmTol?: number | null;
1570
1765
  }
1571
1766
 
1572
1767
  export interface SeparationConstraintLike {
@@ -1583,6 +1778,9 @@ export interface FdebOptions {
1583
1778
  iStep?: number | null;
1584
1779
  springK?: number | null;
1585
1780
  minimumEdgeCompatibility?: number | null;
1781
+ minEdgeLen?: number | null;
1782
+ minSegDist?: number | null;
1783
+ maxSpringAlphaKp?: number | null;
1586
1784
  }
1587
1785
 
1588
1786
  export interface ProgressiveSolverLike<TLayout = AnyLayout | EdgePolylines> {
@@ -1620,6 +1818,110 @@ export function runProgressive<TLayout = AnyLayout | EdgePolylines>(
1620
1818
  options?: RunProgressiveOptions | null,
1621
1819
  ): Promise<ProgressiveFrameContext<TLayout>>;
1622
1820
 
1821
+
1822
+ export type PivotDistanceArrayLike =
1823
+ | Float64Array
1824
+ | Float32Array
1825
+ | Uint32Array
1826
+ | Uint16Array
1827
+ | Uint8Array
1828
+ | number[];
1829
+
1830
+ export type HopDistanceArrayLike =
1831
+ | Uint32Array
1832
+ | Uint16Array
1833
+ | Uint8Array
1834
+ | Int32Array
1835
+ | number[];
1836
+
1837
+ export interface PivotMdsFromDistancesOptions {
1838
+ target?: TargetKind | null;
1839
+ dims?: number | null;
1840
+ targetStd?: number | null;
1841
+ seed?: number | bigint | null;
1842
+ }
1843
+
1844
+ export interface AmgDavidsonEigenOptions {
1845
+ nModes?: number | null;
1846
+ shift?: number | null;
1847
+ tol?: number | null;
1848
+ maxIterations?: number | null;
1849
+ subspaceDim?: number | null;
1850
+ blockSize?: number | null;
1851
+ relScaleFloor?: number | null;
1852
+ seed?: number | bigint | null;
1853
+ amgRelTol?: number | null;
1854
+ amgAbsTol?: number | null;
1855
+ amgMaxIterations?: number | null;
1856
+ theta?: number | null;
1857
+ maxLevels?: number | null;
1858
+ maxCoarseSize?: number | null;
1859
+ preSweeps?: number | null;
1860
+ postSweeps?: number | null;
1861
+ maxAggSize?: number | null;
1862
+ diagEps?: number | null;
1863
+ eigEps?: number | null;
1864
+ symTol?: number | null;
1865
+ amgResidualRecomputeInterval?: number | null;
1866
+ amgStalledCoarsestSgsSweeps?: number | null;
1867
+ amgSmootherDiagEps?: number | null;
1868
+ amgJacobiCoarsestMaxSweeps?: number | null;
1869
+ amgJacobiCoarsestTol?: number | null;
1870
+ randomizeTies?: boolean | null;
1871
+ }
1872
+
1873
+ export interface OrtmannFromPivotsOptions {
1874
+ target?: TargetKind | null;
1875
+ iterations?: number | null;
1876
+ etaMax?: number | null;
1877
+ etaMin?: number | null;
1878
+ eps?: number | null;
1879
+ seed?: number | bigint | null;
1880
+ }
1881
+
1882
+ export type IbUmapHubDampingLike =
1883
+ | { kind: "none" }
1884
+ | { kind: "inverseDegree" }
1885
+ | { kind: "medianRowSum" }
1886
+ | { kind: "inverseDegreePower"; exponent: number }
1887
+ | { kind: "explicit"; hubEta: Float64Array | number[] };
1888
+
1889
+ export type FieldRepulsionKernelLike =
1890
+ | { kind: "cauchy" }
1891
+ | { kind: "generalizedCauchy"; gamma: number }
1892
+ | {
1893
+ kind: "screenedCauchy";
1894
+ screenFrac: number;
1895
+ minScreen?: number | null;
1896
+ };
1897
+
1898
+ export type MetricAnchorWeightingLike =
1899
+ | { kind: "balancedInvD2" }
1900
+ | { kind: "inversePower"; power: number }
1901
+ | { kind: "longRangeGated"; dGate: number; power: number }
1902
+ | {
1903
+ kind: "relativeLongRangeGated";
1904
+ medianFrac: number;
1905
+ power: number;
1906
+ };
1907
+
1908
+ export interface MetricAnchorOptions {
1909
+ numAnchorPivots?: number | null;
1910
+ weighting?: MetricAnchorWeighting | MetricAnchorWeightingLike | null;
1911
+ softEps?: number | null;
1912
+ }
1913
+
1914
+ export interface MetricAnchorEmbeddingOptions {
1915
+ numAnchorPivots?: number | null;
1916
+ minDist?: number | null;
1917
+ power?: number | null;
1918
+ softEps?: number | null;
1919
+ }
1920
+
1921
+ export interface TetherWeightsOptions {
1922
+ degreeExponent?: number | null;
1923
+ }
1924
+
1623
1925
  export class CoarsenedGraphResult {
1624
1926
  private constructor();
1625
1927
  free(): void;
@@ -1629,9 +1931,9 @@ export class CoarsenedGraphResult {
1629
1931
  */
1630
1932
  coarseSizes(): Uint32Array;
1631
1933
  /**
1632
- * Returns a cloned handle to the weighted undirected coarsened `CsrGraph`.
1934
+ * Returns a cloned handle to the weighted undirected coarsened `Graph`.
1633
1935
  */
1634
- graph(): CsrGraph;
1936
+ graph(): Graph;
1635
1937
  /**
1636
1938
  * Returns the compacted `0..numClusters` cluster ID for each original vertex (`Uint32Array`).
1637
1939
  */
@@ -1650,9 +1952,9 @@ export class CoarsenedHierarchyResult {
1650
1952
  free(): void;
1651
1953
  [Symbol.dispose](): void;
1652
1954
  /**
1653
- * Returns a cloned handle to the coarsest super-graph `CsrGraph`.
1955
+ * Returns a cloned handle to the coarsest super-graph `Graph`.
1654
1956
  */
1655
- coarseGraph(): CsrGraph;
1957
+ coarseGraph(): Graph;
1656
1958
  /**
1657
1959
  * Returns the original vertex counts per coarsest cluster (`Uint32Array`).
1658
1960
  */
@@ -1714,131 +2016,6 @@ export class CrossingSummary {
1714
2016
  readonly minAngleRad: number | undefined;
1715
2017
  }
1716
2018
 
1717
- /**
1718
- * Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
1719
- */
1720
- /**
1721
- * Structured error codes attached to `Error.code` across WASM API failures.
1722
- */
1723
- export type EgraphErrorCode =
1724
- | "InvalidInput"
1725
- | "DimensionMismatch"
1726
- | "IndexOutOfBounds"
1727
- | "InvalidCsr"
1728
- | "NonFiniteValue"
1729
- | "UnsupportedOperation"
1730
- | "NumericalBreakdown"
1731
- | "BackendUnavailable"
1732
- | "DeviceLimitExceeded";
1733
-
1734
- /**
1735
- * Options controlling CSR / edge-list graph construction.
1736
- */
1737
- export interface CsrGraphOptions {
1738
- directed?: boolean;
1739
- sanitize?: boolean;
1740
- weightDtype?: WeightDtype;
1741
- }
1742
-
1743
- export class CsrGraph {
1744
- private constructor();
1745
- free(): void;
1746
- [Symbol.dispose](): void;
1747
- /**
1748
- * Returns the degree (outgoing degree for directed graphs) of vertex `u`.
1749
- */
1750
- degree(u: number): number;
1751
- /**
1752
- * Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
1753
- */
1754
- edgeWeight(u: number, v: number): number | undefined;
1755
- /**
1756
- * Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
1757
- */
1758
- edges(): Uint32Array;
1759
- /**
1760
- * Constructs a `CsrGraph` from CSR `indptr`, `indices`, and optional `weights`.
1761
- *
1762
- * The optional trailing parameters accept either `(directed, sanitize)` booleans or an
1763
- * options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
1764
- * Defaults are `directed = false` and `sanitize = true`.
1765
- */
1766
- static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | CsrGraphOptions | null, sanitize?: boolean | null): CsrGraph;
1767
- /**
1768
- * Constructs a `CsrGraph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
1769
- * and optional `weights`.
1770
- */
1771
- static fromEdgeList(numNodes: number, edges: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | CsrGraphOptions | null, sanitize?: boolean | null): CsrGraph;
1772
- /**
1773
- * Returns `true` if an edge `(u, v)` exists in the graph.
1774
- */
1775
- hasEdge(u: number, v: number): boolean;
1776
- /**
1777
- * Returns a copy of the flat CSR `indices` neighbor array.
1778
- */
1779
- indices(): Uint32Array;
1780
- /**
1781
- * Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
1782
- */
1783
- indptr(): Uint32Array;
1784
- /**
1785
- * Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
1786
- */
1787
- inducedSubgraph(nodes: Uint32Array | number[]): CsrGraph;
1788
- /**
1789
- * Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
1790
- */
1791
- isConnected(): boolean;
1792
- /**
1793
- * Returns `true` if the graph is directed.
1794
- */
1795
- isDirected(): boolean;
1796
- /**
1797
- * Returns `true` if the graph contains zero vertices.
1798
- */
1799
- isEmpty(): boolean;
1800
- /**
1801
- * Returns `true` if explicit edge weights are stored.
1802
- */
1803
- isWeighted(): boolean;
1804
- /**
1805
- * Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
1806
- */
1807
- largestConnectedComponent(): LargestConnectedComponentResult;
1808
- /**
1809
- * Returns the number of vertices in the graph.
1810
- */
1811
- len(): number;
1812
- /**
1813
- * Returns a copy of the neighbor indices adjacent to vertex `u`.
1814
- */
1815
- neighbors(u: number): Uint32Array;
1816
- /**
1817
- * Returns the number of stored CSR half-edge entries (`indices().length`).
1818
- */
1819
- nnz(): number;
1820
- /**
1821
- * Returns the number of logical edges in the graph.
1822
- */
1823
- numEdges(): number;
1824
- /**
1825
- * Returns the number of vertices in the graph.
1826
- */
1827
- numNodes(): number;
1828
- /**
1829
- * Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
1830
- */
1831
- weights(): Float32Array | undefined;
1832
- /**
1833
- * Returns the number of vertices in the graph.
1834
- */
1835
- readonly length: number;
1836
- /**
1837
- * Returns the scalar weight dtype stored in WebAssembly (`WeightDtype.Float32`).
1838
- */
1839
- readonly weightDtype: WeightDtype;
1840
- }
1841
-
1842
2019
  /**
1843
2020
  * Double-precision square Compressed Sparse Row matrix (`CsrMatrix`) with spectral bounds
1844
2021
  * and matrix-vector operations.
@@ -1957,7 +2134,7 @@ export enum DensityFieldKernel {
1957
2134
  }
1958
2135
 
1959
2136
  /**
1960
- * Reusable epoch-stamped single-source Dijkstra workspace over `CsrGraph`.
2137
+ * Reusable epoch-stamped single-source Dijkstra workspace over `Graph`.
1961
2138
  */
1962
2139
  export class DijkstraWorkspace {
1963
2140
  free(): void;
@@ -1966,7 +2143,7 @@ export class DijkstraWorkspace {
1966
2143
  * Computes single-source shortest-path distances (`Float64Array`, `Infinity` for unreachable)
1967
2144
  * from `source` on `graph`, reusing internal workspace allocations.
1968
2145
  */
1969
- dijkstraFrom(graph: CsrGraph, source: number): Float64Array;
2146
+ dijkstraFrom(graph: Graph, source: number): Float64Array;
1970
2147
  /**
1971
2148
  * Ensures internal scratch capacity covers at least `numNodes` vertices.
1972
2149
  */
@@ -2066,7 +2243,7 @@ export class DogVaradhanLandmarks {
2066
2243
  }
2067
2244
 
2068
2245
  /**
2069
- * Cooperative multilevel negative-sampling `DRGraph` (Zhu et al., 2020) layout solver (`f32`).
2246
+ * Cooperative multilevel negative-sampling `DRGraph` (Zhu et al., 2021) layout solver (`f32`).
2070
2247
  */
2071
2248
  export class DrGraphSolver {
2072
2249
  free(): void;
@@ -2089,7 +2266,7 @@ export class DrGraphSolver {
2089
2266
  /**
2090
2267
  * Constructs a `DrGraphSolver` from `graph` and `DrGraphOptions`.
2091
2268
  */
2092
- constructor(graph: CsrGraph, options?: DrGraphOptions | null);
2269
+ constructor(graph: Graph, options?: DrGraphOptions | null);
2093
2270
  readonly currentLr: number;
2094
2271
  readonly isFinished: boolean;
2095
2272
  readonly iteration: number;
@@ -2110,11 +2287,11 @@ export class DynamicKdTree {
2110
2287
  /**
2111
2288
  * Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
2112
2289
  */
2113
- static fromFlat(coords: Float32Array | number[], n: number, dims: number): DynamicKdTree;
2290
+ static fromFlat(coords: Float32Array | number[], n: number, dims: number, options?: DynamicKdTreeOptions | null): DynamicKdTree;
2114
2291
  /**
2115
2292
  * Constructs a `DynamicKdTree` directly from a `LayoutNd`.
2116
2293
  */
2117
- static fromLayoutNd(layout: LayoutNd): DynamicKdTree;
2294
+ static fromLayoutNd(layout: LayoutNd, options?: DynamicKdTreeOptions | null): DynamicKdTree;
2118
2295
  /**
2119
2296
  * Returns `true` if the tree contains zero points.
2120
2297
  */
@@ -2138,12 +2315,16 @@ export class DynamicKdTree {
2138
2315
  /**
2139
2316
  * Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
2140
2317
  */
2141
- constructor(layout: LayoutNd);
2142
- constructor(coords: Float32Array | number[], n: number, dims: number);
2318
+ constructor(layout: LayoutNd, options?: DynamicKdTreeOptions | null);
2319
+ constructor(coords: Float32Array | number[], n: number, dims: number, options?: DynamicKdTreeOptions | null);
2143
2320
  /**
2144
2321
  * Returns a `Float64Array` copy of point `index`'s coordinates.
2145
2322
  */
2146
2323
  point(index: number): Float64Array;
2324
+ /**
2325
+ * Validates and updates the leaf node bucket size (`>= 1`), rebuilding nodes if non-empty.
2326
+ */
2327
+ setLeafSize(leaf_size: number): void;
2147
2328
  /**
2148
2329
  * Returns all points `Array<{ index, distSq }>` within squared distance `radiusSq` of `query`.
2149
2330
  */
@@ -2156,6 +2337,10 @@ export class DynamicKdTree {
2156
2337
  * Returns the spatial dimensionality `D` of indexed points.
2157
2338
  */
2158
2339
  readonly dims: number;
2340
+ /**
2341
+ * Returns the maximum leaf node bucket size (`>= 1`).
2342
+ */
2343
+ readonly leafSize: number;
2159
2344
  /**
2160
2345
  * Returns the number of points indexed in the tree.
2161
2346
  */
@@ -2171,14 +2356,14 @@ export class EdgePolylines {
2171
2356
  private constructor();
2172
2357
  free(): void;
2173
2358
  [Symbol.dispose](): void;
2174
- static straightLineFromGraph(graph: CsrGraph, layout: Layout2d | Layout3d | LayoutNd): EdgePolylines;
2359
+ static straightLineFromGraph(graph: Graph, layout: Layout2d | Layout3d | LayoutNd): EdgePolylines;
2175
2360
  static fromParts(edgeOffsets: Uint32Array | number[], points: Layout2d | Layout3d | LayoutNd): EdgePolylines;
2176
2361
  static _fromParts2d(edge_offsets: Uint32Array | number[], points: Layout2d): EdgePolylines;
2177
2362
  static _fromParts3d(edge_offsets: Uint32Array | number[], points: Layout3d): EdgePolylines;
2178
2363
  static _fromPartsNd(edge_offsets: Uint32Array | number[], points: LayoutNd): EdgePolylines;
2179
- static _straightLineFromGraph2d(graph: CsrGraph, layout: Layout2d): EdgePolylines;
2180
- static _straightLineFromGraph3d(graph: CsrGraph, layout: Layout3d): EdgePolylines;
2181
- static _straightLineFromGraphNd(graph: CsrGraph, layout: LayoutNd): EdgePolylines;
2364
+ static _straightLineFromGraph2d(graph: Graph, layout: Layout2d): EdgePolylines;
2365
+ static _straightLineFromGraph3d(graph: Graph, layout: Layout3d): EdgePolylines;
2366
+ static _straightLineFromGraphNd(graph: Graph, layout: LayoutNd): EdgePolylines;
2182
2367
  /**
2183
2368
  * Returns a freshly allocated `Uint32Array` copy of `edgeOffsets`.
2184
2369
  */
@@ -2414,6 +2599,40 @@ export class FdebSolver {
2414
2599
  readonly totalIterations: number | undefined;
2415
2600
  }
2416
2601
 
2602
+ /**
2603
+ * Per-step `IbFft` field telemetry counters returned by `TFdpSolver.lastFftStats()` and
2604
+ * `IbUmapSolver.lastFftStats()`.
2605
+ */
2606
+ export class FieldFftStats {
2607
+ private constructor();
2608
+ free(): void;
2609
+ [Symbol.dispose](): void;
2610
+ /**
2611
+ * Number of inverse 2D FFTs executed.
2612
+ */
2613
+ readonly inverseFfts: number;
2614
+ /**
2615
+ * Number of forward 2D FFTs executed on kernel grids.
2616
+ */
2617
+ readonly kernelForwardFfts: number;
2618
+ /**
2619
+ * Active FFT grid width.
2620
+ */
2621
+ readonly nx: number;
2622
+ /**
2623
+ * Active FFT grid height.
2624
+ */
2625
+ readonly ny: number;
2626
+ /**
2627
+ * Number of forward 2D FFTs executed on particle charge grids.
2628
+ */
2629
+ readonly particleForwardFfts: number;
2630
+ /**
2631
+ * Total `fft_2d` calls for this step.
2632
+ */
2633
+ readonly totalFft2dCalls: number;
2634
+ }
2635
+
2417
2636
  /**
2418
2637
  * r" Repulsion backend selector for `TFdpSolver`, `IbUmapSolver`, and `SelLayoutSolver`.
2419
2638
  */
@@ -2424,6 +2643,31 @@ export enum FieldRepulsionBackend {
2424
2643
  Exact = 3,
2425
2644
  }
2426
2645
 
2646
+ /**
2647
+ * Radial KL repulsion kernel family for `TsNetSolver`.
2648
+ */
2649
+ export class FieldRepulsionKernel {
2650
+ private constructor();
2651
+ free(): void;
2652
+ [Symbol.dispose](): void;
2653
+ /**
2654
+ * Classic Student-t Cauchy kernel `(1 + r^2)^(-1)`.
2655
+ */
2656
+ static cauchy(): FieldRepulsionKernel;
2657
+ /**
2658
+ * Generalized Box-Cox gamma-tail Cauchy kernel `(1 + r^2)^(-gamma)` (`gamma in (0.25, 6.0]`).
2659
+ */
2660
+ static generalizedCauchy(gamma: number): FieldRepulsionKernel;
2661
+ /**
2662
+ * Rational screened Cauchy kernel `(1 + r^2)^(-1) * (1 + r^2 / ell^2)^(-1)`.
2663
+ */
2664
+ static screenedCauchy(screen_frac: number, min_screen?: number | null): FieldRepulsionKernel;
2665
+ readonly gamma: number | undefined;
2666
+ readonly kind: string;
2667
+ readonly minScreen: number | undefined;
2668
+ readonly screenFrac: number | undefined;
2669
+ }
2670
+
2427
2671
  /**
2428
2672
  * FFT field telemetry counters returned by `TsNetSolver.lastFftStats()`.
2429
2673
  */
@@ -2519,7 +2763,7 @@ export class ForceAtlas2Solver {
2519
2763
  /**
2520
2764
  * Constructs a `ForceAtlas2Solver` from `graph` and optional `ForceAtlas2Options`.
2521
2765
  */
2522
- constructor(graph: CsrGraph, options?: ForceAtlas2Options | null);
2766
+ constructor(graph: Graph, options?: ForceAtlas2Options | null);
2523
2767
  nodeRadii(): Float64Array;
2524
2768
  readonly backend: ForceBackend;
2525
2769
  readonly isFinished: boolean;
@@ -2574,7 +2818,7 @@ export class FruchtermanReingoldSolver {
2574
2818
  /**
2575
2819
  * Constructs a `FruchtermanReingoldSolver` from `graph` and optional `FruchtermanReingoldOptions`.
2576
2820
  */
2577
- constructor(graph: CsrGraph, options?: FruchtermanReingoldOptions | null);
2821
+ constructor(graph: Graph, options?: FruchtermanReingoldOptions | null);
2578
2822
  readonly backend: FrBackend;
2579
2823
  readonly currentTemperature: number;
2580
2824
  readonly isFinished: boolean;
@@ -2653,7 +2897,7 @@ export class GemSolver {
2653
2897
  /**
2654
2898
  * Constructs a `GemSolver` from `graph` and optional `GemOptions`.
2655
2899
  */
2656
- constructor(graph: CsrGraph, options?: GemOptions | null);
2900
+ constructor(graph: Graph, options?: GemOptions | null);
2657
2901
  /**
2658
2902
  * Executes up to `steps` GEM rounds on `layout` in place.
2659
2903
  */
@@ -2705,6 +2949,131 @@ export enum GibIntraLayoutMode {
2705
2949
  YifanHu = 2,
2706
2950
  }
2707
2951
 
2952
+ /**
2953
+ * Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
2954
+ */
2955
+ /**
2956
+ * Structured error codes attached to `Error.code` across WASM API failures.
2957
+ */
2958
+ export type EgraphErrorCode =
2959
+ | "InvalidInput"
2960
+ | "DimensionMismatch"
2961
+ | "IndexOutOfBounds"
2962
+ | "InvalidCsr"
2963
+ | "NonFiniteValue"
2964
+ | "UnsupportedOperation"
2965
+ | "NumericalBreakdown"
2966
+ | "BackendUnavailable"
2967
+ | "DeviceLimitExceeded";
2968
+
2969
+ /**
2970
+ * Options controlling CSR / edge-list graph construction.
2971
+ */
2972
+ export interface GraphOptions {
2973
+ directed?: boolean;
2974
+ sanitize?: boolean;
2975
+ weightDtype?: WeightDtype;
2976
+ }
2977
+
2978
+ export class Graph {
2979
+ private constructor();
2980
+ free(): void;
2981
+ [Symbol.dispose](): void;
2982
+ /**
2983
+ * Returns the degree (outgoing degree for directed graphs) of vertex `u`.
2984
+ */
2985
+ degree(u: number): number;
2986
+ /**
2987
+ * Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
2988
+ */
2989
+ edgeWeight(u: number, v: number): number | undefined;
2990
+ /**
2991
+ * Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
2992
+ */
2993
+ edges(): Uint32Array;
2994
+ /**
2995
+ * Constructs a `Graph` from CSR `indptr`, `indices`, and optional `weights`.
2996
+ *
2997
+ * The optional trailing parameters accept either `(directed, sanitize)` booleans or an
2998
+ * options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
2999
+ * Defaults are `directed = false` and `sanitize = true`.
3000
+ */
3001
+ static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | GraphOptions | null, sanitize?: boolean | null): Graph;
3002
+ /**
3003
+ * Constructs a `Graph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
3004
+ * and optional `weights`.
3005
+ */
3006
+ static fromEdgeList(numNodes: number, edges: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | GraphOptions | null, sanitize?: boolean | null): Graph;
3007
+ /**
3008
+ * Returns `true` if an edge `(u, v)` exists in the graph.
3009
+ */
3010
+ hasEdge(u: number, v: number): boolean;
3011
+ /**
3012
+ * Returns a copy of the flat CSR `indices` neighbor array.
3013
+ */
3014
+ indices(): Uint32Array;
3015
+ /**
3016
+ * Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
3017
+ */
3018
+ indptr(): Uint32Array;
3019
+ /**
3020
+ * Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
3021
+ */
3022
+ inducedSubgraph(nodes: Uint32Array | number[]): Graph;
3023
+ /**
3024
+ * Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
3025
+ */
3026
+ isConnected(): boolean;
3027
+ /**
3028
+ * Returns `true` if the graph is directed.
3029
+ */
3030
+ isDirected(): boolean;
3031
+ /**
3032
+ * Returns `true` if the graph contains zero vertices.
3033
+ */
3034
+ isEmpty(): boolean;
3035
+ /**
3036
+ * Returns `true` if explicit edge weights are stored.
3037
+ */
3038
+ isWeighted(): boolean;
3039
+ /**
3040
+ * Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
3041
+ */
3042
+ largestConnectedComponent(): LargestConnectedComponentResult;
3043
+ /**
3044
+ * Returns the number of vertices in the graph.
3045
+ */
3046
+ len(): number;
3047
+ /**
3048
+ * Returns a copy of the neighbor indices adjacent to vertex `u`.
3049
+ */
3050
+ neighbors(u: number): Uint32Array;
3051
+ /**
3052
+ * Returns the number of stored CSR half-edge entries (`indices().length`).
3053
+ */
3054
+ nnz(): number;
3055
+ /**
3056
+ * Returns the number of logical edges in the graph.
3057
+ */
3058
+ numEdges(): number;
3059
+ /**
3060
+ * Returns the number of vertices in the graph.
3061
+ */
3062
+ numNodes(): number;
3063
+ /**
3064
+ * Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
3065
+ */
3066
+ weights(): Float32Array | undefined;
3067
+ /**
3068
+ * Returns the number of vertices in the graph.
3069
+ */
3070
+ readonly length: number;
3071
+ /**
3072
+ * Returns the scalar weight dtype stored in WebAssembly (`WeightDtype.Float32`).
3073
+ */
3074
+ readonly weightDtype: WeightDtype;
3075
+ }
3076
+
2708
3077
  /**
2709
3078
  * r" Contrastive objective for `GraphCneSolver`.
2710
3079
  */
@@ -2714,7 +3083,7 @@ export enum GraphCneObjective {
2714
3083
  }
2715
3084
 
2716
3085
  /**
2717
- * Cooperative `Graph-CNE` (Bohm et al., 2025) contrastive neighbor embedding solver (`f32`).
3086
+ * Cooperative `Graph-CNE` (Böhm et al., 2025) contrastive neighbor embedding solver (`f32`).
2718
3087
  */
2719
3088
  export class GraphCneSolver {
2720
3089
  free(): void;
@@ -2737,7 +3106,7 @@ export class GraphCneSolver {
2737
3106
  /**
2738
3107
  * Constructs a `GraphCneSolver` from `graph` and `GraphCneOptions`.
2739
3108
  */
2740
- constructor(graph: CsrGraph, options?: GraphCneOptions | null);
3109
+ constructor(graph: Graph, options?: GraphCneOptions | null);
2741
3110
  readonly currentLr: number;
2742
3111
  readonly isFinished: boolean;
2743
3112
  readonly iteration: number;
@@ -2754,7 +3123,7 @@ export class GraphCneSolver {
2754
3123
  export class GripSolver {
2755
3124
  free(): void;
2756
3125
  [Symbol.dispose](): void;
2757
- constructor(graph: CsrGraph, options?: GripOptions | null);
3126
+ constructor(graph: Graph, options?: GripOptions | null);
2758
3127
  runSteps(layout: Layout2d, steps: number): SolverStatus;
2759
3128
  run(layout: Layout2d): SolverStatus;
2760
3129
  step(layout: Layout2d): SolverStatus;
@@ -2782,7 +3151,7 @@ export class GroupInABoxSolver {
2782
3151
  /**
2783
3152
  * Constructs a `GroupInABoxSolver` from `graph`, `labels`, and optional `GroupInABoxOptions`.
2784
3153
  */
2785
- constructor(graph: CsrGraph, labels: Uint32Array | number[], options?: GroupInABoxOptions | null);
3154
+ constructor(graph: Graph, labels: Uint32Array | number[], options?: GroupInABoxOptions | null);
2786
3155
  /**
2787
3156
  * Executes up to `steps` intra-box layout iterations on `layout` in place.
2788
3157
  */
@@ -2843,9 +3212,9 @@ export class GuMapSolver {
2843
3212
  */
2844
3213
  static fromFuzzySet(probs: SparseProbabilities, options?: GuMapOptions | null): GuMapSolver;
2845
3214
  /**
2846
- * Constructs a `GuMapSolver` from a `CsrGraph` using 1+2-hop pairs and DoG Varadhan landmarks.
3215
+ * Constructs a `GuMapSolver` from a `Graph` using 1+2-hop pairs and DoG Varadhan landmarks.
2847
3216
  */
2848
- static fromGraphDog(graph: CsrGraph, options?: GuMapDogOptions | null): GuMapSolver;
3217
+ static fromGraphDog(graph: Graph, options?: GuMapDogOptions | null): GuMapSolver;
2849
3218
  /**
2850
3219
  * Constructs a `GuMapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
2851
3220
  */
@@ -2853,11 +3222,11 @@ export class GuMapSolver {
2853
3222
  /**
2854
3223
  * Constructs a `GuMapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop priority CSR.
2855
3224
  */
2856
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options?: GuMapLandmarksOptions | null): GuMapSolver;
3225
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: GuMapLandmarksOptions | null): GuMapSolver;
2857
3226
  /**
2858
3227
  * Constructs a `GuMapSolver` from `graph` using 1+2-hop pairs and DoG Varadhan landmarks.
2859
3228
  */
2860
- constructor(graph: CsrGraph, options?: GuMapDogOptions | null);
3229
+ constructor(graph: Graph, options?: GuMapDogOptions | null);
2861
3230
  readonly a: number;
2862
3231
  readonly ab: Float64Array;
2863
3232
  readonly b: number;
@@ -2877,7 +3246,7 @@ export class GuMapSolver {
2877
3246
  export class Hde {
2878
3247
  free(): void;
2879
3248
  [Symbol.dispose](): void;
2880
- generate(graph: CsrGraph): Layout2d | Layout3d | LayoutNd;
3249
+ generate(graph: Graph): Layout2d | Layout3d | LayoutNd;
2881
3250
  constructor(options?: HdeOptions | null);
2882
3251
  }
2883
3252
 
@@ -2918,6 +3287,38 @@ export class HybridKnnResult {
2918
3287
  readonly nnz: number;
2919
3288
  }
2920
3289
 
3290
+ /**
3291
+ * Per-vertex hub-damping policy for `IbUmapSolver`.
3292
+ */
3293
+ export class IbUmapHubDamping {
3294
+ private constructor();
3295
+ free(): void;
3296
+ [Symbol.dispose](): void;
3297
+ /**
3298
+ * Explicit caller-supplied per-vertex hub damping factors `eta_i >= 0.0`.
3299
+ */
3300
+ static explicit(hubEta: Float64Array | number[]): IbUmapHubDamping;
3301
+ /**
3302
+ * Generalized inverse-degree power hub damping (`eta_i = max(deg(i), 1)^(-exponent)`).
3303
+ */
3304
+ static inverseDegreePower(exponent: number): IbUmapHubDamping;
3305
+ /**
3306
+ * Classic inverse-degree hub damping (`eta_i = 1 / max(deg(i), 1)`).
3307
+ */
3308
+ static inverseDegree(): IbUmapHubDamping;
3309
+ /**
3310
+ * Median-row-sum hub damping preserving unit step sizes on typical vertices.
3311
+ */
3312
+ static medianRowSum(): IbUmapHubDamping;
3313
+ /**
3314
+ * Disable hub damping (`eta_i = 1.0`).
3315
+ */
3316
+ static none(): IbUmapHubDamping;
3317
+ readonly exponent: number | undefined;
3318
+ readonly hubEta: Float64Array | undefined;
3319
+ readonly kind: string;
3320
+ }
3321
+
2921
3322
  /**
2922
3323
  * Cooperative interpolation-based batch Graph UMAP (`ibUMAP`) solver (`f32`, `layout2d`).
2923
3324
  */
@@ -2936,13 +3337,18 @@ export class IbUmapSolver {
2936
3337
  /**
2937
3338
  * Constructs an `IbUmapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop pairs.
2938
3339
  */
2939
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options?: IbUmapOptions | null): IbUmapSolver;
2940
- static fromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, max2hopPerNode?: number | null, options?: IbUmapOptions | null): IbUmapSolver;
3340
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: IbUmapOptions | null): IbUmapSolver;
3341
+ static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, max2hopPerNode?: number | null, options?: IbUmapOptions | null): IbUmapSolver;
2941
3342
  /**
2942
- * Constructs an `IbUmapSolver` from a `CsrGraph` using $O(|E|)$ 1+2-hop pairs and
3343
+ * Returns the effective per-vertex hub damping factors $\eta_i$ (`Float64Array`).
3344
+ */
3345
+ hubEta(): Float64Array;
3346
+ lastFftStats(): FieldFftStats | undefined;
3347
+ /**
3348
+ * Constructs an `IbUmapSolver` from a `Graph` using $O(|E|)$ 1+2-hop pairs and
2943
3349
  * regularized DoG Varadhan landmark ALT distances.
2944
3350
  */
2945
- constructor(graph: CsrGraph, options?: IbUmapOptions | null);
3351
+ constructor(graph: Graph, options?: IbUmapOptions | null);
2946
3352
  runSteps(layout: Layout2d, steps: number): SolverStatus;
2947
3353
  run(layout: Layout2d): SolverStatus;
2948
3354
  step(layout: Layout2d): SolverStatus;
@@ -3061,11 +3467,11 @@ export class KamadaKawaiSolver {
3061
3467
  /**
3062
3468
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
3063
3469
  */
3064
- static fromGraph(graph: CsrGraph, options?: KamadaKawaiOptions | null): KamadaKawaiSolver;
3470
+ static fromGraph(graph: Graph, options?: KamadaKawaiOptions | null): KamadaKawaiSolver;
3065
3471
  /**
3066
3472
  * Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
3067
3473
  */
3068
- constructor(graph: CsrGraph, options?: KamadaKawaiOptions | null);
3474
+ constructor(graph: Graph, options?: KamadaKawaiOptions | null);
3069
3475
  readonly isFinished: boolean;
3070
3476
  readonly iteration: number;
3071
3477
  readonly numNodes: number;
@@ -3114,7 +3520,7 @@ export class KnnGraph {
3114
3520
  export class KorenSpectral {
3115
3521
  free(): void;
3116
3522
  [Symbol.dispose](): void;
3117
- generate(graph: CsrGraph): Layout2d | Layout3d | LayoutNd;
3523
+ generate(graph: Graph): Layout2d | Layout3d | LayoutNd;
3118
3524
  constructor(options?: KorenSpectralGeneratorOptions | null);
3119
3525
  }
3120
3526
 
@@ -3192,7 +3598,7 @@ export class LargeVisSolver {
3192
3598
  /**
3193
3599
  * Constructs a `LargeVisSolver` from `graph` and `LargeVisOptions`.
3194
3600
  */
3195
- constructor(graph: CsrGraph, options?: LargeVisOptions | null);
3601
+ constructor(graph: Graph, options?: LargeVisOptions | null);
3196
3602
  readonly currentLr: number;
3197
3603
  readonly isFinished: boolean;
3198
3604
  readonly iteration: number;
@@ -3204,16 +3610,16 @@ export class LargeVisSolver {
3204
3610
  }
3205
3611
 
3206
3612
  /**
3207
- * Largest connected component result returned by `CsrGraph.largestConnectedComponent()`.
3613
+ * Largest connected component result returned by `Graph.largestConnectedComponent()`.
3208
3614
  */
3209
3615
  export class LargestConnectedComponentResult {
3210
3616
  private constructor();
3211
3617
  free(): void;
3212
3618
  [Symbol.dispose](): void;
3213
3619
  /**
3214
- * Returns a cloned handle to the induced `CsrGraph` of the largest connected component.
3620
+ * Returns a cloned handle to the induced `Graph` of the largest connected component.
3215
3621
  */
3216
- graph(): CsrGraph;
3622
+ graph(): Graph;
3217
3623
  /**
3218
3624
  * Alias for `originalNodeIds()`.
3219
3625
  */
@@ -3608,7 +4014,7 @@ export class LinLogSolver {
3608
4014
  /**
3609
4015
  * Constructs a `LinLogSolver` from `graph` and optional `LinLogOptions`.
3610
4016
  */
3611
- constructor(graph: CsrGraph, options?: LinLogOptions | null);
4017
+ constructor(graph: Graph, options?: LinLogOptions | null);
3612
4018
  readonly backend: ForceBackend;
3613
4019
  readonly isFinished: boolean;
3614
4020
  readonly iteration: number;
@@ -3749,7 +4155,7 @@ export class ManifoldLayout2d {
3749
4155
  */
3750
4156
  len(): number;
3751
4157
  /**
3752
- * Returns `{ scale, aspect }` metric parameters.
4158
+ * Returns `{ scale, aspect, poincareEps }` metric parameters.
3753
4159
  */
3754
4160
  metric(): ManifoldMetricRecord;
3755
4161
  /**
@@ -3784,6 +4190,10 @@ export class ManifoldLayout2d {
3784
4190
  * Sets the physical aspect ratio (`> 0`) without mutating stored coordinates.
3785
4191
  */
3786
4192
  setAspect(aspect: number): void;
4193
+ /**
4194
+ * Sets the Poincaré boundary clamp epsilon (`0 < eps < 0.5` in `f32`) without mutating coordinates.
4195
+ */
4196
+ setPoincareEps(eps: number): void;
3787
4197
  /**
3788
4198
  * Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
3789
4199
  */
@@ -3819,11 +4229,11 @@ export class ManifoldLayout2d {
3819
4229
  /**
3820
4230
  * Returns a rigidly panned `Torus2d` `ManifoldLayout2d` minimizing boundary-wrapped edges.
3821
4231
  */
3822
- torusAutoPan(graph: CsrGraph): ManifoldLayout2d;
4232
+ torusAutoPan(graph: Graph): ManifoldLayout2d;
3823
4233
  /**
3824
4234
  * Initializes a flat 2D torus layout via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
3825
4235
  */
3826
- static torusSpectralPhaseInit(graph: CsrGraph, seed?: number | bigint | null): ManifoldLayout2d;
4236
+ static torusSpectralPhaseInit(graph: Graph, seed?: number | bigint | null): ManifoldLayout2d;
3827
4237
  /**
3828
4238
  * Returns the first coordinate (`x` or `lon`) of vertex `index`.
3829
4239
  */
@@ -3848,6 +4258,10 @@ export class ManifoldLayout2d {
3848
4258
  * Returns the number of vertices in the manifold layout.
3849
4259
  */
3850
4260
  readonly numNodes: number;
4261
+ /**
4262
+ * Returns the Poincaré boundary clamp epsilon (`> 0` and `< 0.5`).
4263
+ */
4264
+ readonly poincareEps: number;
3851
4265
  /**
3852
4266
  * Returns the physical geodesic scale factor (`> 0`).
3853
4267
  */
@@ -3875,7 +4289,7 @@ export class MaxentStressSolver {
3875
4289
  /**
3876
4290
  * Constructs a `MaxentStressSolver` from `graph` and optional `MaxentStressOptions`.
3877
4291
  */
3878
- constructor(graph: CsrGraph, options?: MaxentStressOptions | null);
4292
+ constructor(graph: Graph, options?: MaxentStressOptions | null);
3879
4293
  readonly backend: ForceBackend;
3880
4294
  readonly currentAlpha: number;
3881
4295
  readonly effectiveQ: number;
@@ -3887,6 +4301,35 @@ export class MaxentStressSolver {
3887
4301
  readonly totalIterations: number | undefined;
3888
4302
  }
3889
4303
 
4304
+ /**
4305
+ * Distance weighting rule for `UnifiedMetricAnchor`.
4306
+ */
4307
+ export class MetricAnchorWeighting {
4308
+ private constructor();
4309
+ free(): void;
4310
+ [Symbol.dispose](): void;
4311
+ /**
4312
+ * Symmetric inverse-square distance weighting `w(d) = 1 / d^2`.
4313
+ */
4314
+ static balancedInvD2(): MetricAnchorWeighting;
4315
+ /**
4316
+ * Pure inverse-power distance weighting `w(d) = 1 / d^power` (`power > 0`).
4317
+ */
4318
+ static inversePower(power: number): MetricAnchorWeighting;
4319
+ /**
4320
+ * Smoothly distance-gated long-range metric weighting (`dGate >= 0`, `power > 0`).
4321
+ */
4322
+ static longRangeGated(d_gate: number, power: number): MetricAnchorWeighting;
4323
+ /**
4324
+ * Scale-adaptive distance-gated weighting (`medianFrac >= 0`, `power > 0`).
4325
+ */
4326
+ static relativeLongRangeGated(median_frac: number, power: number): MetricAnchorWeighting;
4327
+ readonly dGate: number | undefined;
4328
+ readonly kind: string;
4329
+ readonly medianFrac: number | undefined;
4330
+ readonly power: number | undefined;
4331
+ }
4332
+
3890
4333
  export type AnyLayout = Layout2d | Layout3d | LayoutNd | ManifoldLayout2d;
3891
4334
 
3892
4335
  /**
@@ -3921,7 +4364,7 @@ export interface IterativeSolver<TTarget = AnyLayout> {
3921
4364
  * One-shot deterministic layout generator interface.
3922
4365
  */
3923
4366
  export interface LayoutGenerator<TOutput = Layout2d> {
3924
- generate(graph?: CsrGraph): TOutput;
4367
+ generate(graph?: Graph): TOutput;
3925
4368
  }
3926
4369
 
3927
4370
  /**
@@ -3936,6 +4379,17 @@ export interface LayoutInitOptions {
3936
4379
  scale?: number | null;
3937
4380
  }
3938
4381
 
4382
+ export interface ArenaOctree3dOptions {
4383
+ maxDepth?: number | null;
4384
+ coincidentDistSq?: number | null;
4385
+ entropyMinDist?: number | null;
4386
+ traversalStackCap?: number | null;
4387
+ }
4388
+
4389
+ export interface DynamicKdTreeOptions {
4390
+ leafSize?: number | null;
4391
+ }
4392
+
3939
4393
  export interface GenerateWeightedGraphOptions {
3940
4394
  avgDegree?: number | null;
3941
4395
  minWeight?: number | null;
@@ -4077,6 +4531,8 @@ export interface ClusterAreaFaithfulnessOptions {
4077
4531
  tauFrac?: number | null;
4078
4532
  boundaryR95?: number | null;
4079
4533
  stevensGamma?: number | null;
4534
+ maxGridBins?: number | null;
4535
+ cohDominanceMin?: number | null;
4080
4536
  nodeWeights?: Float64Array | Float32Array | number[] | null;
4081
4537
  clusterWeights?: Float64Array | Float32Array | number[] | null;
4082
4538
  }
@@ -4133,6 +4589,10 @@ export interface MetricConfigOptions extends ClusterBaselineOptions {
4133
4589
  tauFrac?: number | null;
4134
4590
  boundaryR95?: number | null;
4135
4591
  stevensGamma?: number | null;
4592
+ proximityNumSectors?: number | null;
4593
+ distanceSymmetryTol?: number | null;
4594
+ maxGridBins?: number | null;
4595
+ cohDominanceMin?: number | null;
4136
4596
  nodeWeights?: Float64Array | Float32Array | number[] | null;
4137
4597
  clusterWeights?: Float64Array | Float32Array | number[] | null;
4138
4598
  clusterBaselines?: ClusterBaselineOptions | null;
@@ -4160,13 +4620,14 @@ export interface DatasetInfoRecord {
4160
4620
  }
4161
4621
 
4162
4622
  export interface SbmGraphResult {
4163
- graph: CsrGraph;
4623
+ graph: Graph;
4164
4624
  labels: Uint32Array;
4165
4625
  }
4166
4626
 
4167
4627
  export interface ManifoldMetricRecord {
4168
4628
  scale: number;
4169
4629
  aspect: number;
4630
+ poincareEps: number;
4170
4631
  }
4171
4632
 
4172
4633
  export type SpectralFilterTerm = [number, number];
@@ -4419,24 +4880,24 @@ export class PacmapGraphSolver {
4419
4880
  /**
4420
4881
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
4421
4882
  */
4422
- static fromGraph(graph: CsrGraph, options?: PacmapGraphOptions | null): PacmapGraphSolver;
4883
+ static fromGraph(graph: Graph, options?: PacmapGraphOptions | null): PacmapGraphSolver;
4423
4884
  /**
4424
4885
  * Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
4425
4886
  */
4426
- constructor(graph: CsrGraph, options?: PacmapGraphOptions | null);
4887
+ constructor(graph: Graph, options?: PacmapGraphOptions | null);
4427
4888
  /**
4428
4889
  * Initializes an area-reserved coarse backbone `Layout2d` (`f32`) together with a configured
4429
4890
  * `PacmapGraphSolver` for end-to-end multilevel layout.
4430
4891
  */
4431
- static withBackbone(graph: CsrGraph, options?: PacmapBackboneOptions | null): PacmapBackboneResult;
4892
+ static withBackbone(graph: Graph, options?: PacmapBackboneOptions | null): PacmapBackboneResult;
4432
4893
  /**
4433
4894
  * Constructs a `PacmapGraphSolver` from a flat row-major `(numNodes, numLandmarks)` distance table.
4434
4895
  */
4435
- static withLandmarkDistances(graph: CsrGraph, landmarkDistances: Float64Array | number[], numLandmarks: number, options?: PacmapGraphOptions | null): PacmapGraphSolver;
4896
+ static withLandmarkDistances(graph: Graph, landmarkDistances: Float64Array | number[], numLandmarks: number, options?: PacmapGraphOptions | null): PacmapGraphSolver;
4436
4897
  /**
4437
4898
  * Constructs a `PacmapGraphSolver` reusing precomputed `DogVaradhanLandmarks`.
4438
4899
  */
4439
- static withLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options?: PacmapGraphOptions | null): PacmapGraphSolver;
4900
+ static withLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: PacmapGraphOptions | null): PacmapGraphSolver;
4440
4901
  readonly isFinished: boolean;
4441
4902
  readonly iteration: number;
4442
4903
  readonly numHinges: number;
@@ -4497,10 +4958,54 @@ export class PfsPrimeOverlapRemoval {
4497
4958
  export class PivotMds {
4498
4959
  free(): void;
4499
4960
  [Symbol.dispose](): void;
4500
- generate(graph: CsrGraph): Layout2d | Layout3d | LayoutNd;
4961
+ generate(graph?: Graph | null): Layout2d | Layout3d | LayoutNd;
4962
+ generateWithReport(graph?: Graph | null): PivotMdsReportResult;
4963
+ /**
4964
+ * Constructs a `PivotMds` generator from a flat pivot-major `(numPivots * numNodes)`
4965
+ * distance buffer (`Float64Array`, `Uint32Array`, `Uint16Array`, `Uint8Array`, or `number[]`).
4966
+ */
4967
+ static fromPivotDistances(pivotDistancesKn: PivotDistanceArrayLike, numNodes: number, numPivots: number, options?: PivotMdsFromDistancesOptions | null): PivotMds;
4501
4968
  constructor(options?: PivotMdsGeneratorOptions | null);
4502
4969
  }
4503
4970
 
4971
+ /**
4972
+ * Spectral summary returned by `PivotMds.generateWithReport()`.
4973
+ */
4974
+ export class PivotMdsReport {
4975
+ private constructor();
4976
+ free(): void;
4977
+ [Symbol.dispose](): void;
4978
+ /**
4979
+ * Returns descending Gram-matrix eigenvalues of $C^T C$ (`Float64Array`).
4980
+ */
4981
+ eigenvalues(): Float64Array;
4982
+ /**
4983
+ * Returns the fraction of positive Gram-matrix variance explained by the top `dims` modes.
4984
+ */
4985
+ explainedVarianceRatio(dims: number): number;
4986
+ /**
4987
+ * Returns the 2D spectral metric embeddability ratio $\rho_{2\mathrm{D}} \in [0, 1]$.
4988
+ */
4989
+ readonly embeddability2d: number;
4990
+ }
4991
+
4992
+ /**
4993
+ * Combined layout and spectral report returned by `PivotMds.generateWithReport()`.
4994
+ */
4995
+ export class PivotMdsReportResult {
4996
+ private constructor();
4997
+ free(): void;
4998
+ [Symbol.dispose](): void;
4999
+ /**
5000
+ * Returns the generated `Layout2d`, `Layout3d`, or `LayoutNd`.
5001
+ */
5002
+ layout(): Layout2d | Layout3d | LayoutNd;
5003
+ /**
5004
+ * Returns the spectral `PivotMdsReport`.
5005
+ */
5006
+ report(): PivotMdsReport;
5007
+ }
5008
+
4504
5009
  /**
4505
5010
  * PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
4506
5011
  */
@@ -4577,13 +5082,19 @@ export class PrismOverlapRemoval {
4577
5082
  }
4578
5083
 
4579
5084
  /**
4580
- * Resistance-distance MDS (`RdMds`) `LayoutGenerator` supporting
4581
- * `"layout2d"`, `"layout3d"`, and `"layoutNd"`.
5085
+ * Resistance-Distance MDS (`RdMds`, Onoue 2026) `LayoutGenerator` supporting
5086
+ * `TargetKind.Layout2d`, `TargetKind.Layout3d`, and `TargetKind.LayoutNd`.
4582
5087
  */
4583
5088
  export class RdMds {
4584
5089
  free(): void;
4585
5090
  [Symbol.dispose](): void;
4586
- generate(graph: CsrGraph): Layout2d | Layout3d | LayoutNd;
5091
+ generate(graph?: Graph | null): Layout2d | Layout3d | LayoutNd;
5092
+ /**
5093
+ * Constructs an `RdMds` generator from precomputed smallest nontrivial symmetric-Laplacian
5094
+ * eigenpairs `(lambdas, vectors, invSqrtDeg?, options?)`.
5095
+ */
5096
+ static fromEigenpairs(lambdas: Float64Array | Float32Array | number[], vectors: Float64Array | Float32Array | number[], options?: RdMdsFromEigenpairsOptions | null): RdMds;
5097
+ static fromEigenpairs(lambdas: Float64Array | Float32Array | number[], vectors: Float64Array | Float32Array | number[], invSqrtDeg?: Float64Array | Float32Array | number[] | null, options?: RdMdsFromEigenpairsOptions | null): RdMds;
4587
5098
  constructor(options?: RdMdsGeneratorOptions | null);
4588
5099
  }
4589
5100
 
@@ -4595,9 +5106,9 @@ export class ResistanceCurvatureFlowResult {
4595
5106
  free(): void;
4596
5107
  [Symbol.dispose](): void;
4597
5108
  /**
4598
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final conductances `w_e = 1 / l_e`.
5109
+ * Builds a weighted undirected `Graph` (`f32`) storing final conductances `w_e = 1 / l_e`.
4599
5110
  */
4600
- conductanceGraph(): CsrGraph;
5111
+ conductanceGraph(): Graph;
4601
5112
  /**
4602
5113
  * Returns final edge conductances `w_e = 1 / l_e` (`Float64Array`).
4603
5114
  */
@@ -4619,9 +5130,9 @@ export class ResistanceCurvatureFlowResult {
4619
5130
  */
4620
5131
  effectiveResistances(): Float64Array;
4621
5132
  /**
4622
- * Builds a weighted undirected `CsrGraph` (`f32`) storing final edge lengths `l_e`.
5133
+ * Builds a weighted undirected `Graph` (`f32`) storing final edge lengths `l_e`.
4623
5134
  */
4624
- lengthGraph(): CsrGraph;
5135
+ lengthGraph(): Graph;
4625
5136
  /**
4626
5137
  * Returns final link resistance curvatures `kappa_res(u, v)` (`Float64Array`).
4627
5138
  */
@@ -4894,7 +5405,7 @@ export class ScreenedPoissonRefiner {
4894
5405
  /**
4895
5406
  * Creates a `ScreenedPoissonRefiner` retaining 1-hop edges from `graph` for optional anchors.
4896
5407
  */
4897
- static fromGraph(graph: CsrGraph, options?: ScreenedPoissonRefinerOptions | null): ScreenedPoissonRefiner;
5408
+ static fromGraph(graph: Graph, options?: ScreenedPoissonRefinerOptions | null): ScreenedPoissonRefiner;
4898
5409
  /**
4899
5410
  * Returns telemetry from the most recent density field evaluation.
4900
5411
  */
@@ -5031,7 +5542,7 @@ export class SelLayoutSolver {
5031
5542
  /**
5032
5543
  * Constructs a `SelLayoutSolver` from `graph` and optional `SelOptions`.
5033
5544
  */
5034
- constructor(graph: CsrGraph, options?: SelOptions | null);
5545
+ constructor(graph: Graph, options?: SelOptions | null);
5035
5546
  /**
5036
5547
  * Executes up to `steps` SEL layout iterations on `layout` in place.
5037
5548
  */
@@ -5126,7 +5637,7 @@ export class SfcLayout {
5126
5637
  /**
5127
5638
  * Constructs an `SfcLayout` generator from `graph` and optional `SfcOptions`.
5128
5639
  */
5129
- constructor(graph: CsrGraph, options?: SfcOptions | null);
5640
+ constructor(graph: Graph, options?: SfcOptions | null);
5130
5641
  /**
5131
5642
  * Returns the deterministic community-ordered vertex permutation (`Uint32Array`).
5132
5643
  */
@@ -5166,17 +5677,21 @@ export class Sgd2Solver {
5166
5677
  /**
5167
5678
  * Constructs a preconditioned mini-batch stress SGD solver from `graph` and `Sgd2Options`.
5168
5679
  */
5169
- constructor(graph: CsrGraph, options?: Sgd2Options | null);
5680
+ constructor(graph: Graph, options?: Sgd2Options | null);
5170
5681
  /**
5171
5682
  * Resets the iteration schedule and RNG without reallocating stored pair buffers.
5172
5683
  */
5173
5684
  resetSchedule(options?: SgdScheduleOptions | null): void;
5685
+ readonly batchSize: number;
5174
5686
  readonly currentEta: number;
5687
+ readonly damping: number;
5688
+ readonly eps: number;
5175
5689
  readonly isFinished: boolean;
5176
5690
  readonly iteration: number;
5177
5691
  readonly numNodes: number;
5178
5692
  readonly numSprings: number;
5179
5693
  readonly status: SolverStatus;
5694
+ readonly stepScale: number;
5180
5695
  readonly target: TargetKind;
5181
5696
  readonly totalIterations: number | undefined;
5182
5697
  }
@@ -5292,23 +5807,32 @@ export class SgdSolver {
5292
5807
  /**
5293
5808
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
5294
5809
  */
5295
- static full(graph: CsrGraph, options?: SgdScheduleOptions | null): SgdSolver;
5810
+ static full(graph: Graph, options?: SgdScheduleOptions | null): SgdSolver;
5296
5811
  /**
5297
5812
  * Constructs a full all-pairs shortest-path SGD solver from `graph`.
5298
5813
  */
5299
- constructor(graph: CsrGraph, options?: SgdScheduleOptions | null);
5814
+ constructor(graph: Graph, options?: SgdScheduleOptions | null);
5300
5815
  /**
5301
- * Constructs an Omega SGD solver from a flat row-major `(numNodes, dims)` spectral embedding.
5816
+ * Constructs an Onoue (2026) Omega resistance-distance SGD solver combining 1-hop edges with
5817
+ * `k` randomly sampled partner pairs per node using Euclidean distances in a flat row-major
5818
+ * `(numNodes, dims)` spectral embedding.
5302
5819
  */
5303
- static omega(graph: CsrGraph, embedding: Float64Array | number[], dims: number, options?: OmegaSgdOptions | null): SgdSolver;
5820
+ static omega(graph: Graph, embedding: Float64Array | number[], dims: number, options?: OmegaSgdOptions | null): SgdSolver;
5821
+ /**
5822
+ * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver from preselected `pivots`
5823
+ * and a precomputed pivot-major `(pivots.length * numNodes)` distance buffer
5824
+ * (`Float64Array`/`Uint32Array`/`Uint16Array`/`Uint8Array`/`number[]`).
5825
+ */
5826
+ static ortmannSparseStressFromPivots(graph: Graph, pivots: Uint32Array | number[], pivotDistancesKn: PivotDistanceArrayLike, options?: OrtmannFromPivotsOptions | null): SgdSolver;
5304
5827
  /**
5305
5828
  * Constructs an Ortmann et al. (2016) Sparse Stress SGD solver.
5306
5829
  */
5307
- static ortmannSparseStress(graph: CsrGraph, options?: OrtmannSparseStressOptions | null): SgdSolver;
5830
+ static ortmannSparseStress(graph: Graph, options?: OrtmannSparseStressOptions | null): SgdSolver;
5308
5831
  /**
5309
- * Constructs a random-pair sparse SGD solver combining 1-hop edges with sampled random pairs.
5832
+ * Constructs an Onoue (2026) random-pair sparse stress SGD solver combining 1-hop edges with
5833
+ * sampled random pairs using exact shortest-path distances.
5310
5834
  */
5311
- static randomPair(graph: CsrGraph, options?: RandomPairSgdOptions | null): SgdSolver;
5835
+ static randomPair(graph: Graph, options?: RandomPairSgdOptions | null): SgdSolver;
5312
5836
  /**
5313
5837
  * Resets the SGD learning-rate schedule and RNG without reallocating stored pair buffers.
5314
5838
  */
@@ -5316,11 +5840,11 @@ export class SgdSolver {
5316
5840
  /**
5317
5841
  * Computes regularized Chebyshev DoG Varadhan landmarks and constructs a 3-tier Sparse Barrier SGD solver.
5318
5842
  */
5319
- static sparseBarrierDog(graph: CsrGraph, options?: SparseBarrierDogOptions | null): SgdSolver;
5843
+ static sparseBarrierDog(graph: Graph, options?: SparseBarrierDogOptions | null): SgdSolver;
5320
5844
  /**
5321
5845
  * Constructs a 3-tier Sparse Barrier SGD solver from precomputed `DogVaradhanLandmarks`.
5322
5846
  */
5323
- static sparseBarrierFromLandmarks(graph: CsrGraph, landmarks: DogVaradhanLandmarks, options?: SparseBarrierOptions | null): SgdSolver;
5847
+ static sparseBarrierFromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: SparseBarrierOptions | null): SgdSolver;
5324
5848
  /**
5325
5849
  * Returns `SparseBarrierStats` when constructed via `sparseBarrierFromLandmarks` or
5326
5850
  * `sparseBarrierDog`, or `undefined` otherwise.
@@ -5329,7 +5853,7 @@ export class SgdSolver {
5329
5853
  /**
5330
5854
  * Constructs a minimal-RAM SGD solver storing 1-hop springs and streaming non-edge negatives.
5331
5855
  */
5332
- static streamingNegatives(graph: CsrGraph, options?: StreamingNegativeOptions | null): SgdSolver;
5856
+ static streamingNegatives(graph: Graph, options?: StreamingNegativeOptions | null): SgdSolver;
5333
5857
  /**
5334
5858
  * Returns the learning rate `eta` for the upcoming iteration (`0.0` once finished).
5335
5859
  */
@@ -5400,7 +5924,7 @@ export class SnapTFdpSolver {
5400
5924
  /**
5401
5925
  * Constructs a `SnapTFdpSolver` from `graph` and `SnapTFdpOptions`.
5402
5926
  */
5403
- constructor(graph: CsrGraph, options?: SnapTFdpOptions | null);
5927
+ constructor(graph: Graph, options?: SnapTFdpOptions | null);
5404
5928
  readonly isFinished: boolean;
5405
5929
  readonly iteration: number;
5406
5930
  readonly numNodes: number;
@@ -5545,7 +6069,7 @@ export class SpatialIntruderRefiner {
5545
6069
  /**
5546
6070
  * Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
5547
6071
  */
5548
- constructor(graph: CsrGraph, options?: SpatialRefinerOptions | null);
6072
+ constructor(graph: Graph, options?: SpatialRefinerOptions | null);
5549
6073
  /**
5550
6074
  * Executes up to `steps` refinement rounds on `layout` in place.
5551
6075
  */
@@ -5837,7 +6361,7 @@ export enum StressMajorizationBackend {
5837
6361
  }
5838
6362
 
5839
6363
  /**
5840
- * Cooperative Gansner-Koren-North (2004) Stress Majorization layout solver (`f32`)
6364
+ * Cooperative Gansner, Koren, & North (2005) Stress Majorization layout solver (`f32`)
5841
6365
  * across `Layout2d`, `Layout3d`, `LayoutNd`, and `ManifoldLayout2d`.
5842
6366
  */
5843
6367
  export class StressMajorizationSolver {
@@ -5870,11 +6394,11 @@ export class StressMajorizationSolver {
5870
6394
  /**
5871
6395
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
5872
6396
  */
5873
- static fromGraph(graph: CsrGraph, options?: StressMajorizationOptions | null): StressMajorizationSolver;
6397
+ static fromGraph(graph: Graph, options?: StressMajorizationOptions | null): StressMajorizationSolver;
5874
6398
  /**
5875
6399
  * Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
5876
6400
  */
5877
- constructor(graph: CsrGraph, options?: StressMajorizationOptions | null);
6401
+ constructor(graph: Graph, options?: StressMajorizationOptions | null);
5878
6402
  readonly backend: StressMajorizationBackend;
5879
6403
  readonly isFinished: boolean;
5880
6404
  readonly iteration: number;
@@ -5920,10 +6444,11 @@ export class TFdpSolver {
5920
6444
  */
5921
6445
  static fromKnn(knn: KnnGraph, options?: TFdpOptions | null): TFdpSolver;
5922
6446
  static fromKnn(indptr: Uint32Array | number[], indices: Uint32Array | number[], weightsOrOptions?: Float64Array | Float32Array | number[] | TFdpOptions | null, options?: TFdpOptions | null): TFdpSolver;
6447
+ lastFftStats(): FieldFftStats | undefined;
5923
6448
  /**
5924
- * Constructs a `TFdpSolver` directly from a `CsrGraph`.
6449
+ * Constructs a `TFdpSolver` directly from a `Graph`.
5925
6450
  */
5926
- constructor(graph: CsrGraph, options?: TFdpOptions | null);
6451
+ constructor(graph: Graph, options?: TFdpOptions | null);
5927
6452
  readonly backend: FieldRepulsionBackend;
5928
6453
  readonly currentRho: number;
5929
6454
  readonly isFinished: boolean;
@@ -5991,6 +6516,7 @@ export enum TsNetBackend {
5991
6516
  export class TsNetSolver {
5992
6517
  free(): void;
5993
6518
  [Symbol.dispose](): void;
6519
+ static fromProbabilitiesWithConformal(probs: SparseProbabilities, stages: readonly (TsNetStage | TsNetStageOptions)[], edgeTether?: Float32Array | Float64Array | number[] | null, metricAnchor?: UnifiedMetricAnchor | null, options?: TsNetOptions | null): TsNetSolver;
5994
6520
  _run2d(layout: Layout2d): SolverStatus;
5995
6521
  _run3d(layout: Layout3d): SolverStatus;
5996
6522
  _runManifold(layout: ManifoldLayout2d): SolverStatus;
@@ -6006,13 +6532,13 @@ export class TsNetSolver {
6006
6532
  _step3d(layout: Layout3d): SolverStatus;
6007
6533
  _stepManifold(layout: ManifoldLayout2d): SolverStatus;
6008
6534
  _stepNd(layout: LayoutNd): SolverStatus;
6009
- static fromGraphPartialBfs(graph: CsrGraph, options?: TsNetPartialBfsOptions | null): TsNetSolver;
6535
+ static fromGraphPartialBfs(graph: Graph, options?: TsNetPartialBfsOptions | null): TsNetSolver;
6010
6536
  /**
6011
6537
  * Constructs a `TsNetSolver` from `graph` using direct row-normalized `A1 + w2 * A2`
6012
6538
  * affinity with configurable 2-hop sampling `mode` and optional `maxBridgeDegree`.
6013
6539
  */
6014
- static fromGraphRowNormalizedWithOptions(graph: CsrGraph, options?: TsNetRowNormalizedOptions | null): TsNetSolver;
6015
- static fromGraphRowNormalized(graph: CsrGraph, options?: TsNetRowNormalizedOptions | null): TsNetSolver;
6540
+ static fromGraphRowNormalizedWithOptions(graph: Graph, options?: TsNetRowNormalizedOptions | null): TsNetSolver;
6541
+ static fromGraphRowNormalized(graph: Graph, options?: TsNetRowNormalizedOptions | null): TsNetSolver;
6016
6542
  static fromKnn(knn: KnnGraph, options?: TsNetKnnOptions | null): TsNetSolver;
6017
6543
  /**
6018
6544
  * Constructs a `TsNetSolver` from precomputed symmetric `SparseProbabilities` and explicit `stages`.
@@ -6020,8 +6546,8 @@ export class TsNetSolver {
6020
6546
  static fromProbabilitiesWithStages(probs: SparseProbabilities, stages: readonly (TsNetStage | TsNetStageOptions)[], options?: TsNetOptions | null): TsNetSolver;
6021
6547
  static fromProbabilities(probs: SparseProbabilities, options?: TsNetOptions | null): TsNetSolver;
6022
6548
  lastFftStats(): FitFieldStats | undefined;
6023
- constructor(graph: CsrGraph, options?: TsNetOptions | null);
6024
- static pure2Hop(graph: CsrGraph, options?: TsNetOptions | null): TsNetSolver;
6549
+ constructor(graph: Graph, options?: TsNetOptions | null);
6550
+ static pure2Hop(graph: Graph, options?: TsNetOptions | null): TsNetSolver;
6025
6551
  readonly backend: TsNetBackend;
6026
6552
  readonly currentStageLr: number;
6027
6553
  readonly isFinished: boolean;
@@ -6046,11 +6572,15 @@ export class TsNetStage {
6046
6572
  * Constructs a validated `TsNetStage` from `(iterations, options?)` or `{ iterations, ... }`.
6047
6573
  */
6048
6574
  constructor(iterationsOrOptions: number | TsNetStageOptions, options?: TsNetStageOptions | null);
6575
+ readonly coercive1hop: number;
6049
6576
  readonly exaggeration: number;
6050
6577
  readonly iterations: number;
6051
6578
  readonly lambdaC: number;
6052
6579
  readonly lambdaKl: number;
6580
+ readonly lambdaMetric: number;
6053
6581
  readonly lambdaR: number;
6582
+ readonly spring1hop: number;
6583
+ readonly springDeadzone: number;
6054
6584
  }
6055
6585
 
6056
6586
  /**
@@ -6080,13 +6610,13 @@ export class TwoHopCsr {
6080
6610
  free(): void;
6081
6611
  [Symbol.dispose](): void;
6082
6612
  /**
6083
- * Returns a cloned handle to the canonical unweighted 1-hop `CsrGraph`.
6613
+ * Returns a cloned handle to the canonical unweighted 1-hop `Graph`.
6084
6614
  */
6085
- hop1(): CsrGraph;
6615
+ hop1(): Graph;
6086
6616
  /**
6087
- * Returns a cloned handle to the disjoint pure 2-hop `CsrGraph`.
6617
+ * Returns a cloned handle to the disjoint pure 2-hop `Graph`.
6088
6618
  */
6089
- hop2(): CsrGraph;
6619
+ hop2(): Graph;
6090
6620
  }
6091
6621
 
6092
6622
  /**
@@ -6139,7 +6669,45 @@ export enum TwoHopSamplingMode {
6139
6669
  }
6140
6670
 
6141
6671
  /**
6142
- * r" Scalar edge-weight storage precision supported by WebAssembly `CsrGraph`.
6672
+ * Persistent scale-aligned global metric skeleton anchor for conformal `TsNetSolver`.
6673
+ */
6674
+ export class UnifiedMetricAnchor {
6675
+ private constructor();
6676
+ free(): void;
6677
+ [Symbol.dispose](): void;
6678
+ /**
6679
+ * Builds a `UnifiedMetricAnchor` from a flat row-major `(numNodes, dim)` continuous embedding.
6680
+ */
6681
+ static fromEmbeddingPivots(embeddingRowMajor: Float64Array | number[], numNodes: number, dim: number, pivots: Uint32Array | number[], options?: MetricAnchorEmbeddingOptions | null): UnifiedMetricAnchor;
6682
+ /**
6683
+ * Builds a `UnifiedMetricAnchor` from floating-point shortest-path pivot distances (`Infinity` unreachable).
6684
+ */
6685
+ static fromF64Pivots(numNodes: number, pivots: Uint32Array | number[], pivotDistances: Float64Array | Float32Array | number[], options?: MetricAnchorOptions | null): UnifiedMetricAnchor;
6686
+ /**
6687
+ * Builds a `UnifiedMetricAnchor` from integer hop-distance pivot rows (`Uint32Array`/`Uint16Array`/`Uint8Array`).
6688
+ */
6689
+ static fromHopPivots(numNodes: number, pivots: Uint32Array | number[], pivotDistances: HopDistanceArrayLike, options?: MetricAnchorOptions | null): UnifiedMetricAnchor;
6690
+ /**
6691
+ * Returns the flat pivot-major ideal distances (`Float32Array`, `<= 0.0` inactive).
6692
+ */
6693
+ pivotDistances(): Float32Array;
6694
+ /**
6695
+ * Returns the selected anchor pivot vertex indices (`Uint32Array`).
6696
+ */
6697
+ pivots(): Uint32Array;
6698
+ /**
6699
+ * Returns the flat pivot-major normalized anchor weights (`Float32Array`).
6700
+ */
6701
+ weights(): Float32Array;
6702
+ readonly activeFraction: number;
6703
+ readonly numNodes: number;
6704
+ readonly scaleAlpha: number;
6705
+ readonly softEps: number;
6706
+ readonly sumWd2: number;
6707
+ }
6708
+
6709
+ /**
6710
+ * r" Scalar edge-weight storage precision supported by WebAssembly `Graph`.
6143
6711
  */
6144
6712
  export enum WeightDtype {
6145
6713
  Float32 = 0,
@@ -6166,7 +6734,7 @@ export class YifanHuSolver {
6166
6734
  /**
6167
6735
  * Constructs a `YifanHuSolver` from `graph` and optional `YifanHuOptions`.
6168
6736
  */
6169
- constructor(graph: CsrGraph, options?: YifanHuOptions | null);
6737
+ constructor(graph: Graph, options?: YifanHuOptions | null);
6170
6738
  readonly backend: ForceBackend;
6171
6739
  readonly currentLevel: number;
6172
6740
  readonly isFinished: boolean;
@@ -6205,12 +6773,12 @@ export function _cqKmeansNd(layout: LayoutNd, labels: Uint32Array | number[], op
6205
6773
  /**
6206
6774
  * Finds all crossing edge sub-segment pairs on the unit torus `[0, 1)^2` for `Layout2d`.
6207
6775
  */
6208
- export function _crossingEdgesTorus2d(graph: CsrGraph, layout: Layout2d): TorusCrossing[];
6776
+ export function _crossingEdgesTorus2d(graph: Graph, layout: Layout2d): TorusCrossing[];
6209
6777
 
6210
6778
  /**
6211
6779
  * Finds all crossing edge sub-segment pairs on the flat torus for `ManifoldLayout2d` (`torus2d`).
6212
6780
  */
6213
- export function _crossingEdgesTorusManifold(graph: CsrGraph, layout: ManifoldLayout2d): TorusCrossing[];
6781
+ export function _crossingEdgesTorusManifold(graph: Graph, layout: ManifoldLayout2d): TorusCrossing[];
6214
6782
 
6215
6783
  export function _daviesBouldinScore2d(layout: Layout2d, labels: Uint32Array | number[]): number;
6216
6784
 
@@ -6223,13 +6791,13 @@ export function _daviesBouldinScoreNd(layout: LayoutNd, labels: Uint32Array | nu
6223
6791
  /**
6224
6792
  * Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
6225
6793
  */
6226
- export function _dggPreservation2d(graph: CsrGraph, layout: Layout2d): number;
6794
+ export function _dggPreservation2d(graph: Graph, layout: Layout2d): number;
6227
6795
 
6228
- export function _dggPreservation3d(graph: CsrGraph, layout: Layout3d): number;
6796
+ export function _dggPreservation3d(graph: Graph, layout: Layout3d): number;
6229
6797
 
6230
- export function _dggPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
6798
+ export function _dggPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
6231
6799
 
6232
- export function _dggPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
6800
+ export function _dggPreservationNd(graph: Graph, layout: LayoutNd): number;
6233
6801
 
6234
6802
  export function _distanceConsistency2d(layout: Layout2d, labels: Uint32Array | number[]): number;
6235
6803
 
@@ -6250,38 +6818,38 @@ export function _distributionConsistencyNd(layout: LayoutNd, labels: Uint32Array
6250
6818
  /**
6251
6819
  * Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
6252
6820
  */
6253
- export function _drngPreservation2d(graph: CsrGraph, layout: Layout2d): number;
6821
+ export function _drngPreservation2d(graph: Graph, layout: Layout2d): number;
6254
6822
 
6255
- export function _drngPreservation3d(graph: CsrGraph, layout: Layout3d): number;
6823
+ export function _drngPreservation3d(graph: Graph, layout: Layout3d): number;
6256
6824
 
6257
- export function _drngPreservationManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
6825
+ export function _drngPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
6258
6826
 
6259
- export function _drngPreservationNd(graph: CsrGraph, layout: LayoutNd): number;
6827
+ export function _drngPreservationNd(graph: Graph, layout: LayoutNd): number;
6260
6828
 
6261
6829
  /**
6262
6830
  * Selectively evaluates quality metrics on `Layout2d` without an `originalLayout`.
6263
6831
  */
6264
- export function _evaluateMetrics2d(graph: CsrGraph, layout: Layout2d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6832
+ export function _evaluateMetrics2d(graph: Graph, layout: Layout2d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6265
6833
 
6266
6834
  /**
6267
6835
  * Selectively evaluates quality metrics on `Layout2d` with a reference `originalLayout`.
6268
6836
  */
6269
- export function _evaluateMetrics2dWithOriginal(graph: CsrGraph, layout: Layout2d, targets: readonly MetricTarget[], options: MetricConfigOptions | null | undefined, originalLayout: Layout2d): MetricReport;
6837
+ export function _evaluateMetrics2dWithOriginal(graph: Graph, layout: Layout2d, targets: readonly MetricTarget[], options: MetricConfigOptions | null | undefined, originalLayout: Layout2d): MetricReport;
6270
6838
 
6271
6839
  /**
6272
6840
  * Selectively evaluates quality metrics on `Layout3d`, skipping unrequested work.
6273
6841
  */
6274
- export function _evaluateMetrics3d(graph: CsrGraph, layout: Layout3d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6842
+ export function _evaluateMetrics3d(graph: Graph, layout: Layout3d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6275
6843
 
6276
6844
  /**
6277
6845
  * Selectively evaluates quality metrics on `ManifoldLayout2d`, skipping unrequested work.
6278
6846
  */
6279
- export function _evaluateMetricsManifold(graph: CsrGraph, layout: ManifoldLayout2d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6847
+ export function _evaluateMetricsManifold(graph: Graph, layout: ManifoldLayout2d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6280
6848
 
6281
6849
  /**
6282
6850
  * Selectively evaluates quality metrics on `LayoutNd`, skipping unrequested work.
6283
6851
  */
6284
- export function _evaluateMetricsNd(graph: CsrGraph, layout: LayoutNd, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6852
+ export function _evaluateMetricsNd(graph: Graph, layout: LayoutNd, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
6285
6853
 
6286
6854
  /**
6287
6855
  * Extracts exact undirected Gabriel Graph (`GG`) edges as flat `[u0, v0, ...]` (`Uint32Array`).
@@ -6297,47 +6865,47 @@ export function _gabrielGraphEdgesNd(layout: LayoutNd): Uint32Array;
6297
6865
  /**
6298
6866
  * Computes Gabriel graph condition violations across `graph` edges under `layout`.
6299
6867
  */
6300
- export function _gabrielGraphProperty2d(graph: CsrGraph, layout: Layout2d): number;
6868
+ export function _gabrielGraphProperty2d(graph: Graph, layout: Layout2d): number;
6301
6869
 
6302
- export function _gabrielGraphProperty3d(graph: CsrGraph, layout: Layout3d): number;
6870
+ export function _gabrielGraphProperty3d(graph: Graph, layout: Layout3d): number;
6303
6871
 
6304
- export function _gabrielGraphPropertyManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
6872
+ export function _gabrielGraphPropertyManifold(graph: Graph, layout: ManifoldLayout2d): number;
6305
6873
 
6306
- export function _gabrielGraphPropertyNd(graph: CsrGraph, layout: LayoutNd): number;
6874
+ export function _gabrielGraphPropertyNd(graph: Graph, layout: LayoutNd): number;
6307
6875
 
6308
6876
  /**
6309
6877
  * Evaluates ideal edge-length preservation error sum for `graph` under `layout`.
6310
6878
  */
6311
- export function _idealEdgeLengths2d(graph: CsrGraph, layout: Layout2d): number;
6879
+ export function _idealEdgeLengths2d(graph: Graph, layout: Layout2d): number;
6312
6880
 
6313
- export function _idealEdgeLengths3d(graph: CsrGraph, layout: Layout3d): number;
6881
+ export function _idealEdgeLengths3d(graph: Graph, layout: Layout3d): number;
6314
6882
 
6315
- export function _idealEdgeLengthsManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
6883
+ export function _idealEdgeLengthsManifold(graph: Graph, layout: ManifoldLayout2d): number;
6316
6884
 
6317
- export function _idealEdgeLengthsNd(graph: CsrGraph, layout: LayoutNd): number;
6885
+ export function _idealEdgeLengthsNd(graph: Graph, layout: LayoutNd): number;
6318
6886
 
6319
6887
  /**
6320
6888
  * Evaluates ideal edge-length preservation error against a uniform `unitEdgeLength > 0`.
6321
6889
  */
6322
- export function _idealEdgeLengthsWithUnit2d(graph: CsrGraph, layout: Layout2d, unit_edge_length: number): number;
6890
+ export function _idealEdgeLengthsWithUnit2d(graph: Graph, layout: Layout2d, unit_edge_length: number): number;
6323
6891
 
6324
- export function _idealEdgeLengthsWithUnit3d(graph: CsrGraph, layout: Layout3d, unit_edge_length: number): number;
6892
+ export function _idealEdgeLengthsWithUnit3d(graph: Graph, layout: Layout3d, unit_edge_length: number): number;
6325
6893
 
6326
- export function _idealEdgeLengthsWithUnitManifold(graph: CsrGraph, layout: ManifoldLayout2d, unit_edge_length: number): number;
6894
+ export function _idealEdgeLengthsWithUnitManifold(graph: Graph, layout: ManifoldLayout2d, unit_edge_length: number): number;
6327
6895
 
6328
- export function _idealEdgeLengthsWithUnitNd(graph: CsrGraph, layout: LayoutNd, unit_edge_length: number): number;
6896
+ export function _idealEdgeLengthsWithUnitNd(graph: Graph, layout: LayoutNd, unit_edge_length: number): number;
6329
6897
 
6330
- export function _landmarkStratifiedRta2d(graph: CsrGraph, layout: Layout2d, options?: RtaOptions | null): number;
6898
+ export function _landmarkStratifiedRta2d(graph: Graph, layout: Layout2d, options?: RtaOptions | null): number;
6331
6899
 
6332
- export function _landmarkStratifiedRta3d(graph: CsrGraph, layout: Layout3d, options?: RtaOptions | null): number;
6900
+ export function _landmarkStratifiedRta3d(graph: Graph, layout: Layout3d, options?: RtaOptions | null): number;
6333
6901
 
6334
- export function _landmarkStratifiedRtaDetail2d(graph: CsrGraph, layout: Layout2d, options?: RtaOptions | null): RtaEvaluation;
6902
+ export function _landmarkStratifiedRtaDetail2d(graph: Graph, layout: Layout2d, options?: RtaOptions | null): RtaEvaluation;
6335
6903
 
6336
- export function _landmarkStratifiedRtaDetail3d(graph: CsrGraph, layout: Layout3d, options?: RtaOptions | null): RtaEvaluation;
6904
+ export function _landmarkStratifiedRtaDetail3d(graph: Graph, layout: Layout3d, options?: RtaOptions | null): RtaEvaluation;
6337
6905
 
6338
- export function _landmarkStratifiedRtaDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d, options?: RtaOptions | null): RtaEvaluation;
6906
+ export function _landmarkStratifiedRtaDetailManifold(graph: Graph, layout: ManifoldLayout2d, options?: RtaOptions | null): RtaEvaluation;
6339
6907
 
6340
- export function _landmarkStratifiedRtaDetailNd(graph: CsrGraph, layout: LayoutNd, options?: RtaOptions | null): RtaEvaluation;
6908
+ export function _landmarkStratifiedRtaDetailNd(graph: Graph, layout: LayoutNd, options?: RtaOptions | null): RtaEvaluation;
6341
6909
 
6342
6910
  export function _landmarkStratifiedRtaFromLandmarks2d(layout: Layout2d, landmarkIds: Uint32Array | number[], landmarkDists: Float64Array | Float32Array | Uint32Array | number[], options?: RtaFromLandmarksOptions | null): RtaEvaluation;
6343
6911
 
@@ -6347,20 +6915,20 @@ export function _landmarkStratifiedRtaFromLandmarksManifold(layout: ManifoldLayo
6347
6915
 
6348
6916
  export function _landmarkStratifiedRtaFromLandmarksNd(layout: LayoutNd, landmarkIds: Uint32Array | number[], landmarkDists: Float64Array | Float32Array | Uint32Array | number[], options?: RtaFromLandmarksOptions | null): RtaEvaluation;
6349
6917
 
6350
- export function _landmarkStratifiedRtaManifold(graph: CsrGraph, layout: ManifoldLayout2d, options?: RtaOptions | null): number;
6918
+ export function _landmarkStratifiedRtaManifold(graph: Graph, layout: ManifoldLayout2d, options?: RtaOptions | null): number;
6351
6919
 
6352
- export function _landmarkStratifiedRtaNd(graph: CsrGraph, layout: LayoutNd, options?: RtaOptions | null): number;
6920
+ export function _landmarkStratifiedRtaNd(graph: Graph, layout: LayoutNd, options?: RtaOptions | null): number;
6353
6921
 
6354
6922
  /**
6355
6923
  * Evaluates duplicate-node (`f32`/`f64`), zero-length edge, and bounding-box degeneracies.
6356
6924
  */
6357
- export function _layoutDegeneracy2d(graph: CsrGraph, layout: Layout2d): LayoutDegeneracy;
6925
+ export function _layoutDegeneracy2d(graph: Graph, layout: Layout2d): LayoutDegeneracy;
6358
6926
 
6359
- export function _layoutDegeneracy3d(graph: CsrGraph, layout: Layout3d): LayoutDegeneracy;
6927
+ export function _layoutDegeneracy3d(graph: Graph, layout: Layout3d): LayoutDegeneracy;
6360
6928
 
6361
- export function _layoutDegeneracyManifold(graph: CsrGraph, layout: ManifoldLayout2d): LayoutDegeneracy;
6929
+ export function _layoutDegeneracyManifold(graph: Graph, layout: ManifoldLayout2d): LayoutDegeneracy;
6362
6930
 
6363
- export function _layoutDegeneracyNd(graph: CsrGraph, layout: LayoutNd): LayoutDegeneracy;
6931
+ export function _layoutDegeneracyNd(graph: Graph, layout: LayoutNd): LayoutDegeneracy;
6364
6932
 
6365
6933
  export function _neighborhoodHit2d(layout: Layout2d, labels: Uint32Array | number[], options?: { k?: number | null } | null): number;
6366
6934
 
@@ -6373,24 +6941,24 @@ export function _neighborhoodHitNd(layout: LayoutNd, labels: Uint32Array | numbe
6373
6941
  /**
6374
6942
  * Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
6375
6943
  */
6376
- export function _neighborhoodPreservation1Hop2d(graph: CsrGraph, layout: Layout2d): number;
6944
+ export function _neighborhoodPreservation1Hop2d(graph: Graph, layout: Layout2d): number;
6377
6945
 
6378
- export function _neighborhoodPreservation1Hop3d(graph: CsrGraph, layout: Layout3d): number;
6946
+ export function _neighborhoodPreservation1Hop3d(graph: Graph, layout: Layout3d): number;
6379
6947
 
6380
- export function _neighborhoodPreservation1HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
6948
+ export function _neighborhoodPreservation1HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
6381
6949
 
6382
- export function _neighborhoodPreservation1HopNd(graph: CsrGraph, layout: LayoutNd): number;
6950
+ export function _neighborhoodPreservation1HopNd(graph: Graph, layout: LayoutNd): number;
6383
6951
 
6384
6952
  /**
6385
6953
  * Computes `StaticKdTree`-accelerated 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]`.
6386
6954
  */
6387
- export function _neighborhoodPreservation2Hop2d(graph: CsrGraph, layout: Layout2d): number;
6955
+ export function _neighborhoodPreservation2Hop2d(graph: Graph, layout: Layout2d): number;
6388
6956
 
6389
- export function _neighborhoodPreservation2Hop3d(graph: CsrGraph, layout: Layout3d): number;
6957
+ export function _neighborhoodPreservation2Hop3d(graph: Graph, layout: Layout3d): number;
6390
6958
 
6391
- export function _neighborhoodPreservation2HopManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
6959
+ export function _neighborhoodPreservation2HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
6392
6960
 
6393
- export function _neighborhoodPreservation2HopNd(graph: CsrGraph, layout: LayoutNd): number;
6961
+ export function _neighborhoodPreservation2HopNd(graph: Graph, layout: LayoutNd): number;
6394
6962
 
6395
6963
  /**
6396
6964
  * Computes the one-sided hinge node-resolution violation sum of `layout`.
@@ -6425,53 +6993,53 @@ export function _relativeNeighborhoodEdgesNd(layout: LayoutNd): Uint32Array;
6425
6993
  /**
6426
6994
  * Estimates 1-hop neighborhood preservation (`NP1`) via vertex sampling (`options?: { numSamples?, seed? }`).
6427
6995
  */
6428
- export function _sampledNp12d(graph: CsrGraph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
6996
+ export function _sampledNp12d(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
6429
6997
 
6430
- export function _sampledNp13d(graph: CsrGraph, layout: Layout3d, options?: SamplingSeedOptions | null): number;
6998
+ export function _sampledNp13d(graph: Graph, layout: Layout3d, options?: SamplingSeedOptions | null): number;
6431
6999
 
6432
- export function _sampledNp1Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options?: SamplingSeedOptions | null): number;
7000
+ export function _sampledNp1Manifold(graph: Graph, layout: ManifoldLayout2d, options?: SamplingSeedOptions | null): number;
6433
7001
 
6434
- export function _sampledNp1Nd(graph: CsrGraph, layout: LayoutNd, options?: SamplingSeedOptions | null): number;
7002
+ export function _sampledNp1Nd(graph: Graph, layout: LayoutNd, options?: SamplingSeedOptions | null): number;
6435
7003
 
6436
7004
  /**
6437
7005
  * Estimates 2-hop neighborhood preservation (`NP2`) via vertex sampling (`options?: { numSamples?, seed? }`).
6438
7006
  */
6439
- export function _sampledNp22d(graph: CsrGraph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
7007
+ export function _sampledNp22d(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
6440
7008
 
6441
- export function _sampledNp23d(graph: CsrGraph, layout: Layout3d, options?: SamplingSeedOptions | null): number;
7009
+ export function _sampledNp23d(graph: Graph, layout: Layout3d, options?: SamplingSeedOptions | null): number;
6442
7010
 
6443
- export function _sampledNp2Manifold(graph: CsrGraph, layout: ManifoldLayout2d, options?: SamplingSeedOptions | null): number;
7011
+ export function _sampledNp2Manifold(graph: Graph, layout: ManifoldLayout2d, options?: SamplingSeedOptions | null): number;
6444
7012
 
6445
- export function _sampledNp2Nd(graph: CsrGraph, layout: LayoutNd, options?: SamplingSeedOptions | null): number;
7013
+ export function _sampledNp2Nd(graph: Graph, layout: LayoutNd, options?: SamplingSeedOptions | null): number;
6446
7014
 
6447
7015
  /**
6448
7016
  * Computes $O(kN)$ pivot-sampled Scale-Normalized Stress (`SNS`) (`options?: { numPivots?, seed? }`).
6449
7017
  */
6450
- export function _sampledScaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d, options?: SampledStressOptions | null): number;
7018
+ export function _sampledScaleNormalizedStress2d(graph: Graph, layout: Layout2d, options?: SampledStressOptions | null): number;
6451
7019
 
6452
- export function _sampledScaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d, options?: SampledStressOptions | null): number;
7020
+ export function _sampledScaleNormalizedStress3d(graph: Graph, layout: Layout3d, options?: SampledStressOptions | null): number;
6453
7021
 
6454
- export function _sampledScaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d, options?: SampledStressOptions | null): number;
7022
+ export function _sampledScaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d, options?: SampledStressOptions | null): number;
6455
7023
 
6456
- export function _sampledScaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd, options?: SampledStressOptions | null): number;
7024
+ export function _sampledScaleNormalizedStressNd(graph: Graph, layout: LayoutNd, options?: SampledStressOptions | null): number;
6457
7025
 
6458
7026
  /**
6459
7027
  * Computes closed-form Scale-Normalized Stress (`SNS`) in `[0.0, 1.0]` for `graph` and `layout`.
6460
7028
  */
6461
- export function _scaleNormalizedStress2d(graph: CsrGraph, layout: Layout2d): number;
7029
+ export function _scaleNormalizedStress2d(graph: Graph, layout: Layout2d): number;
6462
7030
 
6463
- export function _scaleNormalizedStress3d(graph: CsrGraph, layout: Layout3d): number;
7031
+ export function _scaleNormalizedStress3d(graph: Graph, layout: Layout3d): number;
6464
7032
 
6465
7033
  /**
6466
7034
  * Computes detailed closed-form Scale-Normalized Stress (`SNS`) diagnostics for `graph` and `layout`.
6467
7035
  */
6468
- export function _scaleNormalizedStressDetail2d(graph: CsrGraph, layout: Layout2d): StressEvaluation;
7036
+ export function _scaleNormalizedStressDetail2d(graph: Graph, layout: Layout2d): StressEvaluation;
6469
7037
 
6470
- export function _scaleNormalizedStressDetail3d(graph: CsrGraph, layout: Layout3d): StressEvaluation;
7038
+ export function _scaleNormalizedStressDetail3d(graph: Graph, layout: Layout3d): StressEvaluation;
6471
7039
 
6472
- export function _scaleNormalizedStressDetailManifold(graph: CsrGraph, layout: ManifoldLayout2d): StressEvaluation;
7040
+ export function _scaleNormalizedStressDetailManifold(graph: Graph, layout: ManifoldLayout2d): StressEvaluation;
6473
7041
 
6474
- export function _scaleNormalizedStressDetailNd(graph: CsrGraph, layout: LayoutNd): StressEvaluation;
7042
+ export function _scaleNormalizedStressDetailNd(graph: Graph, layout: LayoutNd): StressEvaluation;
6475
7043
 
6476
7044
  /**
6477
7045
  * Computes closed-form Scale-Normalized Stress (`SNS`) from a flat row-major `N * N` `distances`
@@ -6485,9 +7053,9 @@ export function _scaleNormalizedStressFromDistancesManifold(layout: ManifoldLayo
6485
7053
 
6486
7054
  export function _scaleNormalizedStressFromDistancesNd(layout: LayoutNd, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
6487
7055
 
6488
- export function _scaleNormalizedStressManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
7056
+ export function _scaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d): number;
6489
7057
 
6490
- export function _scaleNormalizedStressNd(graph: CsrGraph, layout: LayoutNd): number;
7058
+ export function _scaleNormalizedStressNd(graph: Graph, layout: LayoutNd): number;
6491
7059
 
6492
7060
  export function _sepmeGab2d(layout: Layout2d, labels: Uint32Array | number[]): number;
6493
7061
 
@@ -6532,22 +7100,22 @@ export function _silhouetteScoreNd(layout: LayoutNd, labels: Uint32Array | numbe
6532
7100
  /**
6533
7101
  * Counts non-adjacent edge sub-segment crossings on the flat unit torus `[0, 1)^2` for `Layout2d`.
6534
7102
  */
6535
- export function _torusCrossingNumber2d(graph: CsrGraph, layout: Layout2d): number;
7103
+ export function _torusCrossingNumber2d(graph: Graph, layout: Layout2d): number;
6536
7104
 
6537
7105
  /**
6538
7106
  * Counts non-adjacent edge sub-segment crossings on the flat torus for `ManifoldLayout2d` (`torus2d`).
6539
7107
  */
6540
- export function _torusCrossingNumberManifold(graph: CsrGraph, layout: ManifoldLayout2d): number;
7108
+ export function _torusCrossingNumberManifold(graph: Graph, layout: ManifoldLayout2d): number;
6541
7109
 
6542
7110
  /**
6543
7111
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `Layout2d`.
6544
7112
  */
6545
- export function _torusLayoutEdgeSegments2d(graph: CsrGraph, layout: Layout2d): Float64Array;
7113
+ export function _torusLayoutEdgeSegments2d(graph: Graph, layout: Layout2d): Float64Array;
6546
7114
 
6547
7115
  /**
6548
7116
  * Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `ManifoldLayout2d`.
6549
7117
  */
6550
- export function _torusLayoutEdgeSegmentsManifold(graph: CsrGraph, layout: ManifoldLayout2d): Float64Array;
7118
+ export function _torusLayoutEdgeSegmentsManifold(graph: Graph, layout: ManifoldLayout2d): Float64Array;
6551
7119
 
6552
7120
  /**
6553
7121
  * Returns adaptive Chebyshev polynomial degree for diffusion time `t`.
@@ -6589,22 +7157,22 @@ export function alignClusteredCentroids(fineLayout: Layout2d, coarseLayout: Layo
6589
7157
  /**
6590
7158
  * Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
6591
7159
  */
6592
- export function allPairsBfs(graph: CsrGraph, unit_edge_length?: number | null): Float64Array;
7160
+ export function allPairsBfs(graph: Graph, unit_edge_length?: number | null): Float64Array;
6593
7161
 
6594
7162
  /**
6595
7163
  * Computes the flat row-major `(numNodes, numNodes)` all-pairs Dijkstra distance matrix (`Float64Array`).
6596
7164
  */
6597
- export function allPairsDijkstra(graph: CsrGraph): Float64Array;
7165
+ export function allPairsDijkstra(graph: Graph): Float64Array;
6598
7166
 
6599
7167
  /**
6600
7168
  * Computes the exponential angular-resolution penalty sum over incident edge pairs.
6601
7169
  */
6602
- export function angularResolution(graph: CsrGraph, layout: Layout2d): number;
7170
+ export function angularResolution(graph: Graph, layout: Layout2d): number;
6603
7171
 
6604
7172
  /**
6605
7173
  * Constructs a symmetric PSD Coifman-Lafon anisotropic graph Laplacian `L_aniso`.
6606
7174
  */
6607
- export function anisotropicLaplacian(graph: CsrGraph, options?: AnisotropicLaplacianOptions | null): AnisotropicLaplacianResult;
7175
+ export function anisotropicLaplacian(graph: Graph, options?: AnisotropicLaplacianOptions | null): AnisotropicLaplacianResult;
6608
7176
 
6609
7177
  /**
6610
7178
  * Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
@@ -6618,19 +7186,19 @@ export function applyRelativeDistanceFloor(d1: Float64Array, d2: Float64Array, d
6618
7186
  export function aspectRatio(layout: Layout2d): number;
6619
7187
 
6620
7188
  /**
6621
- * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `CsrGraph`.
7189
+ * Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `Graph`.
6622
7190
  */
6623
- export function assignLayers(graph: CsrGraph, methodOrOptions?: LayeringMethod | { method?: LayeringMethod | null } | null): Uint32Array;
7191
+ export function assignLayers(graph: Graph, methodOrOptions?: LayeringMethod | { method?: LayeringMethod | null } | null): Uint32Array;
6624
7192
 
6625
7193
  /**
6626
7194
  * Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
6627
7195
  */
6628
- export function bfsSingleSource(graph: CsrGraph, source: number, unit_edge_length?: number | null): Float64Array;
7196
+ export function bfsSingleSource(graph: Graph, source: number, unit_edge_length?: number | null): Float64Array;
6629
7197
 
6630
7198
  /**
6631
7199
  * Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
6632
7200
  */
6633
- export function buildCapped12hopKnn(graph: CsrGraph, max2hopPerNode?: number | null, seed?: number | bigint | null): TwoHopKnnResult;
7201
+ export function buildCapped12hopKnn(graph: Graph, max2hopPerNode?: number | null, seed?: number | bigint | null): TwoHopKnnResult;
6634
7202
 
6635
7203
  /**
6636
7204
  * Builds 2-term Difference-of-Gaussians filter terms `[[1 - betaFloor, t1], [-alpha * (1 - betaFloor), t2]]`.
@@ -6646,12 +7214,12 @@ export function buildGumap12hopPriorityCsr(numNodes: number, u1: Uint32Array | n
6646
7214
  /**
6647
7215
  * Builds a hybrid 1+2-hop + two-step coarse `StaticKdTree` + full-$D$ reranked `KnnGraph`.
6648
7216
  */
6649
- export function buildHybridAdaptiveKnn(graph: CsrGraph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options?: HybridAdaptiveKnnOptions | null): HybridKnnResult;
7217
+ export function buildHybridAdaptiveKnn(graph: Graph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options?: HybridAdaptiveKnnOptions | null): HybridKnnResult;
6650
7218
 
6651
7219
  /**
6652
7220
  * Builds a pure 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
6653
7221
  */
6654
- export function buildPure2hopKnn(graph: CsrGraph): TwoHopKnnResult;
7222
+ export function buildPure2hopKnn(graph: Graph): TwoHopKnnResult;
6655
7223
 
6656
7224
  /**
6657
7225
  * Builds parameter-free R1 regularized DoG terms from $\sigma_\lambda$.
@@ -6667,7 +7235,7 @@ export function buildRerankKnn(coords: Float64Array | number[], numNodes: number
6667
7235
  /**
6668
7236
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`.
6669
7237
  */
6670
- export function chebyshevDogJlEmbedding(graph: CsrGraph, options?: ChebyshevDogJlOptions | null): Float64Array;
7238
+ export function chebyshevDogJlEmbedding(graph: Graph, options?: ChebyshevDogJlOptions | null): Float64Array;
6671
7239
 
6672
7240
  /**
6673
7241
  * Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`
@@ -6678,7 +7246,7 @@ export function chebyshevDogJlEmbeddingMatrix(matrix: CsrMatrix, options?: Cheby
6678
7246
  /**
6679
7247
  * Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
6680
7248
  */
6681
- export function chebyshevHeatSpmv(graph: CsrGraph, vectors: Float64Array | number[], numCols: number, t: number, options?: ChebyshevHeatSpmvOptions | null): Float64Array;
7249
+ export function chebyshevHeatSpmv(graph: Graph, vectors: Float64Array | number[], numCols: number, t: number, options?: ChebyshevHeatSpmvOptions | null): Float64Array;
6682
7250
 
6683
7251
  /**
6684
7252
  * Applies Chebyshev heat diffusion $\exp(-t A)$ to a row-major `(numNodes, numCols)` buffer
@@ -6694,12 +7262,12 @@ export function classDensityMeasure(layout: Layout2d, labels: Uint32Array | numb
6694
7262
  /**
6695
7263
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`, default `dims = 2`).
6696
7264
  */
6697
- export function classicalMds(graph: CsrGraph, dims?: number | null): LayoutNd;
7265
+ export function classicalMds(graph: Graph, dims?: number | null): LayoutNd;
6698
7266
 
6699
7267
  /**
6700
7268
  * Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
6701
7269
  */
6702
- export function classicalMds2d(graph: CsrGraph): Layout2d;
7270
+ export function classicalMds2d(graph: Graph): Layout2d;
6703
7271
 
6704
7272
  /**
6705
7273
  * Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`) from a flat `(numNodes, numNodes)`
@@ -6720,22 +7288,22 @@ export function clusterAreaFaithfulnessDetail(layout: Layout2d, labels: Uint32Ar
6720
7288
  /**
6721
7289
  * Runs coarse Louvain edge-length-first area reservation and non-SPD backbone initialization.
6722
7290
  */
6723
- export function coarseBackboneInit(graph: CsrGraph, options?: CoarseBackboneOptions | null): CoarseBackboneResult;
7291
+ export function coarseBackboneInit(graph: Graph, options?: CoarseBackboneOptions | null): CoarseBackboneResult;
6724
7292
 
6725
7293
  /**
6726
- * Coarsens an undirected `CsrGraph` by contracting vertices that share a cluster label.
7294
+ * Coarsens an undirected `Graph` by contracting vertices that share a cluster label.
6727
7295
  */
6728
- export function coarsenGraph(graph: CsrGraph, labels: Uint32Array | number[]): CoarsenedGraphResult;
7296
+ export function coarsenGraph(graph: Graph, labels: Uint32Array | number[]): CoarsenedGraphResult;
6729
7297
 
6730
7298
  /**
6731
7299
  * Builds the combinatorial graph Laplacian $L = D - A$ as a `CsrMatrix`.
6732
7300
  */
6733
- export function combinatorialLaplacian(graph: CsrGraph): CsrMatrix;
7301
+ export function combinatorialLaplacian(graph: Graph): CsrMatrix;
6734
7302
 
6735
7303
  /**
6736
7304
  * Computes exact distinct 1-hop + 2-hop neighborhood sizes $|B_2(u) \setminus \{u\}|$.
6737
7305
  */
6738
- export function compute2hopNeighborhoodSizes(graph: CsrGraph): Uint32Array;
7306
+ export function compute2hopNeighborhoodSizes(graph: Graph): Uint32Array;
6739
7307
 
6740
7308
  /**
6741
7309
  * Computes Chebyshev expansion coefficients for $\sum_m w_m \exp(-t_m \lambda)$ over `[0, lambdaMax]`.
@@ -6745,18 +7313,18 @@ export function computeChebyshevBandpassCoefficients(terms: SpectralFilterTermsI
6745
7313
  /**
6746
7314
  * Computes heat-diffusion spectral embedding $D^{-1/2} U \exp(-0.5 t \Lambda)$.
6747
7315
  */
6748
- export function computeDiffusionEmbedding(graph: CsrGraph, options?: SpectralEmbeddingOptions | null): SpectralEmbeddingResult;
7316
+ export function computeDiffusionEmbedding(graph: Graph, options?: SpectralEmbeddingOptions | null): SpectralEmbeddingResult;
6749
7317
 
6750
7318
  /**
6751
7319
  * Computes effective edge resistances and Foster's theorem diagnostics via exact pseudoinverse
6752
7320
  * (for small graphs) or Spielman-Srivastava JL projection solved with `AmgPcgSolver`.
6753
7321
  */
6754
- export function computeEffectiveResistances(graph: CsrGraph, options?: EffectiveResistanceOptions | null): EffectiveResistanceResult;
7322
+ export function computeEffectiveResistances(graph: Graph, options?: EffectiveResistanceOptions | null): EffectiveResistanceResult;
6755
7323
 
6756
7324
  /**
6757
7325
  * Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
6758
7326
  */
6759
- export function computeFuzzySimplicialSet(knn: KnnGraph, sigma_iters?: number | null, sigma_tolerance?: number | null): SparseProbabilities;
7327
+ export function computeFuzzySimplicialSet(knn: KnnGraph, sigmaItersOrOptions?: number | FuzzySimplicialSetOptions | null, sigmaTolerance?: number | null, fuzzyThreshold?: number | null): SparseProbabilities;
6760
7328
 
6761
7329
  /**
6762
7330
  * Computes parameter-free Horvitz-Thompson repulsion scaling $\gamma_{\mathrm{eff}}$.
@@ -6771,69 +7339,69 @@ export function computeKnnProbabilities(knn: KnnGraph, perplexities: Float64Arra
6771
7339
  /**
6772
7340
  * Computes scalar median 2-hop adaptive perplexity.
6773
7341
  */
6774
- export function computeMedian2hopPerplexity(graph: CsrGraph, options?: PerplexityOptions | null): number;
7342
+ export function computeMedian2hopPerplexity(graph: Graph, options?: PerplexityOptions | null): number;
6775
7343
 
6776
7344
  /**
6777
7345
  * Computes per-node 2-hop adaptive perplexities.
6778
7346
  */
6779
- export function computeNodewise2hopPerplexities(graph: CsrGraph, options?: PerplexityOptions | null): Float64Array;
7347
+ export function computeNodewise2hopPerplexities(graph: Graph, options?: PerplexityOptions | null): Float64Array;
6780
7348
 
6781
7349
  /**
6782
7350
  * Computes pure-Rust pivoted `RHGH` landmark tables via `AmgPcgSolver` + JL diagonal probes.
6783
7351
  */
6784
- export function computePivotedRhghLandmarks(graph: CsrGraph, options?: RhghLandmarkOptions | null): RhghLandmarksResult;
7352
+ export function computePivotedRhghLandmarks(graph: Graph, options?: RhghLandmarkOptions | null): RhghLandmarksResult;
6785
7353
 
6786
7354
  /**
6787
7355
  * Computes pure-Rust pivoted `RHGH` landmark distances as `{ landmarks: RhghLandmarks, result: RhghLandmarksResult }`.
6788
7356
  */
6789
- export function computePivotedRhghLandmarksResult(graph: CsrGraph, options?: RhghLandmarkOptions | null): RhghLandmarks;
7357
+ export function computePivotedRhghLandmarksResult(graph: Graph, options?: RhghLandmarkOptions | null): RhghLandmarks;
6790
7358
 
6791
7359
  /**
6792
7360
  * Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
6793
7361
  */
6794
- export function computeRegularizedDogVaradhanLandmarks(graph: CsrGraph, options?: DogVaradhanOptions | null): DogVaradhanLandmarks;
7362
+ export function computeRegularizedDogVaradhanLandmarks(graph: Graph, options?: DogVaradhanOptions | null): DogVaradhanLandmarks;
6795
7363
 
6796
7364
  /**
6797
7365
  * Computes regularized DoG Varadhan landmark tables from a custom symmetric PSD `CsrMatrix`
6798
7366
  * with dynamic `[0, lambdaMax]` spectrum scaling.
6799
7367
  */
6800
- export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: CsrGraph, matrix: CsrMatrix, options?: DogVaradhanOptions | null): DogVaradhanLandmarks;
7368
+ export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: Graph, matrix: CsrMatrix, options?: DogVaradhanOptions | null): DogVaradhanLandmarks;
6801
7369
 
6802
7370
  /**
6803
- * Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
7371
+ * Computes an Onoue (2026) effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
6804
7372
  */
6805
- export function computeResistanceEmbedding(graph: CsrGraph, options?: SpectralEmbeddingOptions | null): SpectralEmbeddingResult;
7373
+ export function computeResistanceEmbedding(graph: Graph, options?: SpectralEmbeddingOptions | null): SpectralEmbeddingResult;
6806
7374
 
6807
7375
  /**
6808
7376
  * Returns all non-adjacent crossing edge pairs in `graph` under `layout`.
6809
7377
  */
6810
- export function crossingEdges(graph: CsrGraph, layout: Layout2d): CrossingPair[];
7378
+ export function crossingEdges(graph: Graph, layout: Layout2d): CrossingPair[];
6811
7379
 
6812
7380
  /**
6813
7381
  * Finds all hyperbolic geodesic crossing pairs on `HyperbolicPoincare` or `HyperbolicLorentz`.
6814
7382
  */
6815
- export function crossingEdgesHyperbolic(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
7383
+ export function crossingEdgesHyperbolic(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
6816
7384
 
6817
7385
  /**
6818
7386
  * Finds all shortest great-circle geodesic arc crossing pairs on `ManifoldKind::Spherical`.
6819
7387
  */
6820
- export function crossingEdgesSpherical(graph: CsrGraph, layout: ManifoldLayout2d): CrossingPair[];
7388
+ export function crossingEdgesSpherical(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
6821
7389
 
6822
7390
  /**
6823
7391
  * Computes both exact crossing count and crossing-angle statistics in a single sweep pass.
6824
7392
  */
6825
- export function crossingSummary(graph: CsrGraph, layout: Layout2d): CrossingSummary;
7393
+ export function crossingSummary(graph: Graph, layout: Layout2d): CrossingSummary;
6826
7394
 
6827
7395
  /**
6828
7396
  * Computes exact DRGraph Eq. (17) crosslessness $1 - \sqrt{c / c_{\max}} \in [0.0, 1.0]$.
6829
7397
  */
6830
- export function crosslessness(graph: CsrGraph, layout: Layout2d): number;
7398
+ export function crosslessness(graph: Graph, layout: Layout2d): number;
6831
7399
 
6832
7400
  /**
6833
7401
  * Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
6834
7402
  * returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
6835
7403
  */
6836
- export function cycleEdges(graph: CsrGraph): Uint32Array;
7404
+ export function cycleEdges(graph: Graph): Uint32Array;
6837
7405
 
6838
7406
  /**
6839
7407
  * Returns static `DatasetInfo` records for all built-in benchmark datasets.
@@ -6851,9 +7419,9 @@ export function datasetInfo(name: string): DatasetInfo | undefined;
6851
7419
  export function declutterTwins2d(layout: Layout2d, options?: TwinDeclutterOptions | null): number;
6852
7420
 
6853
7421
  /**
6854
- * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `CsrGraph`.
7422
+ * Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `Graph`.
6855
7423
  */
6856
- export function delaunayToCsr(layout: Layout2d): CsrGraph;
7424
+ export function delaunayToCsr(layout: Layout2d): Graph;
6857
7425
 
6858
7426
  /**
6859
7427
  * Computes the deterministic 2D Delaunay triangulation of `layout`.
@@ -6863,7 +7431,7 @@ export function delaunayTriangulation(layout: Layout2d): DelaunayResult;
6863
7431
  /**
6864
7432
  * Computes weighted single-source Dijkstra shortest-path distances from `source` (`Float64Array`).
6865
7433
  */
6866
- export function dijkstraSingleSource(graph: CsrGraph, source: number): Float64Array;
7434
+ export function dijkstraSingleSource(graph: Graph, source: number): Float64Array;
6867
7435
 
6868
7436
  /**
6869
7437
  * Computes the undirected angle in `[0.0, pi]` radians between 2D vectors `(x1, y1)` and `(x2, y2)`,
@@ -6874,43 +7442,48 @@ export function edgeAngle(x1: number, y1: number, x2: number, y2: number): numbe
6874
7442
  /**
6875
7443
  * Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
6876
7444
  */
6877
- export function extract1hop2hopCsr(graph: CsrGraph): TwoHopCsr;
7445
+ export function extract1hop2hopCsr(graph: Graph): TwoHopCsr;
7446
+
7447
+ /**
7448
+ * Computes continuous degree-normalized 1-hop slack-tether weights aligned with `probs.indices()`.
7449
+ */
7450
+ export function extract1hopTetherWeights(graph: Graph, probs: SparseProbabilities, options?: TetherWeightsOptions | null): Float32Array;
6878
7451
 
6879
7452
  /**
6880
- * Extracts the Quadrilateral Simmelian Backbone from an undirected `CsrGraph`.
7453
+ * Extracts the Quadrilateral Simmelian Backbone from an undirected `Graph`.
6881
7454
  */
6882
- export function extractQuadrilateralBackbone(graph: CsrGraph, options?: BackboneOptions | null): BackboneResult;
7455
+ export function extractQuadrilateralBackbone(graph: Graph, options?: BackboneOptions | null): BackboneResult;
6883
7456
 
6884
7457
  /**
6885
7458
  * Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
6886
7459
  */
6887
- export function extractSparse1hop2hopPairs(graph: CsrGraph, max2hopPerNode?: number | null, seed?: number | bigint | null): Sparse12HopPairs;
7460
+ export function extractSparse1hop2hopPairs(graph: Graph, max2hopPerNode?: number | null, seed?: number | bigint | null): Sparse12HopPairs;
6888
7461
 
6889
7462
  /**
6890
7463
  * Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode` and optional `maxBridgeDegree`.
6891
7464
  */
6892
- export function extractSparse1hop2hopPairsWithMode(graph: CsrGraph, options?: TwoHopModeOptions | null): Sparse12HopPairs;
7465
+ export function extractSparse1hop2hopPairsWithMode(graph: Graph, options?: TwoHopModeOptions | null): Sparse12HopPairs;
6893
7466
 
6894
7467
  /**
6895
7468
  * Fits low-dimensional UMAP parameters `[a, b]` from `minDist` and `spread`.
6896
7469
  */
6897
- export function findAbParams(min_dist?: number | null, spread?: number | null): Float64Array;
7470
+ export function findAbParams(minDist?: number | null, spread?: number | null, options?: FindAbParamsOptions | null): Float64Array;
6898
7471
 
6899
7472
  /**
6900
- * Generates a regular hyperbolic branching tree `CsrGraph` with `branchingFactor` and `depth`.
7473
+ * Generates a regular hyperbolic branching tree `Graph` with `branchingFactor` and `depth`.
6901
7474
  */
6902
- export function generateHyperbolicTree(branching_factor: number, depth: number): CsrGraph;
7475
+ export function generateHyperbolicTree(branching_factor: number, depth: number): Graph;
6903
7476
 
6904
7477
  /**
6905
7478
  * Generates hierarchical separation constraints `y[u] + gap <= y[v]` for directed edges
6906
7479
  * `(u, v)` spanning `layers[u] < layers[v]`.
6907
7480
  */
6908
- export function generateLayeredConstraints(graph: CsrGraph, layers: Uint32Array | number[], minLayerDistance?: number | null): SeparationConstraint[];
7481
+ export function generateLayeredConstraints(graph: Graph, layers: Uint32Array | number[], minLayerDistance?: number | null): SeparationConstraint[];
6909
7482
 
6910
7483
  /**
6911
- * Generates a deterministic layered Directed Acyclic Graph (`CsrGraph`).
7484
+ * Generates a deterministic layered Directed Acyclic Graph (`Graph`).
6912
7485
  */
6913
- export function generateLayeredDag(numLayers: number, nodesPerLayer: number, options?: GenerateLayeredDagOptions | null): CsrGraph;
7486
+ export function generateLayeredDag(numLayers: number, nodesPerLayer: number, options?: GenerateLayeredDagOptions | null): Graph;
6914
7487
 
6915
7488
  /**
6916
7489
  * Generates a deterministic Stochastic Block Model graph returning `{ graph, labels }`.
@@ -6918,60 +7491,60 @@ export function generateLayeredDag(numLayers: number, nodesPerLayer: number, opt
6918
7491
  export function generateSbmGraph(blockSizes: Uint32Array | number[], options?: GenerateSbmGraphOptions | null): SbmGraphResult;
6919
7492
 
6920
7493
  /**
6921
- * Generates a closed UV spherical grid mesh `CsrGraph` with poles and `latitudes x longitudes` rings.
7494
+ * Generates a closed UV spherical grid mesh `Graph` with poles and `latitudes x longitudes` rings.
6922
7495
  */
6923
- export function generateSphericalGrid(latitudes: number, longitudes: number): CsrGraph;
7496
+ export function generateSphericalGrid(latitudes: number, longitudes: number): Graph;
6924
7497
 
6925
7498
  /**
6926
- * Generates a subdivided icosphere spherical geodesic mesh `CsrGraph`.
7499
+ * Generates a subdivided icosphere spherical geodesic mesh `Graph`.
6927
7500
  */
6928
- export function generateSphericalIcosphere(subdivisions?: number | null): CsrGraph;
7501
+ export function generateSphericalIcosphere(subdivisions?: number | null): Graph;
6929
7502
 
6930
7503
  /**
6931
- * Generates a periodic 2D torus mesh `CsrGraph` of size `rows x cols` (`>= 3x3`).
7504
+ * Generates a periodic 2D torus mesh `Graph` of size `rows x cols` (`>= 3x3`).
6932
7505
  */
6933
- export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): CsrGraph;
7506
+ export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): Graph;
6934
7507
 
6935
7508
  /**
6936
- * Generates a deterministic undirected weighted `CsrGraph` with edge weights in `[minWeight, maxWeight]`.
7509
+ * Generates a deterministic undirected weighted `Graph` with edge weights in `[minWeight, maxWeight]`.
6937
7510
  */
6938
- export function generateWeightedGraph(numNodes: number, options?: GenerateWeightedGraphOptions | null): CsrGraph;
7511
+ export function generateWeightedGraph(numNodes: number, options?: GenerateWeightedGraphOptions | null): Graph;
6939
7512
 
6940
7513
  /**
6941
7514
  * Computes Miller et al. (2024) Eq. (2) Geodesic Distortion without post-hoc rescaling
6942
7515
  * on a `ManifoldLayout2d`.
6943
7516
  */
6944
- export function geodesicDistortion(graph: CsrGraph, layout: ManifoldLayout2d): number;
7517
+ export function geodesicDistortion(graph: Graph, layout: ManifoldLayout2d): number;
6945
7518
 
6946
7519
  /**
6947
7520
  * Computes row-normalized symmetrized 1+2-hop probabilities with optional capping and `(d_i d_j)^(-degreeBeta)` decay.
6948
7521
  */
6949
- export function graph12hopRowNormalizedProbabilities(graph: CsrGraph, options?: TsNetRowNormalizedOptions | null): SparseProbabilities;
7522
+ export function graph12hopRowNormalizedProbabilities(graph: Graph, options?: TsNetRowNormalizedOptions | null): SparseProbabilities;
6950
7523
 
6951
7524
  /**
6952
7525
  * Computes row-normalized symmetrized 1+2-hop probabilities with explicit `TwoHopSamplingMode` and `maxBridgeDegree`.
6953
7526
  */
6954
- export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: CsrGraph, options?: TsNetRowNormalizedOptions | null): SparseProbabilities;
7527
+ export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: Graph, options?: TsNetRowNormalizedOptions | null): SparseProbabilities;
6955
7528
 
6956
7529
  /**
6957
- * Computes row-normalized symmetrized graph probabilities from a `CsrGraph`.
7530
+ * Computes row-normalized symmetrized graph probabilities from a `Graph`.
6958
7531
  */
6959
- export function graphRowNormalizedProbabilities(graph: CsrGraph): SparseProbabilities;
7532
+ export function graphRowNormalizedProbabilities(graph: Graph): SparseProbabilities;
6960
7533
 
6961
7534
  /**
6962
7535
  * Computes a 2D Harel-Koren High-Dimensional Embedding (`HDE`) `Layout2d` (`f32`).
6963
7536
  */
6964
- export function hde(graph: CsrGraph, options?: HdeOptions | null): Layout2d;
7537
+ export function hde(graph: Graph, options?: HdeOptions | null): Layout2d;
6965
7538
 
6966
7539
  /**
6967
7540
  * Computes an $N$-dimensional Harel-Koren High-Dimensional Embedding (`HDE`) `LayoutNd` (`f32`).
6968
7541
  */
6969
- export function hdeNd(graph: CsrGraph, options?: HdeNdOptions | null): LayoutNd;
7542
+ export function hdeNd(graph: Graph, options?: HdeNdOptions | null): LayoutNd;
6970
7543
 
6971
7544
  /**
6972
7545
  * Counts exact hyperbolic geodesic crossings on `HyperbolicPoincare` or `HyperbolicLorentz`.
6973
7546
  */
6974
- export function hyperbolicCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
7547
+ export function hyperbolicCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
6975
7548
 
6976
7549
  /**
6977
7550
  * Clusters flat row-major `(numNodes, dims)` points with deterministic K-Means++.
@@ -6981,22 +7554,22 @@ export function kmeansPlusPlus(points: Float64Array | number[], numNodes: number
6981
7554
  /**
6982
7555
  * Computes Koren's degree-normalized 2D spectral initialization `Layout2d` (`f32`).
6983
7556
  */
6984
- export function korenSpectralInit(graph: CsrGraph, options?: KorenSpectralGeneratorOptions | null): Layout2d;
7557
+ export function korenSpectralInit(graph: Graph, options?: KorenSpectralGeneratorOptions | null): Layout2d;
6985
7558
 
6986
7559
  /**
6987
- * Detects communities on an undirected `CsrGraph` via asynchronous Label Propagation.
7560
+ * Detects communities on an undirected `Graph` via asynchronous Label Propagation.
6988
7561
  */
6989
- export function labelPropagation(graph: CsrGraph, maxIterations?: number | null, seed?: number | bigint | null): LabelPropagationResult;
7562
+ export function labelPropagation(graph: Graph, maxIterations?: number | null, seed?: number | bigint | null): LabelPropagationResult;
6990
7563
 
6991
7564
  /**
6992
7565
  * Builds a `CsrMatrix` graph Laplacian of the requested `kind` (default `LaplacianKind.SymmetricNormalized`).
6993
7566
  */
6994
- export function laplacian(graph: CsrGraph, kindOrOptions?: LaplacianKind | { kind?: LaplacianKind | null } | null): CsrMatrix;
7567
+ export function laplacian(graph: Graph, kindOrOptions?: LaplacianKind | { kind?: LaplacianKind | null } | null): CsrMatrix;
6995
7568
 
6996
7569
  /**
6997
- * Detects communities on an undirected `CsrGraph` via the Leiden algorithm (`Modularity` or `CPM`).
7570
+ * Detects communities on an undirected `Graph` via the Leiden algorithm (`Modularity` or `CPM`).
6998
7571
  */
6999
- export function leidenCommunities(graph: CsrGraph, options?: LeidenOptions | null): LeidenResult;
7572
+ export function leidenCommunities(graph: Graph, options?: LeidenOptions | null): LeidenResult;
7000
7573
 
7001
7574
  /**
7002
7575
  * Returns the canonical names of all built-in benchmark datasets (`string[]`).
@@ -7031,27 +7604,27 @@ export function lorentzToPoincarePoint(x: number, y: number): Float64Array;
7031
7604
  /**
7032
7605
  * Runs multi-level Louvain coarsening with resolution decay up to `maxCoarseNodes`.
7033
7606
  */
7034
- export function louvainCoarsen(graph: CsrGraph, options?: CoarseLouvainOptions | null): CoarsenedHierarchyResult;
7607
+ export function louvainCoarsen(graph: Graph, options?: CoarseLouvainOptions | null): CoarsenedHierarchyResult;
7035
7608
 
7036
7609
  /**
7037
- * Detects communities on an undirected `CsrGraph` via multi-level Louvain modularity optimization.
7610
+ * Detects communities on an undirected `Graph` via multi-level Louvain modularity optimization.
7038
7611
  */
7039
- export function louvainCommunities(graph: CsrGraph, options?: LouvainOptions | null): LouvainResult;
7612
+ export function louvainCommunities(graph: Graph, options?: LouvainOptions | null): LouvainResult;
7040
7613
 
7041
7614
  /**
7042
7615
  * Computes DRGraph Eq. (19) strict minimum-angle resolution (`A2`) in `[0.0, 1.0]`.
7043
7616
  */
7044
- export function minimumAngle(graph: CsrGraph, layout: Layout2d): number;
7617
+ export function minimumAngle(graph: Graph, layout: Layout2d): number;
7045
7618
 
7046
7619
  /**
7047
7620
  * Computes DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
7048
7621
  */
7049
- export function minimumAngleSummary(graph: CsrGraph, layout: Layout2d): MinimumAngleSummary;
7622
+ export function minimumAngleSummary(graph: Graph, layout: Layout2d): MinimumAngleSummary;
7050
7623
 
7051
7624
  /**
7052
7625
  * Computes all 5 Chen et al. (2020) NOR metrics including graph edge-length distortion (`elRsd`).
7053
7626
  */
7054
- export function norMetrics(graph: CsrGraph, origLayout: Layout2d, adjustedLayout: Layout2d, halfWidths: Float32Array | number[], halfHeights: Float32Array | number[]): NorMetricsResult;
7627
+ export function norMetrics(graph: Graph, origLayout: Layout2d, adjustedLayout: Layout2d, halfWidths: Float32Array | number[], halfHeights: Float32Array | number[]): NorMetricsResult;
7055
7628
 
7056
7629
  /**
7057
7630
  * Computes Chen et al. (2020) NOR metrics without a graph (`elRsd = 0.0`).
@@ -7064,14 +7637,14 @@ export function norMetricsWithoutGraph(origLayout: Layout2d, adjustedLayout: Lay
7064
7637
  export function normalizeLayout2d(layout: Layout2d, targetStd?: number | null, seed?: number | bigint | null): void;
7065
7638
 
7066
7639
  /**
7067
- * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `CsrGraph`.
7640
+ * Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `Graph`.
7068
7641
  */
7069
- export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): CsrGraph;
7642
+ export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): Graph;
7070
7643
 
7071
7644
  /**
7072
7645
  * Computes a $k$-NN graph via Partial BFS with deterministic Fisher-Yates tie-breaking.
7073
7646
  */
7074
- export function partialBfsKnn(graph: CsrGraph, k?: number | null, seed?: number | bigint | null): KnnGraph;
7647
+ export function partialBfsKnn(graph: Graph, k?: number | null, seed?: number | bigint | null): KnnGraph;
7075
7648
 
7076
7649
  /**
7077
7650
  * Computes `ARI`, `AMI`, `homogeneity`, `completeness`, `vMeasure`, and `fmi` between two labelings.
@@ -7081,7 +7654,7 @@ export function partitionAgreement(labelsTrue: Uint32Array | number[], labelsPre
7081
7654
  /**
7082
7655
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
7083
7656
  */
7084
- export function pivotMds(graph: CsrGraph, options?: PivotMdsGeneratorOptions | null): Layout2d;
7657
+ export function pivotMds(graph: Graph, options?: PivotMdsGeneratorOptions | null): Layout2d;
7085
7658
 
7086
7659
  /**
7087
7660
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from a flat `(numNodes, numPivots)` distance matrix.
@@ -7091,12 +7664,12 @@ export function pivotMdsFromDistances(distancesNk: Float64Array | number[], numN
7091
7664
  /**
7092
7665
  * Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
7093
7666
  */
7094
- export function pivotMdsInit(graph: CsrGraph, options?: PivotMdsGeneratorOptions | null): Layout2d;
7667
+ export function pivotMdsInit(graph: Graph, options?: PivotMdsGeneratorOptions | null): Layout2d;
7095
7668
 
7096
7669
  /**
7097
7670
  * Computes a 2D `Layout2d` (`f32`) via PivotMDS from an explicit slice of `pivots`.
7098
7671
  */
7099
- export function pivotMdsWithPivots(graph: CsrGraph, pivots: Uint32Array | number[], options?: { targetStd?: number | null; seed?: number | bigint | null } | null): Layout2d;
7672
+ export function pivotMdsWithPivots(graph: Graph, pivots: Uint32Array | number[], options?: { targetStd?: number | null; seed?: number | bigint | null } | null): Layout2d;
7100
7673
 
7101
7674
  /**
7102
7675
  * Computes the Poincaré disk hyperbolic geodesic distance between `(x1, y1)` and `(x2, y2)`.
@@ -7127,7 +7700,7 @@ export function prismDistortionWithEdges(original_layout: Layout2d, adjusted_lay
7127
7700
  /**
7128
7701
  * Projects `coords` (`Float32Array`) in place onto the feasible region defined by `constraints`.
7129
7702
  */
7130
- export function project1d(coords: Float32Array, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[]): void;
7703
+ export function project1d(coords: Float32Array, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[], options?: ConstraintProjectorOptions | null): void;
7131
7704
 
7132
7705
  /**
7133
7706
  * Projects a coarse 2D `Layout2d` (`f32`) back onto fine vertices via `nodeToCoarse`.
@@ -7152,7 +7725,7 @@ export function projectClusteredRectangleNoOverlap2d(layout: Layout2d, labels: U
7152
7725
  /**
7153
7726
  * Projects axis `axis` (`0` / `"x"` or `1` / `"y"`) of `layout` in place onto `constraints`.
7154
7727
  */
7155
- export function projectLayoutAxis(layout: Layout2d, axis: LayoutAxis, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[]): void;
7728
+ export function projectLayoutAxis(layout: Layout2d, axis: LayoutAxis, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[], options?: ConstraintProjectorOptions | null): void;
7156
7729
 
7157
7730
  /**
7158
7731
  * Projects spectral filter `terms` onto the PSD cone, returning `{ termsPsd, deltaPsd, hMin }`.
@@ -7168,12 +7741,12 @@ export function projectRectangleNoOverlap2d(layout: Layout2d, halfWidths: Float3
7168
7741
  /**
7169
7742
  * Builds the random-walk normalized graph Laplacian $L_{\mathrm{rw}} = D^{-1}(D - A)$ as a `CsrMatrix`.
7170
7743
  */
7171
- export function randomWalkLaplacian(graph: CsrGraph): CsrMatrix;
7744
+ export function randomWalkLaplacian(graph: Graph): CsrMatrix;
7172
7745
 
7173
7746
  /**
7174
- * Computes a `LayoutNd` (`f32`) zero-guarded resistance-distance spectral embedding (`RdMds`).
7747
+ * Computes a `LayoutNd` (`f32`) zero-guarded Resistance-Distance MDS spectral embedding (`RdMds`, Onoue 2026).
7175
7748
  */
7176
- export function rdMds(graph: CsrGraph, options?: RdMdsGeneratorOptions | null): LayoutNd;
7749
+ export function rdMds(graph: Graph, options?: RdMdsGeneratorOptions | null): LayoutNd;
7177
7750
 
7178
7751
  /**
7179
7752
  * Finds all overlapping rectangle pairs `[i0, j0, i1, j1, ...]` (`i < j`) for `layout`
@@ -7187,9 +7760,9 @@ export function rectangleOverlaps(layout: Layout2d, half_widths: Float32Array |
7187
7760
  export function refineClusterLayout(layout: Layout2d, labels: Uint32Array | number[], options?: ClusterRefineOptions | null): number;
7188
7761
 
7189
7762
  /**
7190
- * Constructs a directed acyclic `CsrGraph` by reversing cycle-closing back-edges.
7763
+ * Constructs a directed acyclic `Graph` by reversing cycle-closing back-edges.
7191
7764
  */
7192
- export function removeCycles(graph: CsrGraph): CsrGraph;
7765
+ export function removeCycles(graph: Graph): Graph;
7193
7766
 
7194
7767
  /**
7195
7768
  * Computes a `dims`-dimensional Representative / Landmark MDS `LayoutNd` (`f32`) from a flat
@@ -7200,7 +7773,7 @@ export function representativeMds(distances_to_reps: Float64Array | number[], nu
7200
7773
  /**
7201
7774
  * Runs Devriendt-Lambiotte resistance curvature flow on `graph` and classifies target geometry.
7202
7775
  */
7203
- export function resistanceCurvatureFlow(graph: CsrGraph, options?: ResistanceCurvatureFlowOptions | null): ResistanceCurvatureFlowResult;
7776
+ export function resistanceCurvatureFlow(graph: Graph, options?: ResistanceCurvatureFlowOptions | null): ResistanceCurvatureFlowResult;
7204
7777
 
7205
7778
  /**
7206
7779
  * Median-centers and Gaussian-calibrated radial quantile-scales `layout` in place so core spread matches `targetStd` (default `1.0`).
@@ -7210,18 +7783,18 @@ export function robustNormalizeLayout2d(layout: Layout2d, options?: { targetStd?
7210
7783
  /**
7211
7784
  * Estimates edge crossings in $O(\text{numSamples})$ time (`options?: { numSamples?, seed? }`).
7212
7785
  */
7213
- export function sampledCrossingNumber(graph: CsrGraph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
7786
+ export function sampledCrossingNumber(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
7214
7787
 
7215
7788
  /**
7216
7789
  * Estimates DRGraph Eq. (17) crosslessness $1 - \sqrt{\hat{c} / c_{\max}} \in [0.0, 1.0]$
7217
7790
  * (`options?: { numSamples?, seed? }`).
7218
7791
  */
7219
- export function sampledCrosslessness(graph: CsrGraph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
7792
+ export function sampledCrosslessness(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
7220
7793
 
7221
7794
  /**
7222
7795
  * Selects well-spaced shortest-path pivots via Core-First MaxMin BFS.
7223
7796
  */
7224
- export function selectMaxminSpPivots(graph: CsrGraph, options?: PivotMdsGeneratorOptions | null): Uint32Array;
7797
+ export function selectMaxminSpPivots(graph: Graph, options?: PivotMdsGeneratorOptions | null): Uint32Array;
7225
7798
 
7226
7799
  /**
7227
7800
  * Installs `console_error_panic_hook` once so any Rust panic reports a readable stack trace
@@ -7237,22 +7810,28 @@ export function shiftedNormalizedLaplacian(l_sym: CsrMatrix, lambda_max?: number
7237
7810
  /**
7238
7811
  * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$.
7239
7812
  */
7240
- export function smallestLaplacianEigenpairs(graph: CsrGraph, options?: SpectralEigenOptions | null): EigenResult;
7813
+ export function smallestLaplacianEigenpairs(graph: Graph, options?: SpectralEigenOptions | null): EigenResult;
7814
+
7815
+ /**
7816
+ * Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$ using
7817
+ * AMG-PCG-preconditioned block Generalized Davidson with explicit $v_0 = D^{1/2}\mathbf{1}$ deflation.
7818
+ */
7819
+ export function smallestSymLaplacianEigenpairsAmg(graph: Graph, options?: AmgDavidsonEigenOptions | null): EigenResult;
7241
7820
 
7242
7821
  /**
7243
- * Performs Ng-Jordan-Weiss spectral clustering on an undirected `CsrGraph`.
7822
+ * Performs Ng-Jordan-Weiss spectral clustering on an undirected `Graph`.
7244
7823
  */
7245
- export function spectralClustering(graph: CsrGraph, options?: SpectralClusteringOptions | null): SpectralClusteringResult;
7824
+ export function spectralClustering(graph: Graph, options?: SpectralClusteringOptions | null): SpectralClusteringResult;
7246
7825
 
7247
7826
  /**
7248
7827
  * Computes exact $O(|E|)$ spectral variance and degree summary statistics of $L_{\mathrm{sym}}$.
7249
7828
  */
7250
- export function spectralMomentStats(graph: CsrGraph): SpectralMomentStats;
7829
+ export function spectralMomentStats(graph: Graph): SpectralMomentStats;
7251
7830
 
7252
7831
  /**
7253
7832
  * Counts exact great-circle geodesic arc crossings on `ManifoldKind::Spherical`.
7254
7833
  */
7255
- export function sphericalCrossingNumber(graph: CsrGraph, layout: ManifoldLayout2d): number;
7834
+ export function sphericalCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
7256
7835
 
7257
7836
  /**
7258
7837
  * Computes the great-circle geodesic distance on the unit sphere in `[0, pi]`.
@@ -7277,12 +7856,12 @@ export function squarifiedTreemap(weights: Float64Array | Float32Array | number[
7277
7856
  /**
7278
7857
  * Computes the exact sweep-line crossing-angle penalty $\sum \cos^2(\theta)$.
7279
7858
  */
7280
- export function sweepCrossingAngle(graph: CsrGraph, layout: Layout2d): number;
7859
+ export function sweepCrossingAngle(graph: Graph, layout: Layout2d): number;
7281
7860
 
7282
7861
  /**
7283
7862
  * Counts the exact number of non-adjacent edge crossings via $O((|E|+K)\log|E|)$ sweep-line.
7284
7863
  */
7285
- export function sweepCrossingNumber(graph: CsrGraph, layout: Layout2d): number;
7864
+ export function sweepCrossingNumber(graph: Graph, layout: Layout2d): number;
7286
7865
 
7287
7866
  /**
7288
7867
  * Computes ascending symmetric eigenpairs `(lambdas, vectors)` of an `n x n` row-major matrix
@@ -7294,7 +7873,7 @@ export function symmetricEigenJacobi(aRowMajor: Float64Array | number[], n: numb
7294
7873
  * Builds the symmetric normalized Laplacian $L_{\mathrm{sym}} = I - D^{-1/2} A D^{-1/2}$
7295
7874
  * and inverse square-root degrees `{ matrix, invSqrtDeg }`.
7296
7875
  */
7297
- export function symmetricNormalizedLaplacian(graph: CsrGraph): SymmetricNormalizedLaplacianResult;
7876
+ export function symmetricNormalizedLaplacian(graph: Graph): SymmetricNormalizedLaplacianResult;
7298
7877
 
7299
7878
  /**
7300
7879
  * Computes row-normalized symmetrized joint probabilities from arbitrary CSR directed affinities.
@@ -7314,12 +7893,12 @@ export function torusEdgeSegments(x1: number, y1: number, x2: number, y2: number
7314
7893
  /**
7315
7894
  * Initializes a flat 2D torus `ManifoldLayout2d` via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
7316
7895
  */
7317
- export function torusSpectralPhaseInit(graph: CsrGraph, seed?: number | bigint | null): ManifoldLayout2d;
7896
+ export function torusSpectralPhaseInit(graph: Graph, seed?: number | bigint | null): ManifoldLayout2d;
7318
7897
 
7319
7898
  /**
7320
- * Computes the exact transitive reduction of a directed acyclic `CsrGraph`.
7899
+ * Computes the exact transitive reduction of a directed acyclic `Graph`.
7321
7900
  */
7322
- export function transitiveReduction(graph: CsrGraph): CsrGraph;
7901
+ export function transitiveReduction(graph: Graph): Graph;
7323
7902
 
7324
7903
  /**
7325
7904
  * Returns the active WebAssembly linear `WebAssembly.Memory` instance.
@@ -7359,7 +7938,6 @@ export interface InitOutput {
7359
7938
  readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
7360
7939
  readonly __wbg_crossingpair_free: (a: number, b: number) => void;
7361
7940
  readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
7362
- readonly __wbg_csrgraph_free: (a: number, b: number) => void;
7363
7941
  readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
7364
7942
  readonly __wbg_datasetinfo_free: (a: number, b: number) => void;
7365
7943
  readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
@@ -7372,11 +7950,14 @@ export interface InitOutput {
7372
7950
  readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
7373
7951
  readonly __wbg_eigenresult_free: (a: number, b: number) => void;
7374
7952
  readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
7953
+ readonly __wbg_fieldfftstats_free: (a: number, b: number) => void;
7954
+ readonly __wbg_fieldrepulsionkernel_free: (a: number, b: number) => void;
7375
7955
  readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
7376
7956
  readonly __wbg_forbidoverlapremoval_free: (a: number, b: number) => void;
7377
7957
  readonly __wbg_forceatlas2solver_free: (a: number, b: number) => void;
7378
7958
  readonly __wbg_fruchtermanreingoldsolver_free: (a: number, b: number) => void;
7379
7959
  readonly __wbg_gemsolver_free: (a: number, b: number) => void;
7960
+ readonly __wbg_graph_free: (a: number, b: number) => void;
7380
7961
  readonly __wbg_graphcnesolver_free: (a: number, b: number) => void;
7381
7962
  readonly __wbg_gripsolver_free: (a: number, b: number) => void;
7382
7963
  readonly __wbg_groupinaboxsolver_free: (a: number, b: number) => void;
@@ -7384,6 +7965,7 @@ export interface InitOutput {
7384
7965
  readonly __wbg_gumapsolver_free: (a: number, b: number) => void;
7385
7966
  readonly __wbg_hde_free: (a: number, b: number) => void;
7386
7967
  readonly __wbg_hybridknnresult_free: (a: number, b: number) => void;
7968
+ readonly __wbg_ibumaphubdamping_free: (a: number, b: number) => void;
7387
7969
  readonly __wbg_ibumapsolver_free: (a: number, b: number) => void;
7388
7970
  readonly __wbg_kamadakawaisolver_free: (a: number, b: number) => void;
7389
7971
  readonly __wbg_kmeansresult_free: (a: number, b: number) => void;
@@ -7401,6 +7983,7 @@ export interface InitOutput {
7401
7983
  readonly __wbg_louvainresult_free: (a: number, b: number) => void;
7402
7984
  readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
7403
7985
  readonly __wbg_maxentstresssolver_free: (a: number, b: number) => void;
7986
+ readonly __wbg_metricanchorweighting_free: (a: number, b: number) => void;
7404
7987
  readonly __wbg_metricreport_free: (a: number, b: number) => void;
7405
7988
  readonly __wbg_minimumanglesummary_free: (a: number, b: number) => void;
7406
7989
  readonly __wbg_normetricsresult_free: (a: number, b: number) => void;
@@ -7409,6 +7992,8 @@ export interface InitOutput {
7409
7992
  readonly __wbg_partitionagreementresult_free: (a: number, b: number) => void;
7410
7993
  readonly __wbg_pfsprimeoverlapremoval_free: (a: number, b: number) => void;
7411
7994
  readonly __wbg_pivotmds_free: (a: number, b: number) => void;
7995
+ readonly __wbg_pivotmdsreport_free: (a: number, b: number) => void;
7996
+ readonly __wbg_pivotmdsreportresult_free: (a: number, b: number) => void;
7412
7997
  readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
7413
7998
  readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
7414
7999
  readonly __wbg_rdmds_free: (a: number, b: number) => void;
@@ -7444,6 +8029,7 @@ export interface InitOutput {
7444
8029
  readonly __wbg_twindeclutterer_free: (a: number, b: number) => void;
7445
8030
  readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
7446
8031
  readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
8032
+ readonly __wbg_unifiedmetricanchor_free: (a: number, b: number) => void;
7447
8033
  readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
7448
8034
  readonly _calinskiHarabaszScore2d: (a: number, b: number, c: any) => void;
7449
8035
  readonly _calinskiHarabaszScore3d: (a: number, b: number, c: any) => void;
@@ -7660,13 +8246,21 @@ export interface InitOutput {
7660
8246
  readonly arenaoctree3d_buildWeightedNd: (a: number, b: number, c: number, d: number, e: number) => void;
7661
8247
  readonly arenaoctree3d_buildXyz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
7662
8248
  readonly arenaoctree3d_clear: (a: number) => void;
8249
+ readonly arenaoctree3d_coincidentDistSq: (a: number) => number;
7663
8250
  readonly arenaoctree3d_computeCoulombRepulsion: (a: number, b: number, c: number, d: number) => void;
7664
8251
  readonly arenaoctree3d_computeEntropyRepulsion: (a: number, b: number, c: number, d: number) => void;
7665
8252
  readonly arenaoctree3d_computeKlRepulsion: (a: number, b: number, c: number) => void;
7666
8253
  readonly arenaoctree3d_computeMaxentRepulsion: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
7667
- readonly arenaoctree3d_new: () => number;
8254
+ readonly arenaoctree3d_entropyMinDist: (a: number) => number;
8255
+ readonly arenaoctree3d_maxDepth: (a: number) => number;
8256
+ readonly arenaoctree3d_new: (a: number, b: any) => void;
7668
8257
  readonly arenaoctree3d_nodeCount: (a: number) => number;
7669
8258
  readonly arenaoctree3d_pointCount: (a: number) => number;
8259
+ readonly arenaoctree3d_setCoincidentDistSq: (a: number, b: number, c: number) => void;
8260
+ readonly arenaoctree3d_setEntropyMinDist: (a: number, b: number, c: number) => void;
8261
+ readonly arenaoctree3d_setMaxDepth: (a: number, b: number, c: number) => void;
8262
+ readonly arenaoctree3d_setTraversalStackCap: (a: number, b: number, c: number) => void;
8263
+ readonly arenaoctree3d_traversalStackCap: (a: number) => number;
7670
8264
  readonly aspectRatio: (a: number, b: number) => void;
7671
8265
  readonly assignLayers: (a: number, b: number, c: any) => void;
7672
8266
  readonly backboneresult_backboneCsr: (a: number) => number;
@@ -7803,7 +8397,7 @@ export interface InitOutput {
7803
8397
  readonly computeChebyshevBandpassCoefficients: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
7804
8398
  readonly computeDiffusionEmbedding: (a: number, b: number, c: any) => void;
7805
8399
  readonly computeEffectiveResistances: (a: number, b: number, c: any) => void;
7806
- readonly computeFuzzySimplicialSet: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
8400
+ readonly computeFuzzySimplicialSet: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => void;
7807
8401
  readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
7808
8402
  readonly computeKnnProbabilities: (a: number, b: number, c: number, d: number, e: any) => void;
7809
8403
  readonly computeMedian2hopPerplexity: (a: number, b: number, c: any) => void;
@@ -7830,28 +8424,6 @@ export interface InitOutput {
7830
8424
  readonly crossingsummary_count: (a: number) => number;
7831
8425
  readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
7832
8426
  readonly crosslessness: (a: number, b: number, c: number) => void;
7833
- readonly csrgraph_degree: (a: number, b: number, c: number) => void;
7834
- readonly csrgraph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
7835
- readonly csrgraph_edges: (a: number, b: number) => void;
7836
- readonly csrgraph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
7837
- readonly csrgraph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
7838
- readonly csrgraph_hasEdge: (a: number, b: number, c: number, d: number) => void;
7839
- readonly csrgraph_indices: (a: number, b: number) => void;
7840
- readonly csrgraph_indptr: (a: number, b: number) => void;
7841
- readonly csrgraph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
7842
- readonly csrgraph_isConnected: (a: number) => number;
7843
- readonly csrgraph_isDirected: (a: number) => number;
7844
- readonly csrgraph_isEmpty: (a: number) => number;
7845
- readonly csrgraph_isWeighted: (a: number) => number;
7846
- readonly csrgraph_largestConnectedComponent: (a: number) => number;
7847
- readonly csrgraph_len: (a: number) => number;
7848
- readonly csrgraph_length: (a: number) => number;
7849
- readonly csrgraph_neighbors: (a: number, b: number, c: number) => void;
7850
- readonly csrgraph_nnz: (a: number) => number;
7851
- readonly csrgraph_numEdges: (a: number) => number;
7852
- readonly csrgraph_numNodes: (a: number) => number;
7853
- readonly csrgraph_weightDtype: (a: number) => number;
7854
- readonly csrgraph_weights: (a: number, b: number) => void;
7855
8427
  readonly csrmatrix_diagonal: (a: number, b: number) => void;
7856
8428
  readonly csrmatrix_estimateLambdaMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
7857
8429
  readonly csrmatrix_estimateLambdaMaxLanczos: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
@@ -7937,16 +8509,18 @@ export interface InitOutput {
7937
8509
  readonly drgraphsolver_target: (a: number) => number;
7938
8510
  readonly drgraphsolver_totalIterations: (a: number) => number;
7939
8511
  readonly dynamickdtree_dims: (a: number) => number;
7940
- readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number) => void;
7941
- readonly dynamickdtree_fromLayoutNd: (a: number, b: number) => void;
8512
+ readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
8513
+ readonly dynamickdtree_fromLayoutNd: (a: number, b: number, c: any) => void;
7942
8514
  readonly dynamickdtree_isEmpty: (a: number) => number;
7943
8515
  readonly dynamickdtree_kNearest: (a: number, b: number, c: number, d: number, e: number) => void;
7944
8516
  readonly dynamickdtree_kNearestExcludingSelf: (a: number, b: number, c: number, d: number) => void;
8517
+ readonly dynamickdtree_leafSize: (a: number) => number;
7945
8518
  readonly dynamickdtree_len: (a: number) => number;
7946
8519
  readonly dynamickdtree_nearestExcludingSelf: (a: number, b: number, c: number) => void;
7947
- readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number) => void;
8520
+ readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
7948
8521
  readonly dynamickdtree_numNodes: (a: number) => number;
7949
8522
  readonly dynamickdtree_point: (a: number, b: number, c: number) => void;
8523
+ readonly dynamickdtree_setLeafSize: (a: number, b: number, c: number) => void;
7950
8524
  readonly dynamickdtree_withinRadius: (a: number, b: number, c: number, d: number, e: number) => void;
7951
8525
  readonly dynamickdtree_withinRadiusSq: (a: number, b: number, c: number, d: number, e: number) => void;
7952
8526
  readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -7992,6 +8566,7 @@ export interface InitOutput {
7992
8566
  readonly eigenresult_usedDenseFallback: (a: number) => number;
7993
8567
  readonly eigenresult_vectors: (a: number, b: number) => void;
7994
8568
  readonly extract1hop2hopCsr: (a: number, b: number) => void;
8569
+ readonly extract1hopTetherWeights: (a: number, b: number, c: number, d: any) => void;
7995
8570
  readonly extractQuadrilateralBackbone: (a: number, b: number, c: any) => void;
7996
8571
  readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: any) => void;
7997
8572
  readonly extractSparse1hop2hopPairsWithMode: (a: number, b: number, c: any) => void;
@@ -8009,7 +8584,20 @@ export interface InitOutput {
8009
8584
  readonly fdebsolver_step: (a: number, b: number, c: number) => void;
8010
8585
  readonly fdebsolver_target: (a: number) => number;
8011
8586
  readonly fdebsolver_totalIterations: (a: number) => number;
8012
- readonly findAbParams: (a: number, b: number, c: number, d: number, e: number) => void;
8587
+ readonly fieldfftstats_inverseFfts: (a: number) => number;
8588
+ readonly fieldfftstats_kernelForwardFfts: (a: number) => number;
8589
+ readonly fieldfftstats_nx: (a: number) => number;
8590
+ readonly fieldfftstats_ny: (a: number) => number;
8591
+ readonly fieldfftstats_particleForwardFfts: (a: number) => number;
8592
+ readonly fieldfftstats_totalFft2dCalls: (a: number) => number;
8593
+ readonly fieldrepulsionkernel_cauchy: () => number;
8594
+ readonly fieldrepulsionkernel_gamma: (a: number, b: number) => void;
8595
+ readonly fieldrepulsionkernel_generalizedCauchy: (a: number, b: number) => void;
8596
+ readonly fieldrepulsionkernel_kind: (a: number, b: number) => void;
8597
+ readonly fieldrepulsionkernel_minScreen: (a: number, b: number) => void;
8598
+ readonly fieldrepulsionkernel_screenFrac: (a: number, b: number) => void;
8599
+ readonly fieldrepulsionkernel_screenedCauchy: (a: number, b: number, c: number, d: number) => void;
8600
+ readonly findAbParams: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
8013
8601
  readonly fitfieldstats_inverseFfts: (a: number) => number;
8014
8602
  readonly fitfieldstats_kernelForwardFfts: (a: number) => number;
8015
8603
  readonly fitfieldstats_particleForwardFfts: (a: number) => number;
@@ -8087,6 +8675,28 @@ export interface InitOutput {
8087
8675
  readonly graph12hopRowNormalizedProbabilities: (a: number, b: number, c: any) => void;
8088
8676
  readonly graph12hopRowNormalizedProbabilitiesWithOptions: (a: number, b: number, c: any) => void;
8089
8677
  readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
8678
+ readonly graph_degree: (a: number, b: number, c: number) => void;
8679
+ readonly graph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
8680
+ readonly graph_edges: (a: number, b: number) => void;
8681
+ readonly graph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
8682
+ readonly graph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
8683
+ readonly graph_hasEdge: (a: number, b: number, c: number, d: number) => void;
8684
+ readonly graph_indices: (a: number, b: number) => void;
8685
+ readonly graph_indptr: (a: number, b: number) => void;
8686
+ readonly graph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
8687
+ readonly graph_isConnected: (a: number) => number;
8688
+ readonly graph_isDirected: (a: number) => number;
8689
+ readonly graph_isEmpty: (a: number) => number;
8690
+ readonly graph_isWeighted: (a: number) => number;
8691
+ readonly graph_largestConnectedComponent: (a: number) => number;
8692
+ readonly graph_len: (a: number) => number;
8693
+ readonly graph_length: (a: number) => number;
8694
+ readonly graph_neighbors: (a: number, b: number, c: number) => void;
8695
+ readonly graph_nnz: (a: number) => number;
8696
+ readonly graph_numEdges: (a: number) => number;
8697
+ readonly graph_numNodes: (a: number) => number;
8698
+ readonly graph_weightDtype: (a: number) => number;
8699
+ readonly graph_weights: (a: number, b: number) => void;
8090
8700
  readonly graphcnesolver__run2d: (a: number, b: number, c: number) => void;
8091
8701
  readonly graphcnesolver__run3d: (a: number, b: number, c: number) => void;
8092
8702
  readonly graphcnesolver__runManifold: (a: number, b: number, c: number) => void;
@@ -8178,6 +8788,14 @@ export interface InitOutput {
8178
8788
  readonly hybridknnresult_nPure2hopRows: (a: number) => number;
8179
8789
  readonly hybridknnresult_nnz: (a: number) => number;
8180
8790
  readonly hyperbolicCrossingNumber: (a: number, b: number, c: number) => void;
8791
+ readonly ibumaphubdamping_explicit: (a: number, b: any) => void;
8792
+ readonly ibumaphubdamping_exponent: (a: number, b: number) => void;
8793
+ readonly ibumaphubdamping_hubEta: (a: number, b: number) => void;
8794
+ readonly ibumaphubdamping_inverseDegree: () => number;
8795
+ readonly ibumaphubdamping_inverseDegreePower: (a: number, b: number) => void;
8796
+ readonly ibumaphubdamping_kind: (a: number, b: number) => void;
8797
+ readonly ibumaphubdamping_medianRowSum: () => number;
8798
+ readonly ibumaphubdamping_none: () => number;
8181
8799
  readonly ibumapsolver_a: (a: number) => number;
8182
8800
  readonly ibumapsolver_ab: (a: number, b: number) => void;
8183
8801
  readonly ibumapsolver_b: (a: number) => number;
@@ -8185,8 +8803,10 @@ export interface InitOutput {
8185
8803
  readonly ibumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: any) => void;
8186
8804
  readonly ibumapsolver_fromKnn: (a: number, b: number, c: any) => void;
8187
8805
  readonly ibumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
8806
+ readonly ibumapsolver_hubEta: (a: number, b: number) => void;
8188
8807
  readonly ibumapsolver_isFinished: (a: number) => number;
8189
8808
  readonly ibumapsolver_iteration: (a: number) => number;
8809
+ readonly ibumapsolver_lastFftStats: (a: number) => number;
8190
8810
  readonly ibumapsolver_new: (a: number, b: number, c: any) => void;
8191
8811
  readonly ibumapsolver_numEdges: (a: number) => number;
8192
8812
  readonly ibumapsolver_numNodes: (a: number) => number;
@@ -8408,6 +9028,7 @@ export interface InitOutput {
8408
9028
  readonly manifoldlayout2d_normalizeStd: (a: number, b: number, c: number, d: number) => void;
8409
9029
  readonly manifoldlayout2d_numNodes: (a: number) => number;
8410
9030
  readonly manifoldlayout2d_poincareCentroid: (a: number, b: number) => void;
9031
+ readonly manifoldlayout2d_poincareEps: (a: number) => number;
8411
9032
  readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
8412
9033
  readonly manifoldlayout2d_randomInit: (a: number, b: any, c: number, d: any) => void;
8413
9034
  readonly manifoldlayout2d_recenterPoincare: (a: number, b: number, c: number, d: number) => void;
@@ -8415,6 +9036,7 @@ export interface InitOutput {
8415
9036
  readonly manifoldlayout2d_rescaleGeodesic: (a: number, b: number, c: number) => void;
8416
9037
  readonly manifoldlayout2d_scale: (a: number) => number;
8417
9038
  readonly manifoldlayout2d_setAspect: (a: number, b: number, c: number) => void;
9039
+ readonly manifoldlayout2d_setPoincareEps: (a: number, b: number, c: number) => void;
8418
9040
  readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
8419
9041
  readonly manifoldlayout2d_setScale: (a: number, b: number, c: number) => void;
8420
9042
  readonly manifoldlayout2d_setTorusExtents: (a: number, b: number, c: number, d: number) => void;
@@ -8447,6 +9069,14 @@ export interface InitOutput {
8447
9069
  readonly maxentstresssolver_status: (a: number) => number;
8448
9070
  readonly maxentstresssolver_target: (a: number) => number;
8449
9071
  readonly maxentstresssolver_totalIterations: (a: number) => number;
9072
+ readonly metricanchorweighting_balancedInvD2: () => number;
9073
+ readonly metricanchorweighting_dGate: (a: number, b: number) => void;
9074
+ readonly metricanchorweighting_inversePower: (a: number, b: number) => void;
9075
+ readonly metricanchorweighting_kind: (a: number, b: number) => void;
9076
+ readonly metricanchorweighting_longRangeGated: (a: number, b: number, c: number) => void;
9077
+ readonly metricanchorweighting_medianFrac: (a: number, b: number) => void;
9078
+ readonly metricanchorweighting_power: (a: number, b: number) => void;
9079
+ readonly metricanchorweighting_relativeLongRangeGated: (a: number, b: number, c: number) => void;
8450
9080
  readonly metricreport_adjustedPatchNig: (a: number, b: number) => void;
8451
9081
  readonly metricreport_angularResolution: (a: number, b: number) => void;
8452
9082
  readonly metricreport_aspectRatio: (a: number, b: number) => void;
@@ -8562,8 +9192,17 @@ export interface InitOutput {
8562
9192
  readonly pivotMdsFromDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
8563
9193
  readonly pivotMdsInit: (a: number, b: number, c: any) => void;
8564
9194
  readonly pivotMdsWithPivots: (a: number, b: number, c: number, d: number, e: any) => void;
8565
- readonly pivotmds_generate: (a: number, b: number, c: number) => void;
9195
+ readonly pivotmds__generateDist: (a: number, b: number) => void;
9196
+ readonly pivotmds__generateGraph: (a: number, b: number, c: number) => void;
9197
+ readonly pivotmds__generateWithReportDist: (a: number, b: number) => void;
9198
+ readonly pivotmds__generateWithReportGraph: (a: number, b: number, c: number) => void;
9199
+ readonly pivotmds_fromPivotDistances: (a: number, b: any, c: number, d: number, e: any) => void;
8566
9200
  readonly pivotmds_new: (a: number, b: any) => void;
9201
+ readonly pivotmdsreport_eigenvalues: (a: number, b: number) => void;
9202
+ readonly pivotmdsreport_embeddability2d: (a: number) => number;
9203
+ readonly pivotmdsreport_explainedVarianceRatio: (a: number, b: number, c: number) => void;
9204
+ readonly pivotmdsreportresult_layout: (a: number) => any;
9205
+ readonly pivotmdsreportresult_report: (a: number) => number;
8567
9206
  readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
8568
9207
  readonly poincareEinsteinMidpoint: (a: number, b: number, c: number, d: number, e: number) => void;
8569
9208
  readonly poincareMobiusAdd: (a: number, b: number, c: number, d: number, e: number) => void;
@@ -8583,16 +9222,18 @@ export interface InitOutput {
8583
9222
  readonly prismoverlapremoval_status: (a: number) => number;
8584
9223
  readonly prismoverlapremoval_step: (a: number, b: number, c: number) => void;
8585
9224
  readonly prismoverlapremoval_totalIterations: (a: number) => number;
8586
- readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
9225
+ readonly project1d: (a: number, b: number, c: number, d: any, e: any, f: any) => void;
8587
9226
  readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: any) => void;
8588
9227
  readonly projectClusteredLayoutWithRadii: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
8589
9228
  readonly projectClusteredRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
8590
- readonly projectLayoutAxis: (a: number, b: number, c: any, d: any) => void;
9229
+ readonly projectLayoutAxis: (a: number, b: number, c: any, d: any, e: any) => void;
8591
9230
  readonly projectPsdSpectralFilter: (a: number, b: any, c: any) => void;
8592
9231
  readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
8593
9232
  readonly randomWalkLaplacian: (a: number) => number;
8594
9233
  readonly rdMds: (a: number, b: number, c: any) => void;
8595
- readonly rdmds_generate: (a: number, b: number, c: number) => void;
9234
+ readonly rdmds__generateEigenpairs: (a: number, b: number) => void;
9235
+ readonly rdmds__generateGraph: (a: number, b: number, c: number) => void;
9236
+ readonly rdmds_fromEigenpairs: (a: number, b: any, c: any, d: any, e: any) => void;
8596
9237
  readonly rdmds_new: (a: number, b: any) => void;
8597
9238
  readonly rectangleOverlaps: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
8598
9239
  readonly refineClusterLayout: (a: number, b: number, c: any, d: any) => void;
@@ -8744,7 +9385,10 @@ export interface InitOutput {
8744
9385
  readonly sgd2solver__step3d: (a: number, b: number, c: number) => void;
8745
9386
  readonly sgd2solver__stepManifold: (a: number, b: number, c: number) => void;
8746
9387
  readonly sgd2solver__stepNd: (a: number, b: number, c: number) => void;
9388
+ readonly sgd2solver_batchSize: (a: number) => number;
8747
9389
  readonly sgd2solver_currentEta: (a: number) => number;
9390
+ readonly sgd2solver_damping: (a: number) => number;
9391
+ readonly sgd2solver_eps: (a: number) => number;
8748
9392
  readonly sgd2solver_isFinished: (a: number) => number;
8749
9393
  readonly sgd2solver_iteration: (a: number) => number;
8750
9394
  readonly sgd2solver_new: (a: number, b: number, c: any) => void;
@@ -8752,6 +9396,7 @@ export interface InitOutput {
8752
9396
  readonly sgd2solver_numSprings: (a: number) => number;
8753
9397
  readonly sgd2solver_resetSchedule: (a: number, b: number, c: any) => void;
8754
9398
  readonly sgd2solver_status: (a: number) => number;
9399
+ readonly sgd2solver_stepScale: (a: number) => number;
8755
9400
  readonly sgd2solver_target: (a: number) => number;
8756
9401
  readonly sgd2solver_totalIterations: (a: number) => number;
8757
9402
  readonly sgdsolver__run2d: (a: number, b: number, c: number) => void;
@@ -8785,6 +9430,7 @@ export interface InitOutput {
8785
9430
  readonly sgdsolver_numSprings: (a: number) => number;
8786
9431
  readonly sgdsolver_omega: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
8787
9432
  readonly sgdsolver_ortmannSparseStress: (a: number, b: number, c: any) => void;
9433
+ readonly sgdsolver_ortmannSparseStressFromPivots: (a: number, b: number, c: any, d: any, e: any) => void;
8788
9434
  readonly sgdsolver_randomPair: (a: number, b: number, c: any) => void;
8789
9435
  readonly sgdsolver_resetSchedule: (a: number, b: number, c: any) => void;
8790
9436
  readonly sgdsolver_sparseBarrierDog: (a: number, b: number, c: any) => void;
@@ -8797,6 +9443,7 @@ export interface InitOutput {
8797
9443
  readonly sgdsolver_totalIterations: (a: number) => number;
8798
9444
  readonly shiftedNormalizedLaplacian: (a: number, b: number, c: number, d: number) => void;
8799
9445
  readonly smallestLaplacianEigenpairs: (a: number, b: number, c: any) => void;
9446
+ readonly smallestSymLaplacianEigenpairsAmg: (a: number, b: number, c: any) => void;
8800
9447
  readonly snaptfdpsolver__run2d: (a: number, b: number, c: number) => void;
8801
9448
  readonly snaptfdpsolver__run3d: (a: number, b: number, c: number) => void;
8802
9449
  readonly snaptfdpsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -8948,6 +9595,7 @@ export interface InitOutput {
8948
9595
  readonly tfdpsolver_fromKnn: (a: number, b: any, c: any, d: any, e: any) => void;
8949
9596
  readonly tfdpsolver_isFinished: (a: number) => number;
8950
9597
  readonly tfdpsolver_iteration: (a: number) => number;
9598
+ readonly tfdpsolver_lastFftStats: (a: number) => number;
8951
9599
  readonly tfdpsolver_new: (a: number, b: number, c: any) => void;
8952
9600
  readonly tfdpsolver_numEdges: (a: number) => number;
8953
9601
  readonly tfdpsolver_numNodes: (a: number) => number;
@@ -8970,6 +9618,8 @@ export interface InitOutput {
8970
9618
  readonly toruscrossing_v1: (a: number) => number;
8971
9619
  readonly toruscrossing_v2: (a: number) => number;
8972
9620
  readonly transitiveReduction: (a: number, b: number) => void;
9621
+ readonly tsnetsolver__fromProbabilitiesWithConformalNoAnchor: (a: number, b: number, c: any, d: any, e: any) => void;
9622
+ readonly tsnetsolver__fromProbabilitiesWithConformalWithAnchor: (a: number, b: number, c: any, d: any, e: number, f: any) => void;
8973
9623
  readonly tsnetsolver__run2d: (a: number, b: number, c: number) => void;
8974
9624
  readonly tsnetsolver__run3d: (a: number, b: number, c: number) => void;
8975
9625
  readonly tsnetsolver__runManifold: (a: number, b: number, c: number) => void;
@@ -9003,12 +9653,16 @@ export interface InitOutput {
9003
9653
  readonly tsnetsolver_target: (a: number) => number;
9004
9654
  readonly tsnetsolver_totalFft2dCalls: (a: number) => number;
9005
9655
  readonly tsnetsolver_totalIterations: (a: number) => number;
9656
+ readonly tsnetstage_coercive1hop: (a: number) => number;
9006
9657
  readonly tsnetstage_exaggeration: (a: number) => number;
9007
9658
  readonly tsnetstage_iterations: (a: number) => number;
9008
9659
  readonly tsnetstage_lambdaC: (a: number) => number;
9009
9660
  readonly tsnetstage_lambdaKl: (a: number) => number;
9661
+ readonly tsnetstage_lambdaMetric: (a: number) => number;
9010
9662
  readonly tsnetstage_lambdaR: (a: number) => number;
9011
9663
  readonly tsnetstage_new: (a: number, b: any, c: any) => void;
9664
+ readonly tsnetstage_spring1hop: (a: number) => number;
9665
+ readonly tsnetstage_springDeadzone: (a: number) => number;
9012
9666
  readonly twindeclutterer_apply: (a: number, b: number, c: number) => void;
9013
9667
  readonly twindeclutterer_lastClusterCount: (a: number) => number;
9014
9668
  readonly twindeclutterer_lastMovedCount: (a: number) => number;
@@ -9024,6 +9678,17 @@ export interface InitOutput {
9024
9678
  readonly twohopknnresult_n2hop: (a: number) => number;
9025
9679
  readonly twohopknnresult_nTruncated2hop: (a: number) => number;
9026
9680
  readonly twohopknnresult_nnz: (a: number) => number;
9681
+ readonly unifiedmetricanchor_activeFraction: (a: number) => number;
9682
+ readonly unifiedmetricanchor_fromEmbeddingPivots: (a: number, b: any, c: number, d: number, e: any, f: any) => void;
9683
+ readonly unifiedmetricanchor_fromF64Pivots: (a: number, b: number, c: any, d: any, e: any) => void;
9684
+ readonly unifiedmetricanchor_fromHopPivots: (a: number, b: number, c: any, d: any, e: any) => void;
9685
+ readonly unifiedmetricanchor_numNodes: (a: number) => number;
9686
+ readonly unifiedmetricanchor_pivotDistances: (a: number, b: number) => void;
9687
+ readonly unifiedmetricanchor_pivots: (a: number, b: number) => void;
9688
+ readonly unifiedmetricanchor_scaleAlpha: (a: number) => number;
9689
+ readonly unifiedmetricanchor_softEps: (a: number) => number;
9690
+ readonly unifiedmetricanchor_sumWd2: (a: number) => number;
9691
+ readonly unifiedmetricanchor_weights: (a: number, b: number) => void;
9027
9692
  readonly wasmMemory: () => any;
9028
9693
  readonly wasm_start: () => void;
9029
9694
  readonly wrapTorusPoint: (a: number, b: number, c: number) => void;
@@ -9081,31 +9746,31 @@ export function initSync(module: { module: SyncInitInput } | SyncInitInput): Ini
9081
9746
  export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
9082
9747
 
9083
9748
 
9084
- export function evaluateMetrics(graph: CsrGraph, layout: AnyLayout, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
9749
+ export function evaluateMetrics(graph: Graph, layout: AnyLayout, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
9085
9750
 
9086
- export function scaleNormalizedStress(graph: CsrGraph, layout: AnyLayout): number;
9087
- export function scaleNormalizedStressDetail(graph: CsrGraph, layout: AnyLayout): StressEvaluation;
9088
- export function sampledScaleNormalizedStress(graph: CsrGraph, layout: AnyLayout, options?: SampledStressOptions | null): number;
9751
+ export function scaleNormalizedStress(graph: Graph, layout: AnyLayout): number;
9752
+ export function scaleNormalizedStressDetail(graph: Graph, layout: AnyLayout): StressEvaluation;
9753
+ export function sampledScaleNormalizedStress(graph: Graph, layout: AnyLayout, options?: SampledStressOptions | null): number;
9089
9754
  export function scaleNormalizedStressFromDistances(layout: AnyLayout, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
9090
- export function neighborhoodPreservation1Hop(graph: CsrGraph, layout: AnyLayout): number;
9091
- export function neighborhoodPreservation2Hop(graph: CsrGraph, layout: AnyLayout): number;
9092
- export function sampledNp1(graph: CsrGraph, layout: AnyLayout, options?: SamplingSeedOptions | null): number;
9093
- export function sampledNp2(graph: CsrGraph, layout: AnyLayout, options?: SamplingSeedOptions | null): number;
9094
- export function gabrielGraphProperty(graph: CsrGraph, layout: AnyLayout): number;
9755
+ export function neighborhoodPreservation1Hop(graph: Graph, layout: AnyLayout): number;
9756
+ export function neighborhoodPreservation2Hop(graph: Graph, layout: AnyLayout): number;
9757
+ export function sampledNp1(graph: Graph, layout: AnyLayout, options?: SamplingSeedOptions | null): number;
9758
+ export function sampledNp2(graph: Graph, layout: AnyLayout, options?: SamplingSeedOptions | null): number;
9759
+ export function gabrielGraphProperty(graph: Graph, layout: AnyLayout): number;
9095
9760
  export function nodeResolution(layout: AnyLayout): number;
9096
- export function drngPreservation(graph: CsrGraph, layout: AnyLayout): number;
9097
- export function dggPreservation(graph: CsrGraph, layout: AnyLayout): number;
9098
- export function idealEdgeLengths(graph: CsrGraph, layout: AnyLayout): number;
9099
- export function idealEdgeLengthsWithUnit(graph: CsrGraph, layout: AnyLayout, unitEdgeLength: number): number;
9100
- export function layoutDegeneracy(graph: CsrGraph, layout: AnyLayout): LayoutDegeneracy;
9761
+ export function drngPreservation(graph: Graph, layout: AnyLayout): number;
9762
+ export function dggPreservation(graph: Graph, layout: AnyLayout): number;
9763
+ export function idealEdgeLengths(graph: Graph, layout: AnyLayout): number;
9764
+ export function idealEdgeLengthsWithUnit(graph: Graph, layout: AnyLayout, unitEdgeLength: number): number;
9765
+ export function layoutDegeneracy(graph: Graph, layout: AnyLayout): LayoutDegeneracy;
9101
9766
  export function gabrielGraphEdges(layout: AnyLayout): Uint32Array;
9102
9767
  export function relativeNeighborhoodEdges(layout: AnyLayout): Uint32Array;
9103
- export function landmarkStratifiedRta(graph: CsrGraph, layout: AnyLayout, options?: RtaOptions | null): number;
9104
- export function landmarkStratifiedRtaDetail(graph: CsrGraph, layout: AnyLayout, options?: RtaOptions | null): RtaEvaluation;
9768
+ export function landmarkStratifiedRta(graph: Graph, layout: AnyLayout, options?: RtaOptions | null): number;
9769
+ export function landmarkStratifiedRtaDetail(graph: Graph, layout: AnyLayout, options?: RtaOptions | null): RtaEvaluation;
9105
9770
  export function landmarkStratifiedRtaFromLandmarks(layout: AnyLayout, landmarkIds: Uint32Array | number[], landmarkDists: Float64Array | Float32Array | Uint32Array | number[], options?: RtaFromLandmarksOptions | null): RtaEvaluation;
9106
- export function torusCrossingNumber(graph: CsrGraph, layout: Layout2d | ManifoldLayout2d): number;
9107
- export function crossingEdgesTorus(graph: CsrGraph, layout: Layout2d | ManifoldLayout2d): TorusCrossing[];
9108
- export function torusLayoutEdgeSegments(graph: CsrGraph, layout: Layout2d | ManifoldLayout2d): Float64Array;
9771
+ export function torusCrossingNumber(graph: Graph, layout: Layout2d | ManifoldLayout2d): number;
9772
+ export function crossingEdgesTorus(graph: Graph, layout: Layout2d | ManifoldLayout2d): TorusCrossing[];
9773
+ export function torusLayoutEdgeSegments(graph: Graph, layout: Layout2d | ManifoldLayout2d): Float64Array;
9109
9774
  export function cqKmeans(layout: AnyLayout, labels: Uint32Array | number[], options?: CqKmeansOptions | null): PartitionAgreementResult;
9110
9775
  export function cqHac(layout: AnyLayout, labels: Uint32Array | number[]): PartitionAgreementResult;
9111
9776
  export function distanceConsistency(layout: AnyLayout, labels: Uint32Array | number[]): number;