egraph 6.0.0-rc.1 → 6.0.0-rc.2

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.
@@ -507,25 +507,25 @@ export class ClassicalMds {
507
507
  }
508
508
 
509
509
  /**
510
- * Detailed Grid-based Cluster Area Faithfulness (`G-CAF`) report returned by
511
- * `clusterAreaFaithfulnessDetail`.
510
+ * Grid-based Cluster Area Faithfulness (`G-CAF`) summary and optional per-cluster
511
+ * diagnostics returned by `clusterAreaFaithfulnessDetail` and `MetricReport.clusterAreaReport`.
512
512
  */
513
513
  export class ClusterAreaReport {
514
514
  private constructor();
515
515
  free(): void;
516
516
  [Symbol.dispose](): void;
517
- cafPerCluster(): Float64Array;
518
- clusterIds(): Uint32Array;
519
- coherence(): Float64Array;
520
- counts(): Uint32Array;
521
- p(): Float64Array;
522
- purity(): Float64Array;
523
- q(): Float64Array;
524
- resDeconvPerCluster(): Float64Array;
525
- resDensityPerCluster(): Float64Array;
526
- resolution(): Float64Array;
527
- /**
528
- * Converts summary and per-cluster diagnostics into a plain JavaScript object without `serde`.
517
+ cafPerCluster(): Float64Array | undefined;
518
+ clusterIds(): Uint32Array | undefined;
519
+ coherence(): Float64Array | undefined;
520
+ counts(): Uint32Array | undefined;
521
+ p(): Float64Array | undefined;
522
+ purity(): Float64Array | undefined;
523
+ q(): Float64Array | undefined;
524
+ resDeconvPerCluster(): Float64Array | undefined;
525
+ resDensityPerCluster(): Float64Array | undefined;
526
+ resolution(): Float64Array | undefined;
527
+ /**
528
+ * Converts summary and optional per-cluster diagnostics into a plain JavaScript object without `serde`.
529
529
  */
530
530
  toRecord(): object;
531
531
  readonly caf: number;
@@ -744,6 +744,63 @@ export class CoarsenedHierarchyResult {
744
744
  readonly numLevels: number;
745
745
  }
746
746
 
747
+ /**
748
+ * r" Intra-graph sibling repulsion acceleration backend for `CoseSolver` and `FcoseSolver`.
749
+ */
750
+ export enum CoseRepulsionBackend {
751
+ Grid = 0,
752
+ Exact = 1,
753
+ }
754
+
755
+ /**
756
+ * Cooperative Doğrusöz et al. (2009) Compound Spring Embedder (`CoSE`) solver (`f32`).
757
+ */
758
+ export class CoseSolver {
759
+ free(): void;
760
+ [Symbol.dispose](): void;
761
+ /**
762
+ * Returns the current per-node bounding rectangles (`centerX`, `centerY`, `width`, `height`,
763
+ * `minX`, `maxX`, `minY`, `maxY`).
764
+ */
765
+ compoundBounds(): Array<any>;
766
+ /**
767
+ * Constructs a `CoseSolver` from `graph` and optional `CoseOptions`.
768
+ */
769
+ constructor(graph: Graph, options: any);
770
+ /**
771
+ * Executes up to `steps` `CoSE` iterations on `layout` in place.
772
+ */
773
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
774
+ /**
775
+ * Runs `CoSE` optimization to completion on `layout` in place.
776
+ */
777
+ run(layout: Layout2d): SolverStatus;
778
+ /**
779
+ * Executes one `CoSE` iteration on `layout` in place.
780
+ */
781
+ step(layout: Layout2d): SolverStatus;
782
+ /**
783
+ * Returns `true` when the solver has converged, completed, or failed.
784
+ */
785
+ readonly isFinished: boolean;
786
+ /**
787
+ * Returns the number of iterations executed so far.
788
+ */
789
+ readonly iteration: number;
790
+ /**
791
+ * Returns the expected vertex count.
792
+ */
793
+ readonly numNodes: number;
794
+ /**
795
+ * Returns the solver lifecycle status (`SolverStatus`).
796
+ */
797
+ readonly status: SolverStatus;
798
+ /**
799
+ * Returns the scheduled maximum iteration budget (`maxIterations`).
800
+ */
801
+ readonly totalIterations: number | undefined;
802
+ }
803
+
747
804
  /**
748
805
  * Non-adjacent crossing edge pair details returned by `crossingEdges`, `crossingEdgesSpherical`,
749
806
  * and `crossingEdgesHyperbolic`.
@@ -1277,6 +1334,88 @@ export class EigenResult {
1277
1334
  readonly usedDenseFallback: boolean;
1278
1335
  }
1279
1336
 
1337
+ /**
1338
+ * One-shot Balcı & Doğrusöz (2022) `fCoSE` Phase I spectral draft + Phase II constraint
1339
+ * alignment generator (`f32`).
1340
+ */
1341
+ export class FcoseDraftGenerator {
1342
+ free(): void;
1343
+ [Symbol.dispose](): void;
1344
+ /**
1345
+ * Returns the most recently computed per-node bounding rectangles.
1346
+ */
1347
+ compoundBounds(): Array<any>;
1348
+ /**
1349
+ * Generates the Phase I + Phase II constrained draft `Layout2d`.
1350
+ */
1351
+ generate(): Layout2d;
1352
+ /**
1353
+ * Constructs a validated `FcoseDraftGenerator` from `graph` and optional `FcoseOptions`.
1354
+ */
1355
+ constructor(graph: Graph, options: any);
1356
+ /**
1357
+ * Returns the expected vertex count.
1358
+ */
1359
+ readonly numNodes: number;
1360
+ }
1361
+
1362
+ /**
1363
+ * r" Quality preset for `FcoseDraftGenerator` and `FcoseSolver`.
1364
+ */
1365
+ export enum FcoseQuality {
1366
+ Default = 0,
1367
+ Proof = 1,
1368
+ }
1369
+
1370
+ /**
1371
+ * Cooperative Balcı & Doğrusöz (2022) Fast Compound Spring Embedder (`fCoSE`) solver (`f32`).
1372
+ */
1373
+ export class FcoseSolver {
1374
+ free(): void;
1375
+ [Symbol.dispose](): void;
1376
+ /**
1377
+ * Returns the current per-node bounding rectangles (`centerX`, `centerY`, `width`, `height`,
1378
+ * `minX`, `maxX`, `minY`, `maxY`).
1379
+ */
1380
+ compoundBounds(): Array<any>;
1381
+ /**
1382
+ * Constructs an `FcoseSolver` from `graph` and optional `FcoseOptions`.
1383
+ */
1384
+ constructor(graph: Graph, options: any);
1385
+ /**
1386
+ * Executes up to `steps` Phase III constrained `fCoSE` iterations on `layout` in place.
1387
+ */
1388
+ runSteps(layout: Layout2d, steps: number): SolverStatus;
1389
+ /**
1390
+ * Runs Phase III constrained `fCoSE` optimization to completion on `layout` in place.
1391
+ */
1392
+ run(layout: Layout2d): SolverStatus;
1393
+ /**
1394
+ * Executes one Phase III constrained `fCoSE` iteration on `layout` in place.
1395
+ */
1396
+ step(layout: Layout2d): SolverStatus;
1397
+ /**
1398
+ * Returns `true` when the solver has converged, completed, or failed.
1399
+ */
1400
+ readonly isFinished: boolean;
1401
+ /**
1402
+ * Returns the number of Phase III iterations executed so far.
1403
+ */
1404
+ readonly iteration: number;
1405
+ /**
1406
+ * Returns the expected vertex count.
1407
+ */
1408
+ readonly numNodes: number;
1409
+ /**
1410
+ * Returns the solver lifecycle status (`SolverStatus`).
1411
+ */
1412
+ readonly status: SolverStatus;
1413
+ /**
1414
+ * Returns the scheduled maximum Phase III iteration budget (`maxIterations`).
1415
+ */
1416
+ readonly totalIterations: number | undefined;
1417
+ }
1418
+
1280
1419
  /**
1281
1420
  * Cooperative Force-Directed Edge Bundling (`FDEB`) solver (`f32`) mutating `EdgePolylines`
1282
1421
  * in place across `"layout2d"`, `"layout3d"`, and `"layoutNd"`.
@@ -3003,6 +3142,7 @@ export class MetricReport {
3003
3142
  readonly calinskiHarabaszScore: number | undefined;
3004
3143
  readonly classDensityMeasure: number | undefined;
3005
3144
  readonly clusterAreaFaithfulness: number | undefined;
3145
+ readonly clusterAreaReport: ClusterAreaReport | undefined;
3006
3146
  readonly cqHacAmi: number | undefined;
3007
3147
  readonly cqHacHom: number | undefined;
3008
3148
  readonly cqKmeansAmi: number | undefined;
@@ -3013,6 +3153,10 @@ export class MetricReport {
3013
3153
  readonly crossingNumber: number | undefined;
3014
3154
  readonly crosslessness: number | undefined;
3015
3155
  readonly daviesBouldinScore: number | undefined;
3156
+ readonly degreeConstrainedGabrielGraphPreservation: number | undefined;
3157
+ readonly degreeConstrainedRelativeNeighborhoodPreservation: number | undefined;
3158
+ readonly degreeGabrielGraphPreservation: number | undefined;
3159
+ readonly degreeRelativeNeighborhoodPreservation: number | undefined;
3016
3160
  readonly distanceConsistency: number | undefined;
3017
3161
  readonly distributionConsistency: number | undefined;
3018
3162
  readonly gabrielGraphPreservation: number | undefined;
@@ -3021,6 +3165,7 @@ export class MetricReport {
3021
3165
  readonly histogramDensityMeasure: number | undefined;
3022
3166
  readonly idealEdgeLengths: number | undefined;
3023
3167
  readonly landmarkStratifiedRta: number | undefined;
3168
+ readonly layoutDegeneracyDetail: LayoutDegeneracy | undefined;
3024
3169
  readonly layoutDegeneracy: number | undefined;
3025
3170
  readonly minimumAngleA1: number | undefined;
3026
3171
  readonly minimumAngle: number | undefined;
@@ -3104,6 +3249,10 @@ export enum MetricTarget {
3104
3249
  PairwiseDistanceOverlapError = 45,
3105
3250
  SprawlterNn = 46,
3106
3251
  NorMetrics = 47,
3252
+ DegreeRelativeNeighborhoodPreservation = 48,
3253
+ DegreeGabrielGraphPreservation = 49,
3254
+ DegreeConstrainedRelativeNeighborhoodPreservation = 50,
3255
+ DegreeConstrainedGabrielGraphPreservation = 51,
3107
3256
  }
3108
3257
 
3109
3258
  /**
@@ -4826,10 +4975,27 @@ export class TsNetSolver {
4826
4975
  */
4827
4976
  static fromProbabilitiesWithStages(probs: SparseProbabilities, stages: any, options: any): TsNetSolver;
4828
4977
  static fromProbabilities(probs: SparseProbabilities, options: any): TsNetSolver;
4978
+ /**
4979
+ * Constructs a `graph t-SNE` ($w_2 = 0$) solver using exact 1-hop row-normalized
4980
+ * affinities with Stage-1 learning-rate warmup (`25` steps) and step-norm clipping (`2.0`).
4981
+ */
4982
+ static graphTsne(graph: Graph, options: any): TsNetSolver;
4983
+ /**
4984
+ * Constructs a classic two-stage `L-tsNET` solver using Partial BFS $k$-NN
4985
+ * ($k = \min(120, n - 1)$), fixed base learning rate `200.0`, and stage-2 repulsion
4986
+ * ($\lambda_r = 0.6$).
4987
+ */
4988
+ static lTsnet(graph: Graph, options: any): TsNetSolver;
4829
4989
  lastFftStats(): FitFieldStats | undefined;
4830
4990
  constructor(graph: Graph, options: any);
4831
4991
  static pure2Hop(graph: Graph, options: any): TsNetSolver;
4992
+ /**
4993
+ * Constructs a canonical `RN-tsNET` solver using row-normalized 1+2-hop probabilities,
4994
+ * Stage-1 learning-rate warmup (`25` steps), and step-norm clipping (`2.0`).
4995
+ */
4996
+ static rnTsnet(graph: Graph, options: any): TsNetSolver;
4832
4997
  readonly backend: TsNetBackend;
4998
+ readonly currentEffectiveLr: number;
4833
4999
  readonly currentStageLr: number;
4834
5000
  readonly isFinished: boolean;
4835
5001
  readonly iteration: number;
@@ -5067,15 +5233,92 @@ export function _daviesBouldinScoreManifold(layout: ManifoldLayout2d, labels: an
5067
5233
  export function _daviesBouldinScoreNd(layout: LayoutNd, labels: any): number;
5068
5234
 
5069
5235
  /**
5070
- * Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
5236
+ * Extracts Fang et al. (2025) degree-constrained Gabriel Graph (`dcGG`) edges on `Layout2d`.
5237
+ */
5238
+ export function _degreeConstrainedGabrielGraphEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
5239
+
5240
+ export function _degreeConstrainedGabrielGraphEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
5241
+
5242
+ export function _degreeConstrainedGabrielGraphEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
5243
+
5244
+ export function _degreeConstrainedGabrielGraphEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
5245
+
5246
+ /**
5247
+ * Computes Fang et al. (2025) degree-constrained Gabriel Graph preservation (`Q_{dcGG}`) on `Layout2d`.
5248
+ */
5249
+ export function _degreeConstrainedGabrielGraphPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
5250
+
5251
+ export function _degreeConstrainedGabrielGraphPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
5252
+
5253
+ export function _degreeConstrainedGabrielGraphPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
5254
+
5255
+ export function _degreeConstrainedGabrielGraphPreservationNd(g: Graph, l: LayoutNd, s: any): number;
5256
+
5257
+ /**
5258
+ * Extracts Fang et al. (2025) degree-constrained Relative Neighborhood Graph (`dcRNG`) edges on `Layout2d`.
5259
+ */
5260
+ export function _degreeConstrainedRelativeNeighborhoodEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
5261
+
5262
+ export function _degreeConstrainedRelativeNeighborhoodEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
5263
+
5264
+ export function _degreeConstrainedRelativeNeighborhoodEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
5265
+
5266
+ export function _degreeConstrainedRelativeNeighborhoodEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
5267
+
5268
+ /**
5269
+ * Computes Fang et al. (2025) degree-constrained Relative Neighborhood Graph preservation (`Q_{dcRNG}`) on `Layout2d`.
5270
+ */
5271
+ export function _degreeConstrainedRelativeNeighborhoodPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
5272
+
5273
+ export function _degreeConstrainedRelativeNeighborhoodPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
5274
+
5275
+ export function _degreeConstrainedRelativeNeighborhoodPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
5276
+
5277
+ export function _degreeConstrainedRelativeNeighborhoodPreservationNd(g: Graph, l: LayoutNd, s: any): number;
5278
+
5279
+ /**
5280
+ * Extracts Hong et al. (2022) degree-aware Gabriel Graph (`dGG`) edges on `Layout2d`.
5281
+ */
5282
+ export function _degreeGabrielGraphEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
5283
+
5284
+ export function _degreeGabrielGraphEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
5285
+
5286
+ export function _degreeGabrielGraphEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
5287
+
5288
+ export function _degreeGabrielGraphEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
5289
+
5290
+ /**
5291
+ * Computes Hong et al. (2022) degree-aware Gabriel Graph preservation (`Q_{dGG}`) on `Layout2d`.
5292
+ */
5293
+ export function _degreeGabrielGraphPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
5294
+
5295
+ export function _degreeGabrielGraphPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
5296
+
5297
+ export function _degreeGabrielGraphPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
5298
+
5299
+ export function _degreeGabrielGraphPreservationNd(g: Graph, l: LayoutNd, s: any): number;
5300
+
5301
+ /**
5302
+ * Extracts Hong et al. (2022) degree-aware Relative Neighborhood Graph (`dRNG`) edges on `Layout2d`.
5071
5303
  */
5072
- export function _dggPreservation2d(graph: Graph, layout: Layout2d): number;
5304
+ export function _degreeRelativeNeighborhoodEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
5073
5305
 
5074
- export function _dggPreservation3d(graph: Graph, layout: Layout3d): number;
5306
+ export function _degreeRelativeNeighborhoodEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
5075
5307
 
5076
- export function _dggPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
5308
+ export function _degreeRelativeNeighborhoodEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
5077
5309
 
5078
- export function _dggPreservationNd(graph: Graph, layout: LayoutNd): number;
5310
+ export function _degreeRelativeNeighborhoodEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
5311
+
5312
+ /**
5313
+ * Computes Hong et al. (2022) degree-aware Relative Neighborhood Graph preservation (`Q_{dRNG}`) on `Layout2d`.
5314
+ */
5315
+ export function _degreeRelativeNeighborhoodPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
5316
+
5317
+ export function _degreeRelativeNeighborhoodPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
5318
+
5319
+ export function _degreeRelativeNeighborhoodPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
5320
+
5321
+ export function _degreeRelativeNeighborhoodPreservationNd(g: Graph, l: LayoutNd, s: any): number;
5079
5322
 
5080
5323
  export function _distanceConsistency2d(layout: Layout2d, labels: any): number;
5081
5324
 
@@ -5093,17 +5336,6 @@ export function _distributionConsistencyManifold(layout: ManifoldLayout2d, label
5093
5336
 
5094
5337
  export function _distributionConsistencyNd(layout: LayoutNd, labels: any, options: any): number;
5095
5338
 
5096
- /**
5097
- * Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
5098
- */
5099
- export function _drngPreservation2d(graph: Graph, layout: Layout2d): number;
5100
-
5101
- export function _drngPreservation3d(graph: Graph, layout: Layout3d): number;
5102
-
5103
- export function _drngPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
5104
-
5105
- export function _drngPreservationNd(graph: Graph, layout: LayoutNd): number;
5106
-
5107
5339
  /**
5108
5340
  * Selectively evaluates quality metrics on `Layout2d` without an `originalLayout`.
5109
5341
  */
@@ -5140,6 +5372,17 @@ export function _gabrielGraphEdgesManifold(layout: ManifoldLayout2d): Uint32Arra
5140
5372
 
5141
5373
  export function _gabrielGraphEdgesNd(layout: LayoutNd): Uint32Array;
5142
5374
 
5375
+ /**
5376
+ * Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
5377
+ */
5378
+ export function _gabrielGraphPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
5379
+
5380
+ export function _gabrielGraphPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
5381
+
5382
+ export function _gabrielGraphPreservationManifold(graph: Graph, layout: ManifoldLayout2d, proximity_num_sectors: any): number;
5383
+
5384
+ export function _gabrielGraphPreservationNd(graph: Graph, layout: LayoutNd, proximity_num_sectors: any): number;
5385
+
5143
5386
  /**
5144
5387
  * Computes Gabriel graph condition violations across `graph` edges under `layout`.
5145
5388
  */
@@ -5268,6 +5511,17 @@ export function _relativeNeighborhoodEdgesManifold(layout: ManifoldLayout2d): Ui
5268
5511
 
5269
5512
  export function _relativeNeighborhoodEdgesNd(layout: LayoutNd): Uint32Array;
5270
5513
 
5514
+ /**
5515
+ * Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
5516
+ */
5517
+ export function _relativeNeighborhoodPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
5518
+
5519
+ export function _relativeNeighborhoodPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
5520
+
5521
+ export function _relativeNeighborhoodPreservationManifold(graph: Graph, layout: ManifoldLayout2d, proximity_num_sectors: any): number;
5522
+
5523
+ export function _relativeNeighborhoodPreservationNd(graph: Graph, layout: LayoutNd, proximity_num_sectors: any): number;
5524
+
5271
5525
  /**
5272
5526
  * Estimates 1-hop neighborhood preservation (`NP1`) via vertex sampling (`options?: { numSamples?, seed? }`).
5273
5527
  */
@@ -5468,13 +5722,20 @@ export function aspectRatio(layout: Layout2d): number;
5468
5722
  */
5469
5723
  export function assignLayers(graph: Graph, method: any): Uint32Array;
5470
5724
 
5725
+ /**
5726
+ * Appends one root-level compound parent node per distinct cluster ID in `clusterIds`
5727
+ * (in canonical first-appearance order) and returns `{ graph, parents }`.
5728
+ */
5729
+ export function augmentGraphWithClusterParents(graph: Graph, cluster_ids: any): any;
5730
+
5471
5731
  /**
5472
5732
  * Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
5473
5733
  */
5474
5734
  export function bfsSingleSource(graph: Graph, source: number, unit_edge_length?: number | null): Float64Array;
5475
5735
 
5476
5736
  /**
5477
- * Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
5737
+ * Builds a capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics
5738
+ * using `TwoHopSamplingMode::TwoStepRandomWalk` (`maxBridgeDegree = None`).
5478
5739
  */
5479
5740
  export function buildCapped12hopKnn(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): TwoHopKnnResult;
5480
5741
 
@@ -5733,12 +5994,14 @@ export function extract1hopTetherWeights(graph: Graph, probs: SparseProbabilitie
5733
5994
  export function extractQuadrilateralBackbone(graph: Graph, options: any): BackboneResult;
5734
5995
 
5735
5996
  /**
5736
- * Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
5997
+ * Extracts canonical undirected 1-hop and capped 2-hop vertex pair arrays `Sparse12HopPairs`
5998
+ * using `TwoHopSamplingMode::TwoStepRandomWalk` (`maxBridgeDegree = None`).
5737
5999
  */
5738
6000
  export function extractSparse1hop2hopPairs(graph: Graph, max_2hop_per_node: number | null | undefined, seed: any): Sparse12HopPairs;
5739
6001
 
5740
6002
  /**
5741
- * Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode` and optional `maxBridgeDegree`.
6003
+ * Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode`
6004
+ * (default `TwoStepRandomWalk`) and optional `maxBridgeDegree`.
5742
6005
  */
5743
6006
  export function extractSparse1hop2hopPairsWithMode(graph: Graph, options: any): Sparse12HopPairs;
5744
6007
 
@@ -6214,6 +6477,7 @@ export interface InitOutput {
6214
6477
  readonly __wbg_coarsebackboneresult_free: (a: number, b: number) => void;
6215
6478
  readonly __wbg_coarsenedgraphresult_free: (a: number, b: number) => void;
6216
6479
  readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
6480
+ readonly __wbg_cosesolver_free: (a: number, b: number) => void;
6217
6481
  readonly __wbg_crossingpair_free: (a: number, b: number) => void;
6218
6482
  readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
6219
6483
  readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
@@ -6227,6 +6491,8 @@ export interface InitOutput {
6227
6491
  readonly __wbg_edgepolylines_free: (a: number, b: number) => void;
6228
6492
  readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
6229
6493
  readonly __wbg_eigenresult_free: (a: number, b: number) => void;
6494
+ readonly __wbg_fcosedraftgenerator_free: (a: number, b: number) => void;
6495
+ readonly __wbg_fcosesolver_free: (a: number, b: number) => void;
6230
6496
  readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
6231
6497
  readonly __wbg_fieldfftstats_free: (a: number, b: number) => void;
6232
6498
  readonly __wbg_fieldrepulsionkernel_free: (a: number, b: number) => void;
@@ -6327,10 +6593,38 @@ export interface InitOutput {
6327
6593
  readonly _daviesBouldinScore3d: (a: number, b: number, c: any) => void;
6328
6594
  readonly _daviesBouldinScoreManifold: (a: number, b: number, c: any) => void;
6329
6595
  readonly _daviesBouldinScoreNd: (a: number, b: number, c: any) => void;
6330
- readonly _dggPreservation2d: (a: number, b: number, c: number) => void;
6331
- readonly _dggPreservation3d: (a: number, b: number, c: number) => void;
6332
- readonly _dggPreservationManifold: (a: number, b: number, c: number) => void;
6333
- readonly _dggPreservationNd: (a: number, b: number, c: number) => void;
6596
+ readonly _degreeConstrainedGabrielGraphEdges2d: (a: number, b: number, c: number, d: any) => void;
6597
+ readonly _degreeConstrainedGabrielGraphEdges3d: (a: number, b: number, c: number, d: any) => void;
6598
+ readonly _degreeConstrainedGabrielGraphEdgesManifold: (a: number, b: number, c: number, d: any) => void;
6599
+ readonly _degreeConstrainedGabrielGraphEdgesNd: (a: number, b: number, c: number, d: any) => void;
6600
+ readonly _degreeConstrainedGabrielGraphPreservation2d: (a: number, b: number, c: number, d: any) => void;
6601
+ readonly _degreeConstrainedGabrielGraphPreservation3d: (a: number, b: number, c: number, d: any) => void;
6602
+ readonly _degreeConstrainedGabrielGraphPreservationManifold: (a: number, b: number, c: number, d: any) => void;
6603
+ readonly _degreeConstrainedGabrielGraphPreservationNd: (a: number, b: number, c: number, d: any) => void;
6604
+ readonly _degreeConstrainedRelativeNeighborhoodEdges2d: (a: number, b: number, c: number, d: any) => void;
6605
+ readonly _degreeConstrainedRelativeNeighborhoodEdges3d: (a: number, b: number, c: number, d: any) => void;
6606
+ readonly _degreeConstrainedRelativeNeighborhoodEdgesManifold: (a: number, b: number, c: number, d: any) => void;
6607
+ readonly _degreeConstrainedRelativeNeighborhoodEdgesNd: (a: number, b: number, c: number, d: any) => void;
6608
+ readonly _degreeConstrainedRelativeNeighborhoodPreservation2d: (a: number, b: number, c: number, d: any) => void;
6609
+ readonly _degreeConstrainedRelativeNeighborhoodPreservation3d: (a: number, b: number, c: number, d: any) => void;
6610
+ readonly _degreeConstrainedRelativeNeighborhoodPreservationManifold: (a: number, b: number, c: number, d: any) => void;
6611
+ readonly _degreeConstrainedRelativeNeighborhoodPreservationNd: (a: number, b: number, c: number, d: any) => void;
6612
+ readonly _degreeGabrielGraphEdges2d: (a: number, b: number, c: number, d: any) => void;
6613
+ readonly _degreeGabrielGraphEdges3d: (a: number, b: number, c: number, d: any) => void;
6614
+ readonly _degreeGabrielGraphEdgesManifold: (a: number, b: number, c: number, d: any) => void;
6615
+ readonly _degreeGabrielGraphEdgesNd: (a: number, b: number, c: number, d: any) => void;
6616
+ readonly _degreeGabrielGraphPreservation2d: (a: number, b: number, c: number, d: any) => void;
6617
+ readonly _degreeGabrielGraphPreservation3d: (a: number, b: number, c: number, d: any) => void;
6618
+ readonly _degreeGabrielGraphPreservationManifold: (a: number, b: number, c: number, d: any) => void;
6619
+ readonly _degreeGabrielGraphPreservationNd: (a: number, b: number, c: number, d: any) => void;
6620
+ readonly _degreeRelativeNeighborhoodEdges2d: (a: number, b: number, c: number, d: any) => void;
6621
+ readonly _degreeRelativeNeighborhoodEdges3d: (a: number, b: number, c: number, d: any) => void;
6622
+ readonly _degreeRelativeNeighborhoodEdgesManifold: (a: number, b: number, c: number, d: any) => void;
6623
+ readonly _degreeRelativeNeighborhoodEdgesNd: (a: number, b: number, c: number, d: any) => void;
6624
+ readonly _degreeRelativeNeighborhoodPreservation2d: (a: number, b: number, c: number, d: any) => void;
6625
+ readonly _degreeRelativeNeighborhoodPreservation3d: (a: number, b: number, c: number, d: any) => void;
6626
+ readonly _degreeRelativeNeighborhoodPreservationManifold: (a: number, b: number, c: number, d: any) => void;
6627
+ readonly _degreeRelativeNeighborhoodPreservationNd: (a: number, b: number, c: number, d: any) => void;
6334
6628
  readonly _distanceConsistency2d: (a: number, b: number, c: any) => void;
6335
6629
  readonly _distanceConsistency3d: (a: number, b: number, c: any) => void;
6336
6630
  readonly _distanceConsistencyManifold: (a: number, b: number, c: any) => void;
@@ -6339,10 +6633,6 @@ export interface InitOutput {
6339
6633
  readonly _distributionConsistency3d: (a: number, b: number, c: any, d: any) => void;
6340
6634
  readonly _distributionConsistencyManifold: (a: number, b: number, c: any, d: any) => void;
6341
6635
  readonly _distributionConsistencyNd: (a: number, b: number, c: any, d: any) => void;
6342
- readonly _drngPreservation2d: (a: number, b: number, c: number) => void;
6343
- readonly _drngPreservation3d: (a: number, b: number, c: number) => void;
6344
- readonly _drngPreservationManifold: (a: number, b: number, c: number) => void;
6345
- readonly _drngPreservationNd: (a: number, b: number, c: number) => void;
6346
6636
  readonly _evaluateMetrics2d: (a: number, b: number, c: number, d: any, e: any) => void;
6347
6637
  readonly _evaluateMetrics2dWithOriginal: (a: number, b: number, c: number, d: any, e: any, f: number) => void;
6348
6638
  readonly _evaluateMetrics3d: (a: number, b: number, c: number, d: any, e: any) => void;
@@ -6352,6 +6642,10 @@ export interface InitOutput {
6352
6642
  readonly _gabrielGraphEdges3d: (a: number, b: number) => void;
6353
6643
  readonly _gabrielGraphEdgesManifold: (a: number, b: number) => void;
6354
6644
  readonly _gabrielGraphEdgesNd: (a: number, b: number) => void;
6645
+ readonly _gabrielGraphPreservation2d: (a: number, b: number, c: number, d: any) => void;
6646
+ readonly _gabrielGraphPreservation3d: (a: number, b: number, c: number, d: any) => void;
6647
+ readonly _gabrielGraphPreservationManifold: (a: number, b: number, c: number, d: any) => void;
6648
+ readonly _gabrielGraphPreservationNd: (a: number, b: number, c: number, d: any) => void;
6355
6649
  readonly _gabrielGraphProperty2d: (a: number, b: number, c: number) => void;
6356
6650
  readonly _gabrielGraphProperty3d: (a: number, b: number, c: number) => void;
6357
6651
  readonly _gabrielGraphPropertyManifold: (a: number, b: number, c: number) => void;
@@ -6404,6 +6698,10 @@ export interface InitOutput {
6404
6698
  readonly _relativeNeighborhoodEdges3d: (a: number, b: number) => void;
6405
6699
  readonly _relativeNeighborhoodEdgesManifold: (a: number, b: number) => void;
6406
6700
  readonly _relativeNeighborhoodEdgesNd: (a: number, b: number) => void;
6701
+ readonly _relativeNeighborhoodPreservation2d: (a: number, b: number, c: number, d: any) => void;
6702
+ readonly _relativeNeighborhoodPreservation3d: (a: number, b: number, c: number, d: any) => void;
6703
+ readonly _relativeNeighborhoodPreservationManifold: (a: number, b: number, c: number, d: any) => void;
6704
+ readonly _relativeNeighborhoodPreservationNd: (a: number, b: number, c: number, d: any) => void;
6407
6705
  readonly _sampledNp12d: (a: number, b: number, c: number, d: any) => void;
6408
6706
  readonly _sampledNp13d: (a: number, b: number, c: number, d: any) => void;
6409
6707
  readonly _sampledNp1Manifold: (a: number, b: number, c: number, d: any) => void;
@@ -6541,6 +6839,7 @@ export interface InitOutput {
6541
6839
  readonly arenaoctree3d_traversalStackCap: (a: number) => number;
6542
6840
  readonly aspectRatio: (a: number, b: number) => void;
6543
6841
  readonly assignLayers: (a: number, b: number, c: any) => void;
6842
+ readonly augmentGraphWithClusterParents: (a: number, b: number, c: any) => void;
6544
6843
  readonly backboneresult_backboneCsr: (a: number) => number;
6545
6844
  readonly backboneresult_backboneEdges: (a: number, b: number) => void;
6546
6845
  readonly backboneresult_edgeWeights: (a: number, b: number) => void;
@@ -6685,6 +6984,16 @@ export interface InitOutput {
6685
6984
  readonly computeRegularizedDogVaradhanLandmarks: (a: number, b: number, c: any) => void;
6686
6985
  readonly computeRegularizedDogVaradhanLandmarksFromMatrix: (a: number, b: number, c: number, d: any) => void;
6687
6986
  readonly computeResistanceEmbedding: (a: number, b: number, c: any) => void;
6987
+ readonly cosesolver_compoundBounds: (a: number, b: number) => void;
6988
+ readonly cosesolver_isFinished: (a: number) => number;
6989
+ readonly cosesolver_iteration: (a: number) => number;
6990
+ readonly cosesolver_new: (a: number, b: number, c: any) => void;
6991
+ readonly cosesolver_numNodes: (a: number) => number;
6992
+ readonly cosesolver_run: (a: number, b: number, c: number) => void;
6993
+ readonly cosesolver_runSteps: (a: number, b: number, c: number, d: number) => void;
6994
+ readonly cosesolver_status: (a: number) => number;
6995
+ readonly cosesolver_step: (a: number, b: number, c: number) => void;
6996
+ readonly cosesolver_totalIterations: (a: number) => number;
6688
6997
  readonly crossingEdges: (a: number, b: number, c: number) => void;
6689
6998
  readonly crossingEdgesHyperbolic: (a: number, b: number, c: number) => void;
6690
6999
  readonly crossingEdgesSpherical: (a: number, b: number, c: number) => void;
@@ -6848,6 +7157,20 @@ export interface InitOutput {
6848
7157
  readonly extractQuadrilateralBackbone: (a: number, b: number, c: any) => void;
6849
7158
  readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: any) => void;
6850
7159
  readonly extractSparse1hop2hopPairsWithMode: (a: number, b: number, c: any) => void;
7160
+ readonly fcosedraftgenerator_compoundBounds: (a: number, b: number) => void;
7161
+ readonly fcosedraftgenerator_generate: (a: number, b: number) => void;
7162
+ readonly fcosedraftgenerator_new: (a: number, b: number, c: any) => void;
7163
+ readonly fcosedraftgenerator_numNodes: (a: number) => number;
7164
+ readonly fcosesolver_compoundBounds: (a: number, b: number) => void;
7165
+ readonly fcosesolver_isFinished: (a: number) => number;
7166
+ readonly fcosesolver_iteration: (a: number) => number;
7167
+ readonly fcosesolver_new: (a: number, b: number, c: any) => void;
7168
+ readonly fcosesolver_numNodes: (a: number) => number;
7169
+ readonly fcosesolver_run: (a: number, b: number, c: number) => void;
7170
+ readonly fcosesolver_runSteps: (a: number, b: number, c: number, d: number) => void;
7171
+ readonly fcosesolver_status: (a: number) => number;
7172
+ readonly fcosesolver_step: (a: number, b: number, c: number) => void;
7173
+ readonly fcosesolver_totalIterations: (a: number) => number;
6851
7174
  readonly fdebsolver_currentCycle: (a: number) => number;
6852
7175
  readonly fdebsolver_dims: (a: number) => number;
6853
7176
  readonly fdebsolver_isFinished: (a: number) => number;
@@ -7361,6 +7684,7 @@ export interface InitOutput {
7361
7684
  readonly metricreport_calinskiHarabaszScore: (a: number, b: number) => void;
7362
7685
  readonly metricreport_classDensityMeasure: (a: number, b: number) => void;
7363
7686
  readonly metricreport_clusterAreaFaithfulness: (a: number, b: number) => void;
7687
+ readonly metricreport_clusterAreaReport: (a: number) => number;
7364
7688
  readonly metricreport_cqHacAmi: (a: number, b: number) => void;
7365
7689
  readonly metricreport_cqHacHom: (a: number, b: number) => void;
7366
7690
  readonly metricreport_cqKmeansAmi: (a: number, b: number) => void;
@@ -7371,6 +7695,10 @@ export interface InitOutput {
7371
7695
  readonly metricreport_crossingNumber: (a: number) => number;
7372
7696
  readonly metricreport_crosslessness: (a: number, b: number) => void;
7373
7697
  readonly metricreport_daviesBouldinScore: (a: number, b: number) => void;
7698
+ readonly metricreport_degreeConstrainedGabrielGraphPreservation: (a: number, b: number) => void;
7699
+ readonly metricreport_degreeConstrainedRelativeNeighborhoodPreservation: (a: number, b: number) => void;
7700
+ readonly metricreport_degreeGabrielGraphPreservation: (a: number, b: number) => void;
7701
+ readonly metricreport_degreeRelativeNeighborhoodPreservation: (a: number, b: number) => void;
7374
7702
  readonly metricreport_distanceConsistency: (a: number, b: number) => void;
7375
7703
  readonly metricreport_distributionConsistency: (a: number, b: number) => void;
7376
7704
  readonly metricreport_gabrielGraphPreservation: (a: number, b: number) => void;
@@ -7380,6 +7708,7 @@ export interface InitOutput {
7380
7708
  readonly metricreport_idealEdgeLengths: (a: number, b: number) => void;
7381
7709
  readonly metricreport_landmarkStratifiedRta: (a: number, b: number) => void;
7382
7710
  readonly metricreport_layoutDegeneracy: (a: number, b: number) => void;
7711
+ readonly metricreport_layoutDegeneracyDetail: (a: number) => number;
7383
7712
  readonly metricreport_minimumAngle: (a: number, b: number) => void;
7384
7713
  readonly metricreport_minimumAngleA1: (a: number, b: number) => void;
7385
7714
  readonly metricreport_neighborhoodHit: (a: number, b: number) => void;
@@ -7911,6 +8240,7 @@ export interface InitOutput {
7911
8240
  readonly tsnetsolver__stepManifold: (a: number, b: number, c: number) => void;
7912
8241
  readonly tsnetsolver__stepNd: (a: number, b: number, c: number) => void;
7913
8242
  readonly tsnetsolver_backend: (a: number) => number;
8243
+ readonly tsnetsolver_currentEffectiveLr: (a: number) => number;
7914
8244
  readonly tsnetsolver_currentStageLr: (a: number) => number;
7915
8245
  readonly tsnetsolver_fromGraphPartialBfs: (a: number, b: number, c: any) => void;
7916
8246
  readonly tsnetsolver_fromGraphRowNormalized: (a: number, b: number, c: any) => void;
@@ -7918,13 +8248,16 @@ export interface InitOutput {
7918
8248
  readonly tsnetsolver_fromKnn: (a: number, b: number, c: any) => void;
7919
8249
  readonly tsnetsolver_fromProbabilities: (a: number, b: number, c: any) => void;
7920
8250
  readonly tsnetsolver_fromProbabilitiesWithStages: (a: number, b: number, c: any, d: any) => void;
8251
+ readonly tsnetsolver_graphTsne: (a: number, b: number, c: any) => void;
7921
8252
  readonly tsnetsolver_isFinished: (a: number) => number;
7922
8253
  readonly tsnetsolver_iteration: (a: number) => number;
8254
+ readonly tsnetsolver_lTsnet: (a: number, b: number, c: any) => void;
7923
8255
  readonly tsnetsolver_lastFftStats: (a: number) => number;
7924
8256
  readonly tsnetsolver_new: (a: number, b: number, c: any) => void;
7925
8257
  readonly tsnetsolver_numNodes: (a: number) => number;
7926
8258
  readonly tsnetsolver_pure2Hop: (a: number, b: number, c: any) => void;
7927
8259
  readonly tsnetsolver_resolvedBackend: (a: number) => number;
8260
+ readonly tsnetsolver_rnTsnet: (a: number, b: number, c: any) => void;
7928
8261
  readonly tsnetsolver_samplingMode: (a: number) => number;
7929
8262
  readonly tsnetsolver_stageIndex: (a: number) => number;
7930
8263
  readonly tsnetsolver_status: (a: number) => number;