egraph 6.0.0-beta.4 → 6.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -13
- package/package.json +1 -1
- package/pkg/README.md +16 -13
- package/pkg/egraph_wasm.d.ts +738 -411
- package/pkg/egraph_wasm.js +2456 -1218
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +1066 -464
- package/pkg/index.js +56 -6
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:
|
|
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:
|
|
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 `
|
|
367
|
+
* Returns a cloned weighted undirected `Graph` representing the reweighted backbone.
|
|
336
368
|
*/
|
|
337
|
-
backboneCsr():
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 `
|
|
631
|
+
* Returns the coarsest `Graph` (`f32`).
|
|
600
632
|
*/
|
|
601
|
-
coarseGraph():
|
|
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
|
}
|
|
@@ -1044,11 +1157,17 @@ export interface DogVaradhanOptions {
|
|
|
1044
1157
|
degreeNormalize?: boolean | null;
|
|
1045
1158
|
pExp?: number | null;
|
|
1046
1159
|
epsPsd?: number | null;
|
|
1160
|
+
epsSim?: number | null;
|
|
1047
1161
|
tCoarse?: number | null;
|
|
1048
1162
|
t1?: number | null;
|
|
1049
1163
|
t2?: number | null;
|
|
1050
1164
|
alpha?: number | null;
|
|
1051
1165
|
betaFloor?: number | null;
|
|
1166
|
+
powerIters?: number | null;
|
|
1167
|
+
powerSafetyFactor?: number | null;
|
|
1168
|
+
lanczosSteps?: number | null;
|
|
1169
|
+
safetyFactor?: number | null;
|
|
1170
|
+
lanczosSafetyFactor?: number | null;
|
|
1052
1171
|
seed?: number | bigint | null;
|
|
1053
1172
|
}
|
|
1054
1173
|
|
|
@@ -1057,6 +1176,8 @@ export interface ChebyshevHeatSpmvOptions {
|
|
|
1057
1176
|
lambdaMax?: number | null;
|
|
1058
1177
|
lanczosSteps?: number | null;
|
|
1059
1178
|
safetyFactor?: number | null;
|
|
1179
|
+
tailL1Tol?: number | null;
|
|
1180
|
+
tileCols?: number | null;
|
|
1060
1181
|
seed?: number | bigint | null;
|
|
1061
1182
|
}
|
|
1062
1183
|
|
|
@@ -1071,6 +1192,8 @@ export interface ChebyshevDogJlOptions {
|
|
|
1071
1192
|
lambdaMax?: number | null;
|
|
1072
1193
|
lanczosSteps?: number | null;
|
|
1073
1194
|
safetyFactor?: number | null;
|
|
1195
|
+
tailL1Tol?: number | null;
|
|
1196
|
+
tileCols?: number | null;
|
|
1074
1197
|
scaleVec?: Float64Array | number[] | null;
|
|
1075
1198
|
seed?: number | bigint | null;
|
|
1076
1199
|
}
|
|
@@ -1087,6 +1210,8 @@ export interface SpectralEigenOptions {
|
|
|
1087
1210
|
nModes?: number | null;
|
|
1088
1211
|
tol?: number | null;
|
|
1089
1212
|
maxIterations?: number | null;
|
|
1213
|
+
subspaceDim?: number | null;
|
|
1214
|
+
laplacianShift?: number | null;
|
|
1090
1215
|
maxSweeps?: number | null;
|
|
1091
1216
|
seed?: number | bigint | null;
|
|
1092
1217
|
}
|
|
@@ -1127,9 +1252,21 @@ export interface KnnProbabilitiesOptions {
|
|
|
1127
1252
|
power?: number | null;
|
|
1128
1253
|
sigmaIters?: number | null;
|
|
1129
1254
|
sigmaTolerance?: number | null;
|
|
1255
|
+
minProbSum?: number | null;
|
|
1256
|
+
perplexityMargin?: number | null;
|
|
1130
1257
|
rowNormalize?: boolean | null;
|
|
1131
1258
|
}
|
|
1132
1259
|
|
|
1260
|
+
export interface FuzzySimplicialSetOptions {
|
|
1261
|
+
sigmaIters?: number | null;
|
|
1262
|
+
sigmaTolerance?: number | null;
|
|
1263
|
+
fuzzyThreshold?: number | null;
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
export interface FindAbParamsOptions {
|
|
1267
|
+
abFitNumSamples?: number | null;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1133
1270
|
export interface CoarseLouvainOptions {
|
|
1134
1271
|
maxCoarseNodes?: number | null;
|
|
1135
1272
|
resolution?: number | null;
|
|
@@ -1231,6 +1368,13 @@ export interface ForceAtlas2Options {
|
|
|
1231
1368
|
preventOverlap?: boolean | null;
|
|
1232
1369
|
defaultNodeRadius?: number | null;
|
|
1233
1370
|
nodeRadii?: Float64Array | Float32Array | number[] | null;
|
|
1371
|
+
defaultMaxDisplacementBase?: number | null;
|
|
1372
|
+
coulombEpsSq?: number | null;
|
|
1373
|
+
minSpeed?: number | null;
|
|
1374
|
+
overlapDprimeMin?: number | null;
|
|
1375
|
+
overlapRepulsionK?: number | null;
|
|
1376
|
+
overlapQuadtreeMaxDepth?: number | null;
|
|
1377
|
+
overlapQuadtreeCoincidentSq?: number | null;
|
|
1234
1378
|
seed?: number | bigint | null;
|
|
1235
1379
|
}
|
|
1236
1380
|
|
|
@@ -1263,6 +1407,13 @@ export interface LinLogOptions {
|
|
|
1263
1407
|
gravity?: number | null;
|
|
1264
1408
|
edgeWeightInfluence?: number | null;
|
|
1265
1409
|
maxDisplacement?: number | null;
|
|
1410
|
+
isolatedNodeMass?: number | null;
|
|
1411
|
+
defaultMaxDisplacementBase?: number | null;
|
|
1412
|
+
coulombEpsSq?: number | null;
|
|
1413
|
+
minSpeed?: number | null;
|
|
1414
|
+
maxSpeed?: number | null;
|
|
1415
|
+
quadtreeMaxDepth?: number | null;
|
|
1416
|
+
quadtreeCoincidentDistSq?: number | null;
|
|
1266
1417
|
seed?: number | bigint | null;
|
|
1267
1418
|
}
|
|
1268
1419
|
|
|
@@ -1275,6 +1426,10 @@ export interface FruchtermanReingoldOptions {
|
|
|
1275
1426
|
initialTemperature?: number | null;
|
|
1276
1427
|
gravity?: number | null;
|
|
1277
1428
|
theta?: number | null;
|
|
1429
|
+
coincidentDistSq?: number | null;
|
|
1430
|
+
coincidentPerturbDist?: number | null;
|
|
1431
|
+
bhEpsSq?: number | null;
|
|
1432
|
+
gravityAnchorLimit?: number | null;
|
|
1278
1433
|
seed?: number | bigint | null;
|
|
1279
1434
|
}
|
|
1280
1435
|
|
|
@@ -1285,6 +1440,7 @@ export interface BackboneOptions {
|
|
|
1285
1440
|
useWeights?: boolean | null;
|
|
1286
1441
|
layoutMode?: BackboneLayoutMode | null;
|
|
1287
1442
|
iterations?: number | null;
|
|
1443
|
+
weightTieEps?: number | null;
|
|
1288
1444
|
seed?: number | bigint | null;
|
|
1289
1445
|
}
|
|
1290
1446
|
|
|
@@ -1302,6 +1458,7 @@ export interface ClusterRefineOptions {
|
|
|
1302
1458
|
kmeansMaxIterations?: number | null;
|
|
1303
1459
|
shiftStep?: number | null;
|
|
1304
1460
|
margin?: number | null;
|
|
1461
|
+
geomEps?: number | null;
|
|
1305
1462
|
seed?: number | bigint | null;
|
|
1306
1463
|
}
|
|
1307
1464
|
|
|
@@ -1314,6 +1471,7 @@ export interface GroupInABoxOptions {
|
|
|
1314
1471
|
intraIterations?: number | null;
|
|
1315
1472
|
fdIterations?: number | null;
|
|
1316
1473
|
fitBounds?: boolean | null;
|
|
1474
|
+
geomEps?: number | null;
|
|
1317
1475
|
clusterWeights?: Float64Array | Float32Array | number[] | null;
|
|
1318
1476
|
seed?: number | bigint | null;
|
|
1319
1477
|
}
|
|
@@ -1332,6 +1490,8 @@ export interface GTreeOptions {
|
|
|
1332
1490
|
maxIterations?: number | null;
|
|
1333
1491
|
padding?: number | null;
|
|
1334
1492
|
compactTMax?: number | null;
|
|
1493
|
+
minEdgeDist?: number | null;
|
|
1494
|
+
maxStage2FinalIters?: number | null;
|
|
1335
1495
|
seed?: number | bigint | null;
|
|
1336
1496
|
}
|
|
1337
1497
|
|
|
@@ -1343,6 +1503,9 @@ export interface ForbidOptions {
|
|
|
1343
1503
|
overlapWeightK?: number | null;
|
|
1344
1504
|
scaleStep?: number | null;
|
|
1345
1505
|
padding?: number | null;
|
|
1506
|
+
minEdgeDist?: number | null;
|
|
1507
|
+
minTargetDist?: number | null;
|
|
1508
|
+
sgd2Eps?: number | null;
|
|
1346
1509
|
seed?: number | bigint | null;
|
|
1347
1510
|
}
|
|
1348
1511
|
|
|
@@ -1483,6 +1646,8 @@ export interface MaxentStressOptions {
|
|
|
1483
1646
|
theta?: number | null;
|
|
1484
1647
|
useBarnesHut?: boolean | null;
|
|
1485
1648
|
epsSq?: number | null;
|
|
1649
|
+
collapsedSpanEps?: number | null;
|
|
1650
|
+
minNormSqSum?: number | null;
|
|
1486
1651
|
seed?: number | bigint | null;
|
|
1487
1652
|
}
|
|
1488
1653
|
|
|
@@ -1494,6 +1659,9 @@ export interface GripOptions {
|
|
|
1494
1659
|
edgeLength?: number | null;
|
|
1495
1660
|
tempR?: number | null;
|
|
1496
1661
|
tempS?: number | null;
|
|
1662
|
+
minSeparationSqFactor?: number | null;
|
|
1663
|
+
coincidentSqFactor?: number | null;
|
|
1664
|
+
treemapPadding?: number | null;
|
|
1497
1665
|
seed?: number | bigint | null;
|
|
1498
1666
|
}
|
|
1499
1667
|
|
|
@@ -1509,6 +1677,8 @@ export interface GemOptions {
|
|
|
1509
1677
|
oscillationSensitivity?: number | null;
|
|
1510
1678
|
rotationSensitivity?: number | null;
|
|
1511
1679
|
perturbation?: number | null;
|
|
1680
|
+
minDistSq?: number | null;
|
|
1681
|
+
minNorm?: number | null;
|
|
1512
1682
|
seed?: number | bigint | null;
|
|
1513
1683
|
}
|
|
1514
1684
|
|
|
@@ -1518,6 +1688,7 @@ export interface SelOptions {
|
|
|
1518
1688
|
mapping?: SelWeightMapping | null;
|
|
1519
1689
|
layoutBackend?: SelLayoutBackend | null;
|
|
1520
1690
|
iterations?: number | null;
|
|
1691
|
+
unassignedEntropySentinel?: number | null;
|
|
1521
1692
|
seed?: number | bigint | null;
|
|
1522
1693
|
frConfig?: FruchtermanReingoldOptions | null;
|
|
1523
1694
|
tFdpConfig?: TFdpOptions | null;
|
|
@@ -1532,6 +1703,7 @@ export interface SfcOptions {
|
|
|
1532
1703
|
curve?: SfcCurveKind | null;
|
|
1533
1704
|
scale?: number | null;
|
|
1534
1705
|
resolutionOrder?: number | null;
|
|
1706
|
+
maxOrder?: number | null;
|
|
1535
1707
|
seed?: number | bigint | null;
|
|
1536
1708
|
}
|
|
1537
1709
|
|
|
@@ -1547,6 +1719,8 @@ export interface YifanHuOptions {
|
|
|
1547
1719
|
minCoarsenSize?: number | null;
|
|
1548
1720
|
minCoarsenRatio?: number | null;
|
|
1549
1721
|
convergenceTolerance?: number | null;
|
|
1722
|
+
maxCoarsenLevels?: number | null;
|
|
1723
|
+
prolongationJitterFactor?: number | null;
|
|
1550
1724
|
seed?: number | bigint | null;
|
|
1551
1725
|
}
|
|
1552
1726
|
|
|
@@ -1556,17 +1730,28 @@ export interface PrismOptions {
|
|
|
1556
1730
|
cgMaxIters?: number | null;
|
|
1557
1731
|
cgTolerance?: number | null;
|
|
1558
1732
|
padding?: number | null;
|
|
1733
|
+
minEdgeDist?: number | null;
|
|
1734
|
+
minWeightDist?: number | null;
|
|
1735
|
+
innerMajorizationIters?: number | null;
|
|
1736
|
+
overlapWeightBoost?: number | null;
|
|
1737
|
+
ssorOmega?: number | null;
|
|
1738
|
+
overlapMicroDistRatio?: number | null;
|
|
1739
|
+
stallNoImproveStreak?: number | null;
|
|
1559
1740
|
seed?: number | bigint | null;
|
|
1560
1741
|
}
|
|
1561
1742
|
|
|
1562
1743
|
export interface TwinDeclutterOptions {
|
|
1744
|
+
epsRel?: number | null;
|
|
1745
|
+
rFrac?: number | null;
|
|
1746
|
+
rCapRel?: number | null;
|
|
1747
|
+
minPairRel?: number | null;
|
|
1563
1748
|
iterations?: number | null;
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1749
|
+
degenerateDiagEps?: number | null;
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
export interface ConstraintProjectorOptions {
|
|
1753
|
+
violationTol?: number | null;
|
|
1754
|
+
splitLmTol?: number | null;
|
|
1570
1755
|
}
|
|
1571
1756
|
|
|
1572
1757
|
export interface SeparationConstraintLike {
|
|
@@ -1583,6 +1768,9 @@ export interface FdebOptions {
|
|
|
1583
1768
|
iStep?: number | null;
|
|
1584
1769
|
springK?: number | null;
|
|
1585
1770
|
minimumEdgeCompatibility?: number | null;
|
|
1771
|
+
minEdgeLen?: number | null;
|
|
1772
|
+
minSegDist?: number | null;
|
|
1773
|
+
maxSpringAlphaKp?: number | null;
|
|
1586
1774
|
}
|
|
1587
1775
|
|
|
1588
1776
|
export interface ProgressiveSolverLike<TLayout = AnyLayout | EdgePolylines> {
|
|
@@ -1620,6 +1808,110 @@ export function runProgressive<TLayout = AnyLayout | EdgePolylines>(
|
|
|
1620
1808
|
options?: RunProgressiveOptions | null,
|
|
1621
1809
|
): Promise<ProgressiveFrameContext<TLayout>>;
|
|
1622
1810
|
|
|
1811
|
+
|
|
1812
|
+
export type PivotDistanceArrayLike =
|
|
1813
|
+
| Float64Array
|
|
1814
|
+
| Float32Array
|
|
1815
|
+
| Uint32Array
|
|
1816
|
+
| Uint16Array
|
|
1817
|
+
| Uint8Array
|
|
1818
|
+
| number[];
|
|
1819
|
+
|
|
1820
|
+
export type HopDistanceArrayLike =
|
|
1821
|
+
| Uint32Array
|
|
1822
|
+
| Uint16Array
|
|
1823
|
+
| Uint8Array
|
|
1824
|
+
| Int32Array
|
|
1825
|
+
| number[];
|
|
1826
|
+
|
|
1827
|
+
export interface PivotMdsFromDistancesOptions {
|
|
1828
|
+
target?: TargetKind | null;
|
|
1829
|
+
dims?: number | null;
|
|
1830
|
+
targetStd?: number | null;
|
|
1831
|
+
seed?: number | bigint | null;
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
export interface AmgDavidsonEigenOptions {
|
|
1835
|
+
nModes?: number | null;
|
|
1836
|
+
shift?: number | null;
|
|
1837
|
+
tol?: number | null;
|
|
1838
|
+
maxIterations?: number | null;
|
|
1839
|
+
subspaceDim?: number | null;
|
|
1840
|
+
blockSize?: number | null;
|
|
1841
|
+
relScaleFloor?: number | null;
|
|
1842
|
+
seed?: number | bigint | null;
|
|
1843
|
+
amgRelTol?: number | null;
|
|
1844
|
+
amgAbsTol?: number | null;
|
|
1845
|
+
amgMaxIterations?: number | null;
|
|
1846
|
+
theta?: number | null;
|
|
1847
|
+
maxLevels?: number | null;
|
|
1848
|
+
maxCoarseSize?: number | null;
|
|
1849
|
+
preSweeps?: number | null;
|
|
1850
|
+
postSweeps?: number | null;
|
|
1851
|
+
maxAggSize?: number | null;
|
|
1852
|
+
diagEps?: number | null;
|
|
1853
|
+
eigEps?: number | null;
|
|
1854
|
+
symTol?: number | null;
|
|
1855
|
+
amgResidualRecomputeInterval?: number | null;
|
|
1856
|
+
amgStalledCoarsestSgsSweeps?: number | null;
|
|
1857
|
+
amgSmootherDiagEps?: number | null;
|
|
1858
|
+
amgJacobiCoarsestMaxSweeps?: number | null;
|
|
1859
|
+
amgJacobiCoarsestTol?: number | null;
|
|
1860
|
+
randomizeTies?: boolean | null;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
export interface OrtmannFromPivotsOptions {
|
|
1864
|
+
target?: TargetKind | null;
|
|
1865
|
+
iterations?: number | null;
|
|
1866
|
+
etaMax?: number | null;
|
|
1867
|
+
etaMin?: number | null;
|
|
1868
|
+
eps?: number | null;
|
|
1869
|
+
seed?: number | bigint | null;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
export type IbUmapHubDampingLike =
|
|
1873
|
+
| { kind: "none" }
|
|
1874
|
+
| { kind: "inverseDegree" }
|
|
1875
|
+
| { kind: "medianRowSum" }
|
|
1876
|
+
| { kind: "inverseDegreePower"; exponent: number }
|
|
1877
|
+
| { kind: "explicit"; hubEta: Float64Array | number[] };
|
|
1878
|
+
|
|
1879
|
+
export type FieldRepulsionKernelLike =
|
|
1880
|
+
| { kind: "cauchy" }
|
|
1881
|
+
| { kind: "generalizedCauchy"; gamma: number }
|
|
1882
|
+
| {
|
|
1883
|
+
kind: "screenedCauchy";
|
|
1884
|
+
screenFrac: number;
|
|
1885
|
+
minScreen?: number | null;
|
|
1886
|
+
};
|
|
1887
|
+
|
|
1888
|
+
export type MetricAnchorWeightingLike =
|
|
1889
|
+
| { kind: "balancedInvD2" }
|
|
1890
|
+
| { kind: "inversePower"; power: number }
|
|
1891
|
+
| { kind: "longRangeGated"; dGate: number; power: number }
|
|
1892
|
+
| {
|
|
1893
|
+
kind: "relativeLongRangeGated";
|
|
1894
|
+
medianFrac: number;
|
|
1895
|
+
power: number;
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
export interface MetricAnchorOptions {
|
|
1899
|
+
numAnchorPivots?: number | null;
|
|
1900
|
+
weighting?: MetricAnchorWeighting | MetricAnchorWeightingLike | null;
|
|
1901
|
+
softEps?: number | null;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
export interface MetricAnchorEmbeddingOptions {
|
|
1905
|
+
numAnchorPivots?: number | null;
|
|
1906
|
+
minDist?: number | null;
|
|
1907
|
+
power?: number | null;
|
|
1908
|
+
softEps?: number | null;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
export interface TetherWeightsOptions {
|
|
1912
|
+
degreeExponent?: number | null;
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1623
1915
|
export class CoarsenedGraphResult {
|
|
1624
1916
|
private constructor();
|
|
1625
1917
|
free(): void;
|
|
@@ -1629,9 +1921,9 @@ export class CoarsenedGraphResult {
|
|
|
1629
1921
|
*/
|
|
1630
1922
|
coarseSizes(): Uint32Array;
|
|
1631
1923
|
/**
|
|
1632
|
-
* Returns a cloned handle to the weighted undirected coarsened `
|
|
1924
|
+
* Returns a cloned handle to the weighted undirected coarsened `Graph`.
|
|
1633
1925
|
*/
|
|
1634
|
-
graph():
|
|
1926
|
+
graph(): Graph;
|
|
1635
1927
|
/**
|
|
1636
1928
|
* Returns the compacted `0..numClusters` cluster ID for each original vertex (`Uint32Array`).
|
|
1637
1929
|
*/
|
|
@@ -1650,9 +1942,9 @@ export class CoarsenedHierarchyResult {
|
|
|
1650
1942
|
free(): void;
|
|
1651
1943
|
[Symbol.dispose](): void;
|
|
1652
1944
|
/**
|
|
1653
|
-
* Returns a cloned handle to the coarsest super-graph `
|
|
1945
|
+
* Returns a cloned handle to the coarsest super-graph `Graph`.
|
|
1654
1946
|
*/
|
|
1655
|
-
coarseGraph():
|
|
1947
|
+
coarseGraph(): Graph;
|
|
1656
1948
|
/**
|
|
1657
1949
|
* Returns the original vertex counts per coarsest cluster (`Uint32Array`).
|
|
1658
1950
|
*/
|
|
@@ -1714,131 +2006,6 @@ export class CrossingSummary {
|
|
|
1714
2006
|
readonly minAngleRad: number | undefined;
|
|
1715
2007
|
}
|
|
1716
2008
|
|
|
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
2009
|
/**
|
|
1843
2010
|
* Double-precision square Compressed Sparse Row matrix (`CsrMatrix`) with spectral bounds
|
|
1844
2011
|
* and matrix-vector operations.
|
|
@@ -1957,7 +2124,7 @@ export enum DensityFieldKernel {
|
|
|
1957
2124
|
}
|
|
1958
2125
|
|
|
1959
2126
|
/**
|
|
1960
|
-
* Reusable epoch-stamped single-source Dijkstra workspace over `
|
|
2127
|
+
* Reusable epoch-stamped single-source Dijkstra workspace over `Graph`.
|
|
1961
2128
|
*/
|
|
1962
2129
|
export class DijkstraWorkspace {
|
|
1963
2130
|
free(): void;
|
|
@@ -1966,7 +2133,7 @@ export class DijkstraWorkspace {
|
|
|
1966
2133
|
* Computes single-source shortest-path distances (`Float64Array`, `Infinity` for unreachable)
|
|
1967
2134
|
* from `source` on `graph`, reusing internal workspace allocations.
|
|
1968
2135
|
*/
|
|
1969
|
-
dijkstraFrom(graph:
|
|
2136
|
+
dijkstraFrom(graph: Graph, source: number): Float64Array;
|
|
1970
2137
|
/**
|
|
1971
2138
|
* Ensures internal scratch capacity covers at least `numNodes` vertices.
|
|
1972
2139
|
*/
|
|
@@ -2066,7 +2233,7 @@ export class DogVaradhanLandmarks {
|
|
|
2066
2233
|
}
|
|
2067
2234
|
|
|
2068
2235
|
/**
|
|
2069
|
-
* Cooperative multilevel negative-sampling `DRGraph` (Zhu et al.,
|
|
2236
|
+
* Cooperative multilevel negative-sampling `DRGraph` (Zhu et al., 2021) layout solver (`f32`).
|
|
2070
2237
|
*/
|
|
2071
2238
|
export class DrGraphSolver {
|
|
2072
2239
|
free(): void;
|
|
@@ -2089,7 +2256,7 @@ export class DrGraphSolver {
|
|
|
2089
2256
|
/**
|
|
2090
2257
|
* Constructs a `DrGraphSolver` from `graph` and `DrGraphOptions`.
|
|
2091
2258
|
*/
|
|
2092
|
-
constructor(graph:
|
|
2259
|
+
constructor(graph: Graph, options?: DrGraphOptions | null);
|
|
2093
2260
|
readonly currentLr: number;
|
|
2094
2261
|
readonly isFinished: boolean;
|
|
2095
2262
|
readonly iteration: number;
|
|
@@ -2110,11 +2277,11 @@ export class DynamicKdTree {
|
|
|
2110
2277
|
/**
|
|
2111
2278
|
* Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
|
|
2112
2279
|
*/
|
|
2113
|
-
static fromFlat(coords: Float32Array | number[], n: number, dims: number): DynamicKdTree;
|
|
2280
|
+
static fromFlat(coords: Float32Array | number[], n: number, dims: number, options?: DynamicKdTreeOptions | null): DynamicKdTree;
|
|
2114
2281
|
/**
|
|
2115
2282
|
* Constructs a `DynamicKdTree` directly from a `LayoutNd`.
|
|
2116
2283
|
*/
|
|
2117
|
-
static fromLayoutNd(layout: LayoutNd): DynamicKdTree;
|
|
2284
|
+
static fromLayoutNd(layout: LayoutNd, options?: DynamicKdTreeOptions | null): DynamicKdTree;
|
|
2118
2285
|
/**
|
|
2119
2286
|
* Returns `true` if the tree contains zero points.
|
|
2120
2287
|
*/
|
|
@@ -2138,12 +2305,16 @@ export class DynamicKdTree {
|
|
|
2138
2305
|
/**
|
|
2139
2306
|
* Constructs a `DynamicKdTree` from flat row-major coordinates of shape `(n, dims)`.
|
|
2140
2307
|
*/
|
|
2141
|
-
constructor(layout: LayoutNd);
|
|
2142
|
-
constructor(coords: Float32Array | number[], n: number, dims: number);
|
|
2308
|
+
constructor(layout: LayoutNd, options?: DynamicKdTreeOptions | null);
|
|
2309
|
+
constructor(coords: Float32Array | number[], n: number, dims: number, options?: DynamicKdTreeOptions | null);
|
|
2143
2310
|
/**
|
|
2144
2311
|
* Returns a `Float64Array` copy of point `index`'s coordinates.
|
|
2145
2312
|
*/
|
|
2146
2313
|
point(index: number): Float64Array;
|
|
2314
|
+
/**
|
|
2315
|
+
* Validates and updates the leaf node bucket size (`>= 1`), rebuilding nodes if non-empty.
|
|
2316
|
+
*/
|
|
2317
|
+
setLeafSize(leaf_size: number): void;
|
|
2147
2318
|
/**
|
|
2148
2319
|
* Returns all points `Array<{ index, distSq }>` within squared distance `radiusSq` of `query`.
|
|
2149
2320
|
*/
|
|
@@ -2156,6 +2327,10 @@ export class DynamicKdTree {
|
|
|
2156
2327
|
* Returns the spatial dimensionality `D` of indexed points.
|
|
2157
2328
|
*/
|
|
2158
2329
|
readonly dims: number;
|
|
2330
|
+
/**
|
|
2331
|
+
* Returns the maximum leaf node bucket size (`>= 1`).
|
|
2332
|
+
*/
|
|
2333
|
+
readonly leafSize: number;
|
|
2159
2334
|
/**
|
|
2160
2335
|
* Returns the number of points indexed in the tree.
|
|
2161
2336
|
*/
|
|
@@ -2171,14 +2346,14 @@ export class EdgePolylines {
|
|
|
2171
2346
|
private constructor();
|
|
2172
2347
|
free(): void;
|
|
2173
2348
|
[Symbol.dispose](): void;
|
|
2174
|
-
static straightLineFromGraph(graph:
|
|
2349
|
+
static straightLineFromGraph(graph: Graph, layout: Layout2d | Layout3d | LayoutNd): EdgePolylines;
|
|
2175
2350
|
static fromParts(edgeOffsets: Uint32Array | number[], points: Layout2d | Layout3d | LayoutNd): EdgePolylines;
|
|
2176
2351
|
static _fromParts2d(edge_offsets: Uint32Array | number[], points: Layout2d): EdgePolylines;
|
|
2177
2352
|
static _fromParts3d(edge_offsets: Uint32Array | number[], points: Layout3d): EdgePolylines;
|
|
2178
2353
|
static _fromPartsNd(edge_offsets: Uint32Array | number[], points: LayoutNd): EdgePolylines;
|
|
2179
|
-
static _straightLineFromGraph2d(graph:
|
|
2180
|
-
static _straightLineFromGraph3d(graph:
|
|
2181
|
-
static _straightLineFromGraphNd(graph:
|
|
2354
|
+
static _straightLineFromGraph2d(graph: Graph, layout: Layout2d): EdgePolylines;
|
|
2355
|
+
static _straightLineFromGraph3d(graph: Graph, layout: Layout3d): EdgePolylines;
|
|
2356
|
+
static _straightLineFromGraphNd(graph: Graph, layout: LayoutNd): EdgePolylines;
|
|
2182
2357
|
/**
|
|
2183
2358
|
* Returns a freshly allocated `Uint32Array` copy of `edgeOffsets`.
|
|
2184
2359
|
*/
|
|
@@ -2424,6 +2599,31 @@ export enum FieldRepulsionBackend {
|
|
|
2424
2599
|
Exact = 3,
|
|
2425
2600
|
}
|
|
2426
2601
|
|
|
2602
|
+
/**
|
|
2603
|
+
* Radial KL repulsion kernel family for `TsNetSolver`.
|
|
2604
|
+
*/
|
|
2605
|
+
export class FieldRepulsionKernel {
|
|
2606
|
+
private constructor();
|
|
2607
|
+
free(): void;
|
|
2608
|
+
[Symbol.dispose](): void;
|
|
2609
|
+
/**
|
|
2610
|
+
* Classic Student-t Cauchy kernel `(1 + r^2)^(-1)`.
|
|
2611
|
+
*/
|
|
2612
|
+
static cauchy(): FieldRepulsionKernel;
|
|
2613
|
+
/**
|
|
2614
|
+
* Generalized Box-Cox gamma-tail Cauchy kernel `(1 + r^2)^(-gamma)` (`gamma in (0.25, 6.0]`).
|
|
2615
|
+
*/
|
|
2616
|
+
static generalizedCauchy(gamma: number): FieldRepulsionKernel;
|
|
2617
|
+
/**
|
|
2618
|
+
* Rational screened Cauchy kernel `(1 + r^2)^(-1) * (1 + r^2 / ell^2)^(-1)`.
|
|
2619
|
+
*/
|
|
2620
|
+
static screenedCauchy(screen_frac: number, min_screen?: number | null): FieldRepulsionKernel;
|
|
2621
|
+
readonly gamma: number | undefined;
|
|
2622
|
+
readonly kind: string;
|
|
2623
|
+
readonly minScreen: number | undefined;
|
|
2624
|
+
readonly screenFrac: number | undefined;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2427
2627
|
/**
|
|
2428
2628
|
* FFT field telemetry counters returned by `TsNetSolver.lastFftStats()`.
|
|
2429
2629
|
*/
|
|
@@ -2519,7 +2719,7 @@ export class ForceAtlas2Solver {
|
|
|
2519
2719
|
/**
|
|
2520
2720
|
* Constructs a `ForceAtlas2Solver` from `graph` and optional `ForceAtlas2Options`.
|
|
2521
2721
|
*/
|
|
2522
|
-
constructor(graph:
|
|
2722
|
+
constructor(graph: Graph, options?: ForceAtlas2Options | null);
|
|
2523
2723
|
nodeRadii(): Float64Array;
|
|
2524
2724
|
readonly backend: ForceBackend;
|
|
2525
2725
|
readonly isFinished: boolean;
|
|
@@ -2574,7 +2774,7 @@ export class FruchtermanReingoldSolver {
|
|
|
2574
2774
|
/**
|
|
2575
2775
|
* Constructs a `FruchtermanReingoldSolver` from `graph` and optional `FruchtermanReingoldOptions`.
|
|
2576
2776
|
*/
|
|
2577
|
-
constructor(graph:
|
|
2777
|
+
constructor(graph: Graph, options?: FruchtermanReingoldOptions | null);
|
|
2578
2778
|
readonly backend: FrBackend;
|
|
2579
2779
|
readonly currentTemperature: number;
|
|
2580
2780
|
readonly isFinished: boolean;
|
|
@@ -2653,7 +2853,7 @@ export class GemSolver {
|
|
|
2653
2853
|
/**
|
|
2654
2854
|
* Constructs a `GemSolver` from `graph` and optional `GemOptions`.
|
|
2655
2855
|
*/
|
|
2656
|
-
constructor(graph:
|
|
2856
|
+
constructor(graph: Graph, options?: GemOptions | null);
|
|
2657
2857
|
/**
|
|
2658
2858
|
* Executes up to `steps` GEM rounds on `layout` in place.
|
|
2659
2859
|
*/
|
|
@@ -2705,6 +2905,131 @@ export enum GibIntraLayoutMode {
|
|
|
2705
2905
|
YifanHu = 2,
|
|
2706
2906
|
}
|
|
2707
2907
|
|
|
2908
|
+
/**
|
|
2909
|
+
* Compact `u32`-indexed Compressed Sparse Row (CSR) graph storing `f32` edge weights.
|
|
2910
|
+
*/
|
|
2911
|
+
/**
|
|
2912
|
+
* Structured error codes attached to `Error.code` across WASM API failures.
|
|
2913
|
+
*/
|
|
2914
|
+
export type EgraphErrorCode =
|
|
2915
|
+
| "InvalidInput"
|
|
2916
|
+
| "DimensionMismatch"
|
|
2917
|
+
| "IndexOutOfBounds"
|
|
2918
|
+
| "InvalidCsr"
|
|
2919
|
+
| "NonFiniteValue"
|
|
2920
|
+
| "UnsupportedOperation"
|
|
2921
|
+
| "NumericalBreakdown"
|
|
2922
|
+
| "BackendUnavailable"
|
|
2923
|
+
| "DeviceLimitExceeded";
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* Options controlling CSR / edge-list graph construction.
|
|
2927
|
+
*/
|
|
2928
|
+
export interface GraphOptions {
|
|
2929
|
+
directed?: boolean;
|
|
2930
|
+
sanitize?: boolean;
|
|
2931
|
+
weightDtype?: WeightDtype;
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
export class Graph {
|
|
2935
|
+
private constructor();
|
|
2936
|
+
free(): void;
|
|
2937
|
+
[Symbol.dispose](): void;
|
|
2938
|
+
/**
|
|
2939
|
+
* Returns the degree (outgoing degree for directed graphs) of vertex `u`.
|
|
2940
|
+
*/
|
|
2941
|
+
degree(u: number): number;
|
|
2942
|
+
/**
|
|
2943
|
+
* Returns the stored weight of edge `(u, v)`, `1.0` if unweighted, or `undefined` if absent.
|
|
2944
|
+
*/
|
|
2945
|
+
edgeWeight(u: number, v: number): number | undefined;
|
|
2946
|
+
/**
|
|
2947
|
+
* Returns a flat `[u0, v0, u1, v1, ...]` `Uint32Array` of canonical edges.
|
|
2948
|
+
*/
|
|
2949
|
+
edges(): Uint32Array;
|
|
2950
|
+
/**
|
|
2951
|
+
* Constructs a `Graph` from CSR `indptr`, `indices`, and optional `weights`.
|
|
2952
|
+
*
|
|
2953
|
+
* The optional trailing parameters accept either `(directed, sanitize)` booleans or an
|
|
2954
|
+
* options object `{ directed?: boolean, sanitize?: boolean, weightDtype?: "float32" }`.
|
|
2955
|
+
* Defaults are `directed = false` and `sanitize = true`.
|
|
2956
|
+
*/
|
|
2957
|
+
static fromCsr(indptr: Uint32Array | number[], indices: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | GraphOptions | null, sanitize?: boolean | null): Graph;
|
|
2958
|
+
/**
|
|
2959
|
+
* Constructs a `Graph` from a flat interleaved edge list `[u0, v0, u1, v1, ...]`
|
|
2960
|
+
* and optional `weights`.
|
|
2961
|
+
*/
|
|
2962
|
+
static fromEdgeList(numNodes: number, edges: Uint32Array | number[], weights?: Float32Array | number[] | null, options?: boolean | GraphOptions | null, sanitize?: boolean | null): Graph;
|
|
2963
|
+
/**
|
|
2964
|
+
* Returns `true` if an edge `(u, v)` exists in the graph.
|
|
2965
|
+
*/
|
|
2966
|
+
hasEdge(u: number, v: number): boolean;
|
|
2967
|
+
/**
|
|
2968
|
+
* Returns a copy of the flat CSR `indices` neighbor array.
|
|
2969
|
+
*/
|
|
2970
|
+
indices(): Uint32Array;
|
|
2971
|
+
/**
|
|
2972
|
+
* Returns a copy of the CSR `indptr` row-offset array (`length === numNodes() + 1`).
|
|
2973
|
+
*/
|
|
2974
|
+
indptr(): Uint32Array;
|
|
2975
|
+
/**
|
|
2976
|
+
* Extracts the induced subgraph on `nodes` with compact `0..nodes.length` vertex IDs.
|
|
2977
|
+
*/
|
|
2978
|
+
inducedSubgraph(nodes: Uint32Array | number[]): Graph;
|
|
2979
|
+
/**
|
|
2980
|
+
* Returns `true` if the graph has <= 1 vertex or forms a single weakly connected component.
|
|
2981
|
+
*/
|
|
2982
|
+
isConnected(): boolean;
|
|
2983
|
+
/**
|
|
2984
|
+
* Returns `true` if the graph is directed.
|
|
2985
|
+
*/
|
|
2986
|
+
isDirected(): boolean;
|
|
2987
|
+
/**
|
|
2988
|
+
* Returns `true` if the graph contains zero vertices.
|
|
2989
|
+
*/
|
|
2990
|
+
isEmpty(): boolean;
|
|
2991
|
+
/**
|
|
2992
|
+
* Returns `true` if explicit edge weights are stored.
|
|
2993
|
+
*/
|
|
2994
|
+
isWeighted(): boolean;
|
|
2995
|
+
/**
|
|
2996
|
+
* Extracts the largest (weakly) connected component as `{ graph(), originalNodeIds() }`.
|
|
2997
|
+
*/
|
|
2998
|
+
largestConnectedComponent(): LargestConnectedComponentResult;
|
|
2999
|
+
/**
|
|
3000
|
+
* Returns the number of vertices in the graph.
|
|
3001
|
+
*/
|
|
3002
|
+
len(): number;
|
|
3003
|
+
/**
|
|
3004
|
+
* Returns a copy of the neighbor indices adjacent to vertex `u`.
|
|
3005
|
+
*/
|
|
3006
|
+
neighbors(u: number): Uint32Array;
|
|
3007
|
+
/**
|
|
3008
|
+
* Returns the number of stored CSR half-edge entries (`indices().length`).
|
|
3009
|
+
*/
|
|
3010
|
+
nnz(): number;
|
|
3011
|
+
/**
|
|
3012
|
+
* Returns the number of logical edges in the graph.
|
|
3013
|
+
*/
|
|
3014
|
+
numEdges(): number;
|
|
3015
|
+
/**
|
|
3016
|
+
* Returns the number of vertices in the graph.
|
|
3017
|
+
*/
|
|
3018
|
+
numNodes(): number;
|
|
3019
|
+
/**
|
|
3020
|
+
* Returns a copy of the flat CSR `weights` array, or `undefined` if unweighted.
|
|
3021
|
+
*/
|
|
3022
|
+
weights(): Float32Array | undefined;
|
|
3023
|
+
/**
|
|
3024
|
+
* Returns the number of vertices in the graph.
|
|
3025
|
+
*/
|
|
3026
|
+
readonly length: number;
|
|
3027
|
+
/**
|
|
3028
|
+
* Returns the scalar weight dtype stored in WebAssembly (`WeightDtype.Float32`).
|
|
3029
|
+
*/
|
|
3030
|
+
readonly weightDtype: WeightDtype;
|
|
3031
|
+
}
|
|
3032
|
+
|
|
2708
3033
|
/**
|
|
2709
3034
|
* r" Contrastive objective for `GraphCneSolver`.
|
|
2710
3035
|
*/
|
|
@@ -2714,7 +3039,7 @@ export enum GraphCneObjective {
|
|
|
2714
3039
|
}
|
|
2715
3040
|
|
|
2716
3041
|
/**
|
|
2717
|
-
* Cooperative `Graph-CNE` (
|
|
3042
|
+
* Cooperative `Graph-CNE` (Böhm et al., 2025) contrastive neighbor embedding solver (`f32`).
|
|
2718
3043
|
*/
|
|
2719
3044
|
export class GraphCneSolver {
|
|
2720
3045
|
free(): void;
|
|
@@ -2737,7 +3062,7 @@ export class GraphCneSolver {
|
|
|
2737
3062
|
/**
|
|
2738
3063
|
* Constructs a `GraphCneSolver` from `graph` and `GraphCneOptions`.
|
|
2739
3064
|
*/
|
|
2740
|
-
constructor(graph:
|
|
3065
|
+
constructor(graph: Graph, options?: GraphCneOptions | null);
|
|
2741
3066
|
readonly currentLr: number;
|
|
2742
3067
|
readonly isFinished: boolean;
|
|
2743
3068
|
readonly iteration: number;
|
|
@@ -2754,7 +3079,7 @@ export class GraphCneSolver {
|
|
|
2754
3079
|
export class GripSolver {
|
|
2755
3080
|
free(): void;
|
|
2756
3081
|
[Symbol.dispose](): void;
|
|
2757
|
-
constructor(graph:
|
|
3082
|
+
constructor(graph: Graph, options?: GripOptions | null);
|
|
2758
3083
|
runSteps(layout: Layout2d, steps: number): SolverStatus;
|
|
2759
3084
|
run(layout: Layout2d): SolverStatus;
|
|
2760
3085
|
step(layout: Layout2d): SolverStatus;
|
|
@@ -2782,7 +3107,7 @@ export class GroupInABoxSolver {
|
|
|
2782
3107
|
/**
|
|
2783
3108
|
* Constructs a `GroupInABoxSolver` from `graph`, `labels`, and optional `GroupInABoxOptions`.
|
|
2784
3109
|
*/
|
|
2785
|
-
constructor(graph:
|
|
3110
|
+
constructor(graph: Graph, labels: Uint32Array | number[], options?: GroupInABoxOptions | null);
|
|
2786
3111
|
/**
|
|
2787
3112
|
* Executes up to `steps` intra-box layout iterations on `layout` in place.
|
|
2788
3113
|
*/
|
|
@@ -2843,9 +3168,9 @@ export class GuMapSolver {
|
|
|
2843
3168
|
*/
|
|
2844
3169
|
static fromFuzzySet(probs: SparseProbabilities, options?: GuMapOptions | null): GuMapSolver;
|
|
2845
3170
|
/**
|
|
2846
|
-
* Constructs a `GuMapSolver` from a `
|
|
3171
|
+
* Constructs a `GuMapSolver` from a `Graph` using 1+2-hop pairs and DoG Varadhan landmarks.
|
|
2847
3172
|
*/
|
|
2848
|
-
static fromGraphDog(graph:
|
|
3173
|
+
static fromGraphDog(graph: Graph, options?: GuMapDogOptions | null): GuMapSolver;
|
|
2849
3174
|
/**
|
|
2850
3175
|
* Constructs a `GuMapSolver` from a `KnnGraph` via `computeFuzzySimplicialSet`.
|
|
2851
3176
|
*/
|
|
@@ -2853,11 +3178,11 @@ export class GuMapSolver {
|
|
|
2853
3178
|
/**
|
|
2854
3179
|
* Constructs a `GuMapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop priority CSR.
|
|
2855
3180
|
*/
|
|
2856
|
-
static fromLandmarks(graph:
|
|
3181
|
+
static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: GuMapLandmarksOptions | null): GuMapSolver;
|
|
2857
3182
|
/**
|
|
2858
3183
|
* Constructs a `GuMapSolver` from `graph` using 1+2-hop pairs and DoG Varadhan landmarks.
|
|
2859
3184
|
*/
|
|
2860
|
-
constructor(graph:
|
|
3185
|
+
constructor(graph: Graph, options?: GuMapDogOptions | null);
|
|
2861
3186
|
readonly a: number;
|
|
2862
3187
|
readonly ab: Float64Array;
|
|
2863
3188
|
readonly b: number;
|
|
@@ -2877,7 +3202,7 @@ export class GuMapSolver {
|
|
|
2877
3202
|
export class Hde {
|
|
2878
3203
|
free(): void;
|
|
2879
3204
|
[Symbol.dispose](): void;
|
|
2880
|
-
generate(graph:
|
|
3205
|
+
generate(graph: Graph): Layout2d | Layout3d | LayoutNd;
|
|
2881
3206
|
constructor(options?: HdeOptions | null);
|
|
2882
3207
|
}
|
|
2883
3208
|
|
|
@@ -2918,6 +3243,38 @@ export class HybridKnnResult {
|
|
|
2918
3243
|
readonly nnz: number;
|
|
2919
3244
|
}
|
|
2920
3245
|
|
|
3246
|
+
/**
|
|
3247
|
+
* Per-vertex hub-damping policy for `IbUmapSolver`.
|
|
3248
|
+
*/
|
|
3249
|
+
export class IbUmapHubDamping {
|
|
3250
|
+
private constructor();
|
|
3251
|
+
free(): void;
|
|
3252
|
+
[Symbol.dispose](): void;
|
|
3253
|
+
/**
|
|
3254
|
+
* Explicit caller-supplied per-vertex hub damping factors `eta_i >= 0.0`.
|
|
3255
|
+
*/
|
|
3256
|
+
static explicit(hubEta: Float64Array | number[]): IbUmapHubDamping;
|
|
3257
|
+
/**
|
|
3258
|
+
* Generalized inverse-degree power hub damping (`eta_i = max(deg(i), 1)^(-exponent)`).
|
|
3259
|
+
*/
|
|
3260
|
+
static inverseDegreePower(exponent: number): IbUmapHubDamping;
|
|
3261
|
+
/**
|
|
3262
|
+
* Classic inverse-degree hub damping (`eta_i = 1 / max(deg(i), 1)`).
|
|
3263
|
+
*/
|
|
3264
|
+
static inverseDegree(): IbUmapHubDamping;
|
|
3265
|
+
/**
|
|
3266
|
+
* Median-row-sum hub damping preserving unit step sizes on typical vertices.
|
|
3267
|
+
*/
|
|
3268
|
+
static medianRowSum(): IbUmapHubDamping;
|
|
3269
|
+
/**
|
|
3270
|
+
* Disable hub damping (`eta_i = 1.0`).
|
|
3271
|
+
*/
|
|
3272
|
+
static none(): IbUmapHubDamping;
|
|
3273
|
+
readonly exponent: number | undefined;
|
|
3274
|
+
readonly hubEta: Float64Array | undefined;
|
|
3275
|
+
readonly kind: string;
|
|
3276
|
+
}
|
|
3277
|
+
|
|
2921
3278
|
/**
|
|
2922
3279
|
* Cooperative interpolation-based batch Graph UMAP (`ibUMAP`) solver (`f32`, `layout2d`).
|
|
2923
3280
|
*/
|
|
@@ -2936,13 +3293,17 @@ export class IbUmapSolver {
|
|
|
2936
3293
|
/**
|
|
2937
3294
|
* Constructs an `IbUmapSolver` from precomputed `DogVaradhanLandmarks` and 1+2-hop pairs.
|
|
2938
3295
|
*/
|
|
2939
|
-
static fromLandmarks(graph:
|
|
2940
|
-
static fromLandmarks(graph:
|
|
3296
|
+
static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: IbUmapOptions | null): IbUmapSolver;
|
|
3297
|
+
static fromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, max2hopPerNode?: number | null, options?: IbUmapOptions | null): IbUmapSolver;
|
|
2941
3298
|
/**
|
|
2942
|
-
*
|
|
3299
|
+
* Returns the effective per-vertex hub damping factors $\eta_i$ (`Float64Array`).
|
|
3300
|
+
*/
|
|
3301
|
+
hubEta(): Float64Array;
|
|
3302
|
+
/**
|
|
3303
|
+
* Constructs an `IbUmapSolver` from a `Graph` using $O(|E|)$ 1+2-hop pairs and
|
|
2943
3304
|
* regularized DoG Varadhan landmark ALT distances.
|
|
2944
3305
|
*/
|
|
2945
|
-
constructor(graph:
|
|
3306
|
+
constructor(graph: Graph, options?: IbUmapOptions | null);
|
|
2946
3307
|
runSteps(layout: Layout2d, steps: number): SolverStatus;
|
|
2947
3308
|
run(layout: Layout2d): SolverStatus;
|
|
2948
3309
|
step(layout: Layout2d): SolverStatus;
|
|
@@ -3061,11 +3422,11 @@ export class KamadaKawaiSolver {
|
|
|
3061
3422
|
/**
|
|
3062
3423
|
* Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
|
|
3063
3424
|
*/
|
|
3064
|
-
static fromGraph(graph:
|
|
3425
|
+
static fromGraph(graph: Graph, options?: KamadaKawaiOptions | null): KamadaKawaiSolver;
|
|
3065
3426
|
/**
|
|
3066
3427
|
* Constructs a `KamadaKawaiSolver` by computing APSP distances from `graph`.
|
|
3067
3428
|
*/
|
|
3068
|
-
constructor(graph:
|
|
3429
|
+
constructor(graph: Graph, options?: KamadaKawaiOptions | null);
|
|
3069
3430
|
readonly isFinished: boolean;
|
|
3070
3431
|
readonly iteration: number;
|
|
3071
3432
|
readonly numNodes: number;
|
|
@@ -3114,7 +3475,7 @@ export class KnnGraph {
|
|
|
3114
3475
|
export class KorenSpectral {
|
|
3115
3476
|
free(): void;
|
|
3116
3477
|
[Symbol.dispose](): void;
|
|
3117
|
-
generate(graph:
|
|
3478
|
+
generate(graph: Graph): Layout2d | Layout3d | LayoutNd;
|
|
3118
3479
|
constructor(options?: KorenSpectralGeneratorOptions | null);
|
|
3119
3480
|
}
|
|
3120
3481
|
|
|
@@ -3192,7 +3553,7 @@ export class LargeVisSolver {
|
|
|
3192
3553
|
/**
|
|
3193
3554
|
* Constructs a `LargeVisSolver` from `graph` and `LargeVisOptions`.
|
|
3194
3555
|
*/
|
|
3195
|
-
constructor(graph:
|
|
3556
|
+
constructor(graph: Graph, options?: LargeVisOptions | null);
|
|
3196
3557
|
readonly currentLr: number;
|
|
3197
3558
|
readonly isFinished: boolean;
|
|
3198
3559
|
readonly iteration: number;
|
|
@@ -3204,16 +3565,16 @@ export class LargeVisSolver {
|
|
|
3204
3565
|
}
|
|
3205
3566
|
|
|
3206
3567
|
/**
|
|
3207
|
-
* Largest connected component result returned by `
|
|
3568
|
+
* Largest connected component result returned by `Graph.largestConnectedComponent()`.
|
|
3208
3569
|
*/
|
|
3209
3570
|
export class LargestConnectedComponentResult {
|
|
3210
3571
|
private constructor();
|
|
3211
3572
|
free(): void;
|
|
3212
3573
|
[Symbol.dispose](): void;
|
|
3213
3574
|
/**
|
|
3214
|
-
* Returns a cloned handle to the induced `
|
|
3575
|
+
* Returns a cloned handle to the induced `Graph` of the largest connected component.
|
|
3215
3576
|
*/
|
|
3216
|
-
graph():
|
|
3577
|
+
graph(): Graph;
|
|
3217
3578
|
/**
|
|
3218
3579
|
* Alias for `originalNodeIds()`.
|
|
3219
3580
|
*/
|
|
@@ -3608,7 +3969,7 @@ export class LinLogSolver {
|
|
|
3608
3969
|
/**
|
|
3609
3970
|
* Constructs a `LinLogSolver` from `graph` and optional `LinLogOptions`.
|
|
3610
3971
|
*/
|
|
3611
|
-
constructor(graph:
|
|
3972
|
+
constructor(graph: Graph, options?: LinLogOptions | null);
|
|
3612
3973
|
readonly backend: ForceBackend;
|
|
3613
3974
|
readonly isFinished: boolean;
|
|
3614
3975
|
readonly iteration: number;
|
|
@@ -3749,7 +4110,7 @@ export class ManifoldLayout2d {
|
|
|
3749
4110
|
*/
|
|
3750
4111
|
len(): number;
|
|
3751
4112
|
/**
|
|
3752
|
-
* Returns `{ scale, aspect }` metric parameters.
|
|
4113
|
+
* Returns `{ scale, aspect, poincareEps }` metric parameters.
|
|
3753
4114
|
*/
|
|
3754
4115
|
metric(): ManifoldMetricRecord;
|
|
3755
4116
|
/**
|
|
@@ -3784,6 +4145,10 @@ export class ManifoldLayout2d {
|
|
|
3784
4145
|
* Sets the physical aspect ratio (`> 0`) without mutating stored coordinates.
|
|
3785
4146
|
*/
|
|
3786
4147
|
setAspect(aspect: number): void;
|
|
4148
|
+
/**
|
|
4149
|
+
* Sets the Poincaré boundary clamp epsilon (`0 < eps < 0.5` in `f32`) without mutating coordinates.
|
|
4150
|
+
*/
|
|
4151
|
+
setPoincareEps(eps: number): void;
|
|
3787
4152
|
/**
|
|
3788
4153
|
* Sets vertex `index`'s coordinates `(x, y)` and projects onto the manifold domain.
|
|
3789
4154
|
*/
|
|
@@ -3819,11 +4184,11 @@ export class ManifoldLayout2d {
|
|
|
3819
4184
|
/**
|
|
3820
4185
|
* Returns a rigidly panned `Torus2d` `ManifoldLayout2d` minimizing boundary-wrapped edges.
|
|
3821
4186
|
*/
|
|
3822
|
-
torusAutoPan(graph:
|
|
4187
|
+
torusAutoPan(graph: Graph): ManifoldLayout2d;
|
|
3823
4188
|
/**
|
|
3824
4189
|
* Initializes a flat 2D torus layout via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
|
|
3825
4190
|
*/
|
|
3826
|
-
static torusSpectralPhaseInit(graph:
|
|
4191
|
+
static torusSpectralPhaseInit(graph: Graph, seed?: number | bigint | null): ManifoldLayout2d;
|
|
3827
4192
|
/**
|
|
3828
4193
|
* Returns the first coordinate (`x` or `lon`) of vertex `index`.
|
|
3829
4194
|
*/
|
|
@@ -3848,6 +4213,10 @@ export class ManifoldLayout2d {
|
|
|
3848
4213
|
* Returns the number of vertices in the manifold layout.
|
|
3849
4214
|
*/
|
|
3850
4215
|
readonly numNodes: number;
|
|
4216
|
+
/**
|
|
4217
|
+
* Returns the Poincaré boundary clamp epsilon (`> 0` and `< 0.5`).
|
|
4218
|
+
*/
|
|
4219
|
+
readonly poincareEps: number;
|
|
3851
4220
|
/**
|
|
3852
4221
|
* Returns the physical geodesic scale factor (`> 0`).
|
|
3853
4222
|
*/
|
|
@@ -3875,7 +4244,7 @@ export class MaxentStressSolver {
|
|
|
3875
4244
|
/**
|
|
3876
4245
|
* Constructs a `MaxentStressSolver` from `graph` and optional `MaxentStressOptions`.
|
|
3877
4246
|
*/
|
|
3878
|
-
constructor(graph:
|
|
4247
|
+
constructor(graph: Graph, options?: MaxentStressOptions | null);
|
|
3879
4248
|
readonly backend: ForceBackend;
|
|
3880
4249
|
readonly currentAlpha: number;
|
|
3881
4250
|
readonly effectiveQ: number;
|
|
@@ -3887,6 +4256,35 @@ export class MaxentStressSolver {
|
|
|
3887
4256
|
readonly totalIterations: number | undefined;
|
|
3888
4257
|
}
|
|
3889
4258
|
|
|
4259
|
+
/**
|
|
4260
|
+
* Distance weighting rule for `UnifiedMetricAnchor`.
|
|
4261
|
+
*/
|
|
4262
|
+
export class MetricAnchorWeighting {
|
|
4263
|
+
private constructor();
|
|
4264
|
+
free(): void;
|
|
4265
|
+
[Symbol.dispose](): void;
|
|
4266
|
+
/**
|
|
4267
|
+
* Symmetric inverse-square distance weighting `w(d) = 1 / d^2`.
|
|
4268
|
+
*/
|
|
4269
|
+
static balancedInvD2(): MetricAnchorWeighting;
|
|
4270
|
+
/**
|
|
4271
|
+
* Pure inverse-power distance weighting `w(d) = 1 / d^power` (`power > 0`).
|
|
4272
|
+
*/
|
|
4273
|
+
static inversePower(power: number): MetricAnchorWeighting;
|
|
4274
|
+
/**
|
|
4275
|
+
* Smoothly distance-gated long-range metric weighting (`dGate >= 0`, `power > 0`).
|
|
4276
|
+
*/
|
|
4277
|
+
static longRangeGated(d_gate: number, power: number): MetricAnchorWeighting;
|
|
4278
|
+
/**
|
|
4279
|
+
* Scale-adaptive distance-gated weighting (`medianFrac >= 0`, `power > 0`).
|
|
4280
|
+
*/
|
|
4281
|
+
static relativeLongRangeGated(median_frac: number, power: number): MetricAnchorWeighting;
|
|
4282
|
+
readonly dGate: number | undefined;
|
|
4283
|
+
readonly kind: string;
|
|
4284
|
+
readonly medianFrac: number | undefined;
|
|
4285
|
+
readonly power: number | undefined;
|
|
4286
|
+
}
|
|
4287
|
+
|
|
3890
4288
|
export type AnyLayout = Layout2d | Layout3d | LayoutNd | ManifoldLayout2d;
|
|
3891
4289
|
|
|
3892
4290
|
/**
|
|
@@ -3921,7 +4319,7 @@ export interface IterativeSolver<TTarget = AnyLayout> {
|
|
|
3921
4319
|
* One-shot deterministic layout generator interface.
|
|
3922
4320
|
*/
|
|
3923
4321
|
export interface LayoutGenerator<TOutput = Layout2d> {
|
|
3924
|
-
generate(graph?:
|
|
4322
|
+
generate(graph?: Graph): TOutput;
|
|
3925
4323
|
}
|
|
3926
4324
|
|
|
3927
4325
|
/**
|
|
@@ -3936,6 +4334,17 @@ export interface LayoutInitOptions {
|
|
|
3936
4334
|
scale?: number | null;
|
|
3937
4335
|
}
|
|
3938
4336
|
|
|
4337
|
+
export interface ArenaOctree3dOptions {
|
|
4338
|
+
maxDepth?: number | null;
|
|
4339
|
+
coincidentDistSq?: number | null;
|
|
4340
|
+
entropyMinDist?: number | null;
|
|
4341
|
+
traversalStackCap?: number | null;
|
|
4342
|
+
}
|
|
4343
|
+
|
|
4344
|
+
export interface DynamicKdTreeOptions {
|
|
4345
|
+
leafSize?: number | null;
|
|
4346
|
+
}
|
|
4347
|
+
|
|
3939
4348
|
export interface GenerateWeightedGraphOptions {
|
|
3940
4349
|
avgDegree?: number | null;
|
|
3941
4350
|
minWeight?: number | null;
|
|
@@ -4077,6 +4486,8 @@ export interface ClusterAreaFaithfulnessOptions {
|
|
|
4077
4486
|
tauFrac?: number | null;
|
|
4078
4487
|
boundaryR95?: number | null;
|
|
4079
4488
|
stevensGamma?: number | null;
|
|
4489
|
+
maxGridBins?: number | null;
|
|
4490
|
+
cohDominanceMin?: number | null;
|
|
4080
4491
|
nodeWeights?: Float64Array | Float32Array | number[] | null;
|
|
4081
4492
|
clusterWeights?: Float64Array | Float32Array | number[] | null;
|
|
4082
4493
|
}
|
|
@@ -4133,6 +4544,10 @@ export interface MetricConfigOptions extends ClusterBaselineOptions {
|
|
|
4133
4544
|
tauFrac?: number | null;
|
|
4134
4545
|
boundaryR95?: number | null;
|
|
4135
4546
|
stevensGamma?: number | null;
|
|
4547
|
+
proximityNumSectors?: number | null;
|
|
4548
|
+
distanceSymmetryTol?: number | null;
|
|
4549
|
+
maxGridBins?: number | null;
|
|
4550
|
+
cohDominanceMin?: number | null;
|
|
4136
4551
|
nodeWeights?: Float64Array | Float32Array | number[] | null;
|
|
4137
4552
|
clusterWeights?: Float64Array | Float32Array | number[] | null;
|
|
4138
4553
|
clusterBaselines?: ClusterBaselineOptions | null;
|
|
@@ -4160,13 +4575,14 @@ export interface DatasetInfoRecord {
|
|
|
4160
4575
|
}
|
|
4161
4576
|
|
|
4162
4577
|
export interface SbmGraphResult {
|
|
4163
|
-
graph:
|
|
4578
|
+
graph: Graph;
|
|
4164
4579
|
labels: Uint32Array;
|
|
4165
4580
|
}
|
|
4166
4581
|
|
|
4167
4582
|
export interface ManifoldMetricRecord {
|
|
4168
4583
|
scale: number;
|
|
4169
4584
|
aspect: number;
|
|
4585
|
+
poincareEps: number;
|
|
4170
4586
|
}
|
|
4171
4587
|
|
|
4172
4588
|
export type SpectralFilterTerm = [number, number];
|
|
@@ -4419,24 +4835,24 @@ export class PacmapGraphSolver {
|
|
|
4419
4835
|
/**
|
|
4420
4836
|
* Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
|
|
4421
4837
|
*/
|
|
4422
|
-
static fromGraph(graph:
|
|
4838
|
+
static fromGraph(graph: Graph, options?: PacmapGraphOptions | null): PacmapGraphSolver;
|
|
4423
4839
|
/**
|
|
4424
4840
|
* Constructs a `PacmapGraphSolver` from `graph` using internal Chebyshev DoG Varadhan landmarks.
|
|
4425
4841
|
*/
|
|
4426
|
-
constructor(graph:
|
|
4842
|
+
constructor(graph: Graph, options?: PacmapGraphOptions | null);
|
|
4427
4843
|
/**
|
|
4428
4844
|
* Initializes an area-reserved coarse backbone `Layout2d` (`f32`) together with a configured
|
|
4429
4845
|
* `PacmapGraphSolver` for end-to-end multilevel layout.
|
|
4430
4846
|
*/
|
|
4431
|
-
static withBackbone(graph:
|
|
4847
|
+
static withBackbone(graph: Graph, options?: PacmapBackboneOptions | null): PacmapBackboneResult;
|
|
4432
4848
|
/**
|
|
4433
4849
|
* Constructs a `PacmapGraphSolver` from a flat row-major `(numNodes, numLandmarks)` distance table.
|
|
4434
4850
|
*/
|
|
4435
|
-
static withLandmarkDistances(graph:
|
|
4851
|
+
static withLandmarkDistances(graph: Graph, landmarkDistances: Float64Array | number[], numLandmarks: number, options?: PacmapGraphOptions | null): PacmapGraphSolver;
|
|
4436
4852
|
/**
|
|
4437
4853
|
* Constructs a `PacmapGraphSolver` reusing precomputed `DogVaradhanLandmarks`.
|
|
4438
4854
|
*/
|
|
4439
|
-
static withLandmarks(graph:
|
|
4855
|
+
static withLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: PacmapGraphOptions | null): PacmapGraphSolver;
|
|
4440
4856
|
readonly isFinished: boolean;
|
|
4441
4857
|
readonly iteration: number;
|
|
4442
4858
|
readonly numHinges: number;
|
|
@@ -4497,10 +4913,54 @@ export class PfsPrimeOverlapRemoval {
|
|
|
4497
4913
|
export class PivotMds {
|
|
4498
4914
|
free(): void;
|
|
4499
4915
|
[Symbol.dispose](): void;
|
|
4500
|
-
generate(graph
|
|
4916
|
+
generate(graph?: Graph | null): Layout2d | Layout3d | LayoutNd;
|
|
4917
|
+
generateWithReport(graph?: Graph | null): PivotMdsReportResult;
|
|
4918
|
+
/**
|
|
4919
|
+
* Constructs a `PivotMds` generator from a flat pivot-major `(numPivots * numNodes)`
|
|
4920
|
+
* distance buffer (`Float64Array`, `Uint32Array`, `Uint16Array`, `Uint8Array`, or `number[]`).
|
|
4921
|
+
*/
|
|
4922
|
+
static fromPivotDistances(pivotDistancesKn: PivotDistanceArrayLike, numNodes: number, numPivots: number, options?: PivotMdsFromDistancesOptions | null): PivotMds;
|
|
4501
4923
|
constructor(options?: PivotMdsGeneratorOptions | null);
|
|
4502
4924
|
}
|
|
4503
4925
|
|
|
4926
|
+
/**
|
|
4927
|
+
* Spectral summary returned by `PivotMds.generateWithReport()`.
|
|
4928
|
+
*/
|
|
4929
|
+
export class PivotMdsReport {
|
|
4930
|
+
private constructor();
|
|
4931
|
+
free(): void;
|
|
4932
|
+
[Symbol.dispose](): void;
|
|
4933
|
+
/**
|
|
4934
|
+
* Returns descending Gram-matrix eigenvalues of $C^T C$ (`Float64Array`).
|
|
4935
|
+
*/
|
|
4936
|
+
eigenvalues(): Float64Array;
|
|
4937
|
+
/**
|
|
4938
|
+
* Returns the fraction of positive Gram-matrix variance explained by the top `dims` modes.
|
|
4939
|
+
*/
|
|
4940
|
+
explainedVarianceRatio(dims: number): number;
|
|
4941
|
+
/**
|
|
4942
|
+
* Returns the 2D spectral metric embeddability ratio $\rho_{2\mathrm{D}} \in [0, 1]$.
|
|
4943
|
+
*/
|
|
4944
|
+
readonly embeddability2d: number;
|
|
4945
|
+
}
|
|
4946
|
+
|
|
4947
|
+
/**
|
|
4948
|
+
* Combined layout and spectral report returned by `PivotMds.generateWithReport()`.
|
|
4949
|
+
*/
|
|
4950
|
+
export class PivotMdsReportResult {
|
|
4951
|
+
private constructor();
|
|
4952
|
+
free(): void;
|
|
4953
|
+
[Symbol.dispose](): void;
|
|
4954
|
+
/**
|
|
4955
|
+
* Returns the generated `Layout2d`, `Layout3d`, or `LayoutNd`.
|
|
4956
|
+
*/
|
|
4957
|
+
layout(): Layout2d | Layout3d | LayoutNd;
|
|
4958
|
+
/**
|
|
4959
|
+
* Returns the spectral `PivotMdsReport`.
|
|
4960
|
+
*/
|
|
4961
|
+
report(): PivotMdsReport;
|
|
4962
|
+
}
|
|
4963
|
+
|
|
4504
4964
|
/**
|
|
4505
4965
|
* PRISM layout-preservation distortion metrics comparing an original and adjusted layout.
|
|
4506
4966
|
*/
|
|
@@ -4577,13 +5037,13 @@ export class PrismOverlapRemoval {
|
|
|
4577
5037
|
}
|
|
4578
5038
|
|
|
4579
5039
|
/**
|
|
4580
|
-
* Resistance-
|
|
4581
|
-
* `
|
|
5040
|
+
* Resistance-Distance MDS (`RdMds`, Onoue 2026) `LayoutGenerator` supporting
|
|
5041
|
+
* `TargetKind.Layout2d`, `TargetKind.Layout3d`, and `TargetKind.LayoutNd`.
|
|
4582
5042
|
*/
|
|
4583
5043
|
export class RdMds {
|
|
4584
5044
|
free(): void;
|
|
4585
5045
|
[Symbol.dispose](): void;
|
|
4586
|
-
generate(graph:
|
|
5046
|
+
generate(graph: Graph): Layout2d | Layout3d | LayoutNd;
|
|
4587
5047
|
constructor(options?: RdMdsGeneratorOptions | null);
|
|
4588
5048
|
}
|
|
4589
5049
|
|
|
@@ -4595,9 +5055,9 @@ export class ResistanceCurvatureFlowResult {
|
|
|
4595
5055
|
free(): void;
|
|
4596
5056
|
[Symbol.dispose](): void;
|
|
4597
5057
|
/**
|
|
4598
|
-
* Builds a weighted undirected `
|
|
5058
|
+
* Builds a weighted undirected `Graph` (`f32`) storing final conductances `w_e = 1 / l_e`.
|
|
4599
5059
|
*/
|
|
4600
|
-
conductanceGraph():
|
|
5060
|
+
conductanceGraph(): Graph;
|
|
4601
5061
|
/**
|
|
4602
5062
|
* Returns final edge conductances `w_e = 1 / l_e` (`Float64Array`).
|
|
4603
5063
|
*/
|
|
@@ -4619,9 +5079,9 @@ export class ResistanceCurvatureFlowResult {
|
|
|
4619
5079
|
*/
|
|
4620
5080
|
effectiveResistances(): Float64Array;
|
|
4621
5081
|
/**
|
|
4622
|
-
* Builds a weighted undirected `
|
|
5082
|
+
* Builds a weighted undirected `Graph` (`f32`) storing final edge lengths `l_e`.
|
|
4623
5083
|
*/
|
|
4624
|
-
lengthGraph():
|
|
5084
|
+
lengthGraph(): Graph;
|
|
4625
5085
|
/**
|
|
4626
5086
|
* Returns final link resistance curvatures `kappa_res(u, v)` (`Float64Array`).
|
|
4627
5087
|
*/
|
|
@@ -4894,7 +5354,7 @@ export class ScreenedPoissonRefiner {
|
|
|
4894
5354
|
/**
|
|
4895
5355
|
* Creates a `ScreenedPoissonRefiner` retaining 1-hop edges from `graph` for optional anchors.
|
|
4896
5356
|
*/
|
|
4897
|
-
static fromGraph(graph:
|
|
5357
|
+
static fromGraph(graph: Graph, options?: ScreenedPoissonRefinerOptions | null): ScreenedPoissonRefiner;
|
|
4898
5358
|
/**
|
|
4899
5359
|
* Returns telemetry from the most recent density field evaluation.
|
|
4900
5360
|
*/
|
|
@@ -5031,7 +5491,7 @@ export class SelLayoutSolver {
|
|
|
5031
5491
|
/**
|
|
5032
5492
|
* Constructs a `SelLayoutSolver` from `graph` and optional `SelOptions`.
|
|
5033
5493
|
*/
|
|
5034
|
-
constructor(graph:
|
|
5494
|
+
constructor(graph: Graph, options?: SelOptions | null);
|
|
5035
5495
|
/**
|
|
5036
5496
|
* Executes up to `steps` SEL layout iterations on `layout` in place.
|
|
5037
5497
|
*/
|
|
@@ -5126,7 +5586,7 @@ export class SfcLayout {
|
|
|
5126
5586
|
/**
|
|
5127
5587
|
* Constructs an `SfcLayout` generator from `graph` and optional `SfcOptions`.
|
|
5128
5588
|
*/
|
|
5129
|
-
constructor(graph:
|
|
5589
|
+
constructor(graph: Graph, options?: SfcOptions | null);
|
|
5130
5590
|
/**
|
|
5131
5591
|
* Returns the deterministic community-ordered vertex permutation (`Uint32Array`).
|
|
5132
5592
|
*/
|
|
@@ -5166,17 +5626,21 @@ export class Sgd2Solver {
|
|
|
5166
5626
|
/**
|
|
5167
5627
|
* Constructs a preconditioned mini-batch stress SGD solver from `graph` and `Sgd2Options`.
|
|
5168
5628
|
*/
|
|
5169
|
-
constructor(graph:
|
|
5629
|
+
constructor(graph: Graph, options?: Sgd2Options | null);
|
|
5170
5630
|
/**
|
|
5171
5631
|
* Resets the iteration schedule and RNG without reallocating stored pair buffers.
|
|
5172
5632
|
*/
|
|
5173
5633
|
resetSchedule(options?: SgdScheduleOptions | null): void;
|
|
5634
|
+
readonly batchSize: number;
|
|
5174
5635
|
readonly currentEta: number;
|
|
5636
|
+
readonly damping: number;
|
|
5637
|
+
readonly eps: number;
|
|
5175
5638
|
readonly isFinished: boolean;
|
|
5176
5639
|
readonly iteration: number;
|
|
5177
5640
|
readonly numNodes: number;
|
|
5178
5641
|
readonly numSprings: number;
|
|
5179
5642
|
readonly status: SolverStatus;
|
|
5643
|
+
readonly stepScale: number;
|
|
5180
5644
|
readonly target: TargetKind;
|
|
5181
5645
|
readonly totalIterations: number | undefined;
|
|
5182
5646
|
}
|
|
@@ -5292,23 +5756,32 @@ export class SgdSolver {
|
|
|
5292
5756
|
/**
|
|
5293
5757
|
* Constructs a full all-pairs shortest-path SGD solver from `graph`.
|
|
5294
5758
|
*/
|
|
5295
|
-
static full(graph:
|
|
5759
|
+
static full(graph: Graph, options?: SgdScheduleOptions | null): SgdSolver;
|
|
5296
5760
|
/**
|
|
5297
5761
|
* Constructs a full all-pairs shortest-path SGD solver from `graph`.
|
|
5298
5762
|
*/
|
|
5299
|
-
constructor(graph:
|
|
5763
|
+
constructor(graph: Graph, options?: SgdScheduleOptions | null);
|
|
5764
|
+
/**
|
|
5765
|
+
* Constructs an Onoue (2026) Omega resistance-distance SGD solver combining 1-hop edges with
|
|
5766
|
+
* `k` randomly sampled partner pairs per node using Euclidean distances in a flat row-major
|
|
5767
|
+
* `(numNodes, dims)` spectral embedding.
|
|
5768
|
+
*/
|
|
5769
|
+
static omega(graph: Graph, embedding: Float64Array | number[], dims: number, options?: OmegaSgdOptions | null): SgdSolver;
|
|
5300
5770
|
/**
|
|
5301
|
-
* Constructs an
|
|
5771
|
+
* Constructs an Ortmann et al. (2016) Sparse Stress SGD solver from preselected `pivots`
|
|
5772
|
+
* and a precomputed pivot-major `(pivots.length * numNodes)` distance buffer
|
|
5773
|
+
* (`Float64Array`/`Uint32Array`/`Uint16Array`/`Uint8Array`/`number[]`).
|
|
5302
5774
|
*/
|
|
5303
|
-
static
|
|
5775
|
+
static ortmannSparseStressFromPivots(graph: Graph, pivots: Uint32Array | number[], pivotDistancesKn: PivotDistanceArrayLike, options?: OrtmannFromPivotsOptions | null): SgdSolver;
|
|
5304
5776
|
/**
|
|
5305
5777
|
* Constructs an Ortmann et al. (2016) Sparse Stress SGD solver.
|
|
5306
5778
|
*/
|
|
5307
|
-
static ortmannSparseStress(graph:
|
|
5779
|
+
static ortmannSparseStress(graph: Graph, options?: OrtmannSparseStressOptions | null): SgdSolver;
|
|
5308
5780
|
/**
|
|
5309
|
-
* Constructs
|
|
5781
|
+
* Constructs an Onoue (2026) random-pair sparse stress SGD solver combining 1-hop edges with
|
|
5782
|
+
* sampled random pairs using exact shortest-path distances.
|
|
5310
5783
|
*/
|
|
5311
|
-
static randomPair(graph:
|
|
5784
|
+
static randomPair(graph: Graph, options?: RandomPairSgdOptions | null): SgdSolver;
|
|
5312
5785
|
/**
|
|
5313
5786
|
* Resets the SGD learning-rate schedule and RNG without reallocating stored pair buffers.
|
|
5314
5787
|
*/
|
|
@@ -5316,11 +5789,11 @@ export class SgdSolver {
|
|
|
5316
5789
|
/**
|
|
5317
5790
|
* Computes regularized Chebyshev DoG Varadhan landmarks and constructs a 3-tier Sparse Barrier SGD solver.
|
|
5318
5791
|
*/
|
|
5319
|
-
static sparseBarrierDog(graph:
|
|
5792
|
+
static sparseBarrierDog(graph: Graph, options?: SparseBarrierDogOptions | null): SgdSolver;
|
|
5320
5793
|
/**
|
|
5321
5794
|
* Constructs a 3-tier Sparse Barrier SGD solver from precomputed `DogVaradhanLandmarks`.
|
|
5322
5795
|
*/
|
|
5323
|
-
static sparseBarrierFromLandmarks(graph:
|
|
5796
|
+
static sparseBarrierFromLandmarks(graph: Graph, landmarks: DogVaradhanLandmarks, options?: SparseBarrierOptions | null): SgdSolver;
|
|
5324
5797
|
/**
|
|
5325
5798
|
* Returns `SparseBarrierStats` when constructed via `sparseBarrierFromLandmarks` or
|
|
5326
5799
|
* `sparseBarrierDog`, or `undefined` otherwise.
|
|
@@ -5329,7 +5802,7 @@ export class SgdSolver {
|
|
|
5329
5802
|
/**
|
|
5330
5803
|
* Constructs a minimal-RAM SGD solver storing 1-hop springs and streaming non-edge negatives.
|
|
5331
5804
|
*/
|
|
5332
|
-
static streamingNegatives(graph:
|
|
5805
|
+
static streamingNegatives(graph: Graph, options?: StreamingNegativeOptions | null): SgdSolver;
|
|
5333
5806
|
/**
|
|
5334
5807
|
* Returns the learning rate `eta` for the upcoming iteration (`0.0` once finished).
|
|
5335
5808
|
*/
|
|
@@ -5400,7 +5873,7 @@ export class SnapTFdpSolver {
|
|
|
5400
5873
|
/**
|
|
5401
5874
|
* Constructs a `SnapTFdpSolver` from `graph` and `SnapTFdpOptions`.
|
|
5402
5875
|
*/
|
|
5403
|
-
constructor(graph:
|
|
5876
|
+
constructor(graph: Graph, options?: SnapTFdpOptions | null);
|
|
5404
5877
|
readonly isFinished: boolean;
|
|
5405
5878
|
readonly iteration: number;
|
|
5406
5879
|
readonly numNodes: number;
|
|
@@ -5545,7 +6018,7 @@ export class SpatialIntruderRefiner {
|
|
|
5545
6018
|
/**
|
|
5546
6019
|
* Precomputes canonical 1-hop topology and hub-safe 2-hop structures for `graph`.
|
|
5547
6020
|
*/
|
|
5548
|
-
constructor(graph:
|
|
6021
|
+
constructor(graph: Graph, options?: SpatialRefinerOptions | null);
|
|
5549
6022
|
/**
|
|
5550
6023
|
* Executes up to `steps` refinement rounds on `layout` in place.
|
|
5551
6024
|
*/
|
|
@@ -5837,7 +6310,7 @@ export enum StressMajorizationBackend {
|
|
|
5837
6310
|
}
|
|
5838
6311
|
|
|
5839
6312
|
/**
|
|
5840
|
-
* Cooperative Gansner
|
|
6313
|
+
* Cooperative Gansner, Koren, & North (2005) Stress Majorization layout solver (`f32`)
|
|
5841
6314
|
* across `Layout2d`, `Layout3d`, `LayoutNd`, and `ManifoldLayout2d`.
|
|
5842
6315
|
*/
|
|
5843
6316
|
export class StressMajorizationSolver {
|
|
@@ -5870,11 +6343,11 @@ export class StressMajorizationSolver {
|
|
|
5870
6343
|
/**
|
|
5871
6344
|
* Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
|
|
5872
6345
|
*/
|
|
5873
|
-
static fromGraph(graph:
|
|
6346
|
+
static fromGraph(graph: Graph, options?: StressMajorizationOptions | null): StressMajorizationSolver;
|
|
5874
6347
|
/**
|
|
5875
6348
|
* Constructs a `StressMajorizationSolver` by computing APSP distances from `graph`.
|
|
5876
6349
|
*/
|
|
5877
|
-
constructor(graph:
|
|
6350
|
+
constructor(graph: Graph, options?: StressMajorizationOptions | null);
|
|
5878
6351
|
readonly backend: StressMajorizationBackend;
|
|
5879
6352
|
readonly isFinished: boolean;
|
|
5880
6353
|
readonly iteration: number;
|
|
@@ -5921,9 +6394,9 @@ export class TFdpSolver {
|
|
|
5921
6394
|
static fromKnn(knn: KnnGraph, options?: TFdpOptions | null): TFdpSolver;
|
|
5922
6395
|
static fromKnn(indptr: Uint32Array | number[], indices: Uint32Array | number[], weightsOrOptions?: Float64Array | Float32Array | number[] | TFdpOptions | null, options?: TFdpOptions | null): TFdpSolver;
|
|
5923
6396
|
/**
|
|
5924
|
-
* Constructs a `TFdpSolver` directly from a `
|
|
6397
|
+
* Constructs a `TFdpSolver` directly from a `Graph`.
|
|
5925
6398
|
*/
|
|
5926
|
-
constructor(graph:
|
|
6399
|
+
constructor(graph: Graph, options?: TFdpOptions | null);
|
|
5927
6400
|
readonly backend: FieldRepulsionBackend;
|
|
5928
6401
|
readonly currentRho: number;
|
|
5929
6402
|
readonly isFinished: boolean;
|
|
@@ -5991,6 +6464,7 @@ export enum TsNetBackend {
|
|
|
5991
6464
|
export class TsNetSolver {
|
|
5992
6465
|
free(): void;
|
|
5993
6466
|
[Symbol.dispose](): void;
|
|
6467
|
+
static fromProbabilitiesWithConformal(probs: SparseProbabilities, stages: readonly (TsNetStage | TsNetStageOptions)[], edgeTether?: Float32Array | Float64Array | number[] | null, metricAnchor?: UnifiedMetricAnchor | null, options?: TsNetOptions | null): TsNetSolver;
|
|
5994
6468
|
_run2d(layout: Layout2d): SolverStatus;
|
|
5995
6469
|
_run3d(layout: Layout3d): SolverStatus;
|
|
5996
6470
|
_runManifold(layout: ManifoldLayout2d): SolverStatus;
|
|
@@ -6006,13 +6480,13 @@ export class TsNetSolver {
|
|
|
6006
6480
|
_step3d(layout: Layout3d): SolverStatus;
|
|
6007
6481
|
_stepManifold(layout: ManifoldLayout2d): SolverStatus;
|
|
6008
6482
|
_stepNd(layout: LayoutNd): SolverStatus;
|
|
6009
|
-
static fromGraphPartialBfs(graph:
|
|
6483
|
+
static fromGraphPartialBfs(graph: Graph, options?: TsNetPartialBfsOptions | null): TsNetSolver;
|
|
6010
6484
|
/**
|
|
6011
6485
|
* Constructs a `TsNetSolver` from `graph` using direct row-normalized `A1 + w2 * A2`
|
|
6012
6486
|
* affinity with configurable 2-hop sampling `mode` and optional `maxBridgeDegree`.
|
|
6013
6487
|
*/
|
|
6014
|
-
static fromGraphRowNormalizedWithOptions(graph:
|
|
6015
|
-
static fromGraphRowNormalized(graph:
|
|
6488
|
+
static fromGraphRowNormalizedWithOptions(graph: Graph, options?: TsNetRowNormalizedOptions | null): TsNetSolver;
|
|
6489
|
+
static fromGraphRowNormalized(graph: Graph, options?: TsNetRowNormalizedOptions | null): TsNetSolver;
|
|
6016
6490
|
static fromKnn(knn: KnnGraph, options?: TsNetKnnOptions | null): TsNetSolver;
|
|
6017
6491
|
/**
|
|
6018
6492
|
* Constructs a `TsNetSolver` from precomputed symmetric `SparseProbabilities` and explicit `stages`.
|
|
@@ -6020,8 +6494,8 @@ export class TsNetSolver {
|
|
|
6020
6494
|
static fromProbabilitiesWithStages(probs: SparseProbabilities, stages: readonly (TsNetStage | TsNetStageOptions)[], options?: TsNetOptions | null): TsNetSolver;
|
|
6021
6495
|
static fromProbabilities(probs: SparseProbabilities, options?: TsNetOptions | null): TsNetSolver;
|
|
6022
6496
|
lastFftStats(): FitFieldStats | undefined;
|
|
6023
|
-
constructor(graph:
|
|
6024
|
-
static pure2Hop(graph:
|
|
6497
|
+
constructor(graph: Graph, options?: TsNetOptions | null);
|
|
6498
|
+
static pure2Hop(graph: Graph, options?: TsNetOptions | null): TsNetSolver;
|
|
6025
6499
|
readonly backend: TsNetBackend;
|
|
6026
6500
|
readonly currentStageLr: number;
|
|
6027
6501
|
readonly isFinished: boolean;
|
|
@@ -6046,11 +6520,15 @@ export class TsNetStage {
|
|
|
6046
6520
|
* Constructs a validated `TsNetStage` from `(iterations, options?)` or `{ iterations, ... }`.
|
|
6047
6521
|
*/
|
|
6048
6522
|
constructor(iterationsOrOptions: number | TsNetStageOptions, options?: TsNetStageOptions | null);
|
|
6523
|
+
readonly coercive1hop: number;
|
|
6049
6524
|
readonly exaggeration: number;
|
|
6050
6525
|
readonly iterations: number;
|
|
6051
6526
|
readonly lambdaC: number;
|
|
6052
6527
|
readonly lambdaKl: number;
|
|
6528
|
+
readonly lambdaMetric: number;
|
|
6053
6529
|
readonly lambdaR: number;
|
|
6530
|
+
readonly spring1hop: number;
|
|
6531
|
+
readonly springDeadzone: number;
|
|
6054
6532
|
}
|
|
6055
6533
|
|
|
6056
6534
|
/**
|
|
@@ -6080,13 +6558,13 @@ export class TwoHopCsr {
|
|
|
6080
6558
|
free(): void;
|
|
6081
6559
|
[Symbol.dispose](): void;
|
|
6082
6560
|
/**
|
|
6083
|
-
* Returns a cloned handle to the canonical unweighted 1-hop `
|
|
6561
|
+
* Returns a cloned handle to the canonical unweighted 1-hop `Graph`.
|
|
6084
6562
|
*/
|
|
6085
|
-
hop1():
|
|
6563
|
+
hop1(): Graph;
|
|
6086
6564
|
/**
|
|
6087
|
-
* Returns a cloned handle to the disjoint pure 2-hop `
|
|
6565
|
+
* Returns a cloned handle to the disjoint pure 2-hop `Graph`.
|
|
6088
6566
|
*/
|
|
6089
|
-
hop2():
|
|
6567
|
+
hop2(): Graph;
|
|
6090
6568
|
}
|
|
6091
6569
|
|
|
6092
6570
|
/**
|
|
@@ -6139,7 +6617,45 @@ export enum TwoHopSamplingMode {
|
|
|
6139
6617
|
}
|
|
6140
6618
|
|
|
6141
6619
|
/**
|
|
6142
|
-
*
|
|
6620
|
+
* Persistent scale-aligned global metric skeleton anchor for conformal `TsNetSolver`.
|
|
6621
|
+
*/
|
|
6622
|
+
export class UnifiedMetricAnchor {
|
|
6623
|
+
private constructor();
|
|
6624
|
+
free(): void;
|
|
6625
|
+
[Symbol.dispose](): void;
|
|
6626
|
+
/**
|
|
6627
|
+
* Builds a `UnifiedMetricAnchor` from a flat row-major `(numNodes, dim)` continuous embedding.
|
|
6628
|
+
*/
|
|
6629
|
+
static fromEmbeddingPivots(embeddingRowMajor: Float64Array | number[], numNodes: number, dim: number, pivots: Uint32Array | number[], options?: MetricAnchorEmbeddingOptions | null): UnifiedMetricAnchor;
|
|
6630
|
+
/**
|
|
6631
|
+
* Builds a `UnifiedMetricAnchor` from floating-point shortest-path pivot distances (`Infinity` unreachable).
|
|
6632
|
+
*/
|
|
6633
|
+
static fromF64Pivots(numNodes: number, pivots: Uint32Array | number[], pivotDistances: Float64Array | Float32Array | number[], options?: MetricAnchorOptions | null): UnifiedMetricAnchor;
|
|
6634
|
+
/**
|
|
6635
|
+
* Builds a `UnifiedMetricAnchor` from integer hop-distance pivot rows (`Uint32Array`/`Uint16Array`/`Uint8Array`).
|
|
6636
|
+
*/
|
|
6637
|
+
static fromHopPivots(numNodes: number, pivots: Uint32Array | number[], pivotDistances: HopDistanceArrayLike, options?: MetricAnchorOptions | null): UnifiedMetricAnchor;
|
|
6638
|
+
/**
|
|
6639
|
+
* Returns the flat pivot-major ideal distances (`Float32Array`, `<= 0.0` inactive).
|
|
6640
|
+
*/
|
|
6641
|
+
pivotDistances(): Float32Array;
|
|
6642
|
+
/**
|
|
6643
|
+
* Returns the selected anchor pivot vertex indices (`Uint32Array`).
|
|
6644
|
+
*/
|
|
6645
|
+
pivots(): Uint32Array;
|
|
6646
|
+
/**
|
|
6647
|
+
* Returns the flat pivot-major normalized anchor weights (`Float32Array`).
|
|
6648
|
+
*/
|
|
6649
|
+
weights(): Float32Array;
|
|
6650
|
+
readonly activeFraction: number;
|
|
6651
|
+
readonly numNodes: number;
|
|
6652
|
+
readonly scaleAlpha: number;
|
|
6653
|
+
readonly softEps: number;
|
|
6654
|
+
readonly sumWd2: number;
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6657
|
+
/**
|
|
6658
|
+
* r" Scalar edge-weight storage precision supported by WebAssembly `Graph`.
|
|
6143
6659
|
*/
|
|
6144
6660
|
export enum WeightDtype {
|
|
6145
6661
|
Float32 = 0,
|
|
@@ -6166,7 +6682,7 @@ export class YifanHuSolver {
|
|
|
6166
6682
|
/**
|
|
6167
6683
|
* Constructs a `YifanHuSolver` from `graph` and optional `YifanHuOptions`.
|
|
6168
6684
|
*/
|
|
6169
|
-
constructor(graph:
|
|
6685
|
+
constructor(graph: Graph, options?: YifanHuOptions | null);
|
|
6170
6686
|
readonly backend: ForceBackend;
|
|
6171
6687
|
readonly currentLevel: number;
|
|
6172
6688
|
readonly isFinished: boolean;
|
|
@@ -6205,12 +6721,12 @@ export function _cqKmeansNd(layout: LayoutNd, labels: Uint32Array | number[], op
|
|
|
6205
6721
|
/**
|
|
6206
6722
|
* Finds all crossing edge sub-segment pairs on the unit torus `[0, 1)^2` for `Layout2d`.
|
|
6207
6723
|
*/
|
|
6208
|
-
export function _crossingEdgesTorus2d(graph:
|
|
6724
|
+
export function _crossingEdgesTorus2d(graph: Graph, layout: Layout2d): TorusCrossing[];
|
|
6209
6725
|
|
|
6210
6726
|
/**
|
|
6211
6727
|
* Finds all crossing edge sub-segment pairs on the flat torus for `ManifoldLayout2d` (`torus2d`).
|
|
6212
6728
|
*/
|
|
6213
|
-
export function _crossingEdgesTorusManifold(graph:
|
|
6729
|
+
export function _crossingEdgesTorusManifold(graph: Graph, layout: ManifoldLayout2d): TorusCrossing[];
|
|
6214
6730
|
|
|
6215
6731
|
export function _daviesBouldinScore2d(layout: Layout2d, labels: Uint32Array | number[]): number;
|
|
6216
6732
|
|
|
@@ -6223,13 +6739,13 @@ export function _daviesBouldinScoreNd(layout: LayoutNd, labels: Uint32Array | nu
|
|
|
6223
6739
|
/**
|
|
6224
6740
|
* Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
|
|
6225
6741
|
*/
|
|
6226
|
-
export function _dggPreservation2d(graph:
|
|
6742
|
+
export function _dggPreservation2d(graph: Graph, layout: Layout2d): number;
|
|
6227
6743
|
|
|
6228
|
-
export function _dggPreservation3d(graph:
|
|
6744
|
+
export function _dggPreservation3d(graph: Graph, layout: Layout3d): number;
|
|
6229
6745
|
|
|
6230
|
-
export function _dggPreservationManifold(graph:
|
|
6746
|
+
export function _dggPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6231
6747
|
|
|
6232
|
-
export function _dggPreservationNd(graph:
|
|
6748
|
+
export function _dggPreservationNd(graph: Graph, layout: LayoutNd): number;
|
|
6233
6749
|
|
|
6234
6750
|
export function _distanceConsistency2d(layout: Layout2d, labels: Uint32Array | number[]): number;
|
|
6235
6751
|
|
|
@@ -6250,38 +6766,38 @@ export function _distributionConsistencyNd(layout: LayoutNd, labels: Uint32Array
|
|
|
6250
6766
|
/**
|
|
6251
6767
|
* Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
|
|
6252
6768
|
*/
|
|
6253
|
-
export function _drngPreservation2d(graph:
|
|
6769
|
+
export function _drngPreservation2d(graph: Graph, layout: Layout2d): number;
|
|
6254
6770
|
|
|
6255
|
-
export function _drngPreservation3d(graph:
|
|
6771
|
+
export function _drngPreservation3d(graph: Graph, layout: Layout3d): number;
|
|
6256
6772
|
|
|
6257
|
-
export function _drngPreservationManifold(graph:
|
|
6773
|
+
export function _drngPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6258
6774
|
|
|
6259
|
-
export function _drngPreservationNd(graph:
|
|
6775
|
+
export function _drngPreservationNd(graph: Graph, layout: LayoutNd): number;
|
|
6260
6776
|
|
|
6261
6777
|
/**
|
|
6262
6778
|
* Selectively evaluates quality metrics on `Layout2d` without an `originalLayout`.
|
|
6263
6779
|
*/
|
|
6264
|
-
export function _evaluateMetrics2d(graph:
|
|
6780
|
+
export function _evaluateMetrics2d(graph: Graph, layout: Layout2d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
|
|
6265
6781
|
|
|
6266
6782
|
/**
|
|
6267
6783
|
* Selectively evaluates quality metrics on `Layout2d` with a reference `originalLayout`.
|
|
6268
6784
|
*/
|
|
6269
|
-
export function _evaluateMetrics2dWithOriginal(graph:
|
|
6785
|
+
export function _evaluateMetrics2dWithOriginal(graph: Graph, layout: Layout2d, targets: readonly MetricTarget[], options: MetricConfigOptions | null | undefined, originalLayout: Layout2d): MetricReport;
|
|
6270
6786
|
|
|
6271
6787
|
/**
|
|
6272
6788
|
* Selectively evaluates quality metrics on `Layout3d`, skipping unrequested work.
|
|
6273
6789
|
*/
|
|
6274
|
-
export function _evaluateMetrics3d(graph:
|
|
6790
|
+
export function _evaluateMetrics3d(graph: Graph, layout: Layout3d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
|
|
6275
6791
|
|
|
6276
6792
|
/**
|
|
6277
6793
|
* Selectively evaluates quality metrics on `ManifoldLayout2d`, skipping unrequested work.
|
|
6278
6794
|
*/
|
|
6279
|
-
export function _evaluateMetricsManifold(graph:
|
|
6795
|
+
export function _evaluateMetricsManifold(graph: Graph, layout: ManifoldLayout2d, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
|
|
6280
6796
|
|
|
6281
6797
|
/**
|
|
6282
6798
|
* Selectively evaluates quality metrics on `LayoutNd`, skipping unrequested work.
|
|
6283
6799
|
*/
|
|
6284
|
-
export function _evaluateMetricsNd(graph:
|
|
6800
|
+
export function _evaluateMetricsNd(graph: Graph, layout: LayoutNd, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
|
|
6285
6801
|
|
|
6286
6802
|
/**
|
|
6287
6803
|
* Extracts exact undirected Gabriel Graph (`GG`) edges as flat `[u0, v0, ...]` (`Uint32Array`).
|
|
@@ -6297,47 +6813,47 @@ export function _gabrielGraphEdgesNd(layout: LayoutNd): Uint32Array;
|
|
|
6297
6813
|
/**
|
|
6298
6814
|
* Computes Gabriel graph condition violations across `graph` edges under `layout`.
|
|
6299
6815
|
*/
|
|
6300
|
-
export function _gabrielGraphProperty2d(graph:
|
|
6816
|
+
export function _gabrielGraphProperty2d(graph: Graph, layout: Layout2d): number;
|
|
6301
6817
|
|
|
6302
|
-
export function _gabrielGraphProperty3d(graph:
|
|
6818
|
+
export function _gabrielGraphProperty3d(graph: Graph, layout: Layout3d): number;
|
|
6303
6819
|
|
|
6304
|
-
export function _gabrielGraphPropertyManifold(graph:
|
|
6820
|
+
export function _gabrielGraphPropertyManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6305
6821
|
|
|
6306
|
-
export function _gabrielGraphPropertyNd(graph:
|
|
6822
|
+
export function _gabrielGraphPropertyNd(graph: Graph, layout: LayoutNd): number;
|
|
6307
6823
|
|
|
6308
6824
|
/**
|
|
6309
6825
|
* Evaluates ideal edge-length preservation error sum for `graph` under `layout`.
|
|
6310
6826
|
*/
|
|
6311
|
-
export function _idealEdgeLengths2d(graph:
|
|
6827
|
+
export function _idealEdgeLengths2d(graph: Graph, layout: Layout2d): number;
|
|
6312
6828
|
|
|
6313
|
-
export function _idealEdgeLengths3d(graph:
|
|
6829
|
+
export function _idealEdgeLengths3d(graph: Graph, layout: Layout3d): number;
|
|
6314
6830
|
|
|
6315
|
-
export function _idealEdgeLengthsManifold(graph:
|
|
6831
|
+
export function _idealEdgeLengthsManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6316
6832
|
|
|
6317
|
-
export function _idealEdgeLengthsNd(graph:
|
|
6833
|
+
export function _idealEdgeLengthsNd(graph: Graph, layout: LayoutNd): number;
|
|
6318
6834
|
|
|
6319
6835
|
/**
|
|
6320
6836
|
* Evaluates ideal edge-length preservation error against a uniform `unitEdgeLength > 0`.
|
|
6321
6837
|
*/
|
|
6322
|
-
export function _idealEdgeLengthsWithUnit2d(graph:
|
|
6838
|
+
export function _idealEdgeLengthsWithUnit2d(graph: Graph, layout: Layout2d, unit_edge_length: number): number;
|
|
6323
6839
|
|
|
6324
|
-
export function _idealEdgeLengthsWithUnit3d(graph:
|
|
6840
|
+
export function _idealEdgeLengthsWithUnit3d(graph: Graph, layout: Layout3d, unit_edge_length: number): number;
|
|
6325
6841
|
|
|
6326
|
-
export function _idealEdgeLengthsWithUnitManifold(graph:
|
|
6842
|
+
export function _idealEdgeLengthsWithUnitManifold(graph: Graph, layout: ManifoldLayout2d, unit_edge_length: number): number;
|
|
6327
6843
|
|
|
6328
|
-
export function _idealEdgeLengthsWithUnitNd(graph:
|
|
6844
|
+
export function _idealEdgeLengthsWithUnitNd(graph: Graph, layout: LayoutNd, unit_edge_length: number): number;
|
|
6329
6845
|
|
|
6330
|
-
export function _landmarkStratifiedRta2d(graph:
|
|
6846
|
+
export function _landmarkStratifiedRta2d(graph: Graph, layout: Layout2d, options?: RtaOptions | null): number;
|
|
6331
6847
|
|
|
6332
|
-
export function _landmarkStratifiedRta3d(graph:
|
|
6848
|
+
export function _landmarkStratifiedRta3d(graph: Graph, layout: Layout3d, options?: RtaOptions | null): number;
|
|
6333
6849
|
|
|
6334
|
-
export function _landmarkStratifiedRtaDetail2d(graph:
|
|
6850
|
+
export function _landmarkStratifiedRtaDetail2d(graph: Graph, layout: Layout2d, options?: RtaOptions | null): RtaEvaluation;
|
|
6335
6851
|
|
|
6336
|
-
export function _landmarkStratifiedRtaDetail3d(graph:
|
|
6852
|
+
export function _landmarkStratifiedRtaDetail3d(graph: Graph, layout: Layout3d, options?: RtaOptions | null): RtaEvaluation;
|
|
6337
6853
|
|
|
6338
|
-
export function _landmarkStratifiedRtaDetailManifold(graph:
|
|
6854
|
+
export function _landmarkStratifiedRtaDetailManifold(graph: Graph, layout: ManifoldLayout2d, options?: RtaOptions | null): RtaEvaluation;
|
|
6339
6855
|
|
|
6340
|
-
export function _landmarkStratifiedRtaDetailNd(graph:
|
|
6856
|
+
export function _landmarkStratifiedRtaDetailNd(graph: Graph, layout: LayoutNd, options?: RtaOptions | null): RtaEvaluation;
|
|
6341
6857
|
|
|
6342
6858
|
export function _landmarkStratifiedRtaFromLandmarks2d(layout: Layout2d, landmarkIds: Uint32Array | number[], landmarkDists: Float64Array | Float32Array | Uint32Array | number[], options?: RtaFromLandmarksOptions | null): RtaEvaluation;
|
|
6343
6859
|
|
|
@@ -6347,20 +6863,20 @@ export function _landmarkStratifiedRtaFromLandmarksManifold(layout: ManifoldLayo
|
|
|
6347
6863
|
|
|
6348
6864
|
export function _landmarkStratifiedRtaFromLandmarksNd(layout: LayoutNd, landmarkIds: Uint32Array | number[], landmarkDists: Float64Array | Float32Array | Uint32Array | number[], options?: RtaFromLandmarksOptions | null): RtaEvaluation;
|
|
6349
6865
|
|
|
6350
|
-
export function _landmarkStratifiedRtaManifold(graph:
|
|
6866
|
+
export function _landmarkStratifiedRtaManifold(graph: Graph, layout: ManifoldLayout2d, options?: RtaOptions | null): number;
|
|
6351
6867
|
|
|
6352
|
-
export function _landmarkStratifiedRtaNd(graph:
|
|
6868
|
+
export function _landmarkStratifiedRtaNd(graph: Graph, layout: LayoutNd, options?: RtaOptions | null): number;
|
|
6353
6869
|
|
|
6354
6870
|
/**
|
|
6355
6871
|
* Evaluates duplicate-node (`f32`/`f64`), zero-length edge, and bounding-box degeneracies.
|
|
6356
6872
|
*/
|
|
6357
|
-
export function _layoutDegeneracy2d(graph:
|
|
6873
|
+
export function _layoutDegeneracy2d(graph: Graph, layout: Layout2d): LayoutDegeneracy;
|
|
6358
6874
|
|
|
6359
|
-
export function _layoutDegeneracy3d(graph:
|
|
6875
|
+
export function _layoutDegeneracy3d(graph: Graph, layout: Layout3d): LayoutDegeneracy;
|
|
6360
6876
|
|
|
6361
|
-
export function _layoutDegeneracyManifold(graph:
|
|
6877
|
+
export function _layoutDegeneracyManifold(graph: Graph, layout: ManifoldLayout2d): LayoutDegeneracy;
|
|
6362
6878
|
|
|
6363
|
-
export function _layoutDegeneracyNd(graph:
|
|
6879
|
+
export function _layoutDegeneracyNd(graph: Graph, layout: LayoutNd): LayoutDegeneracy;
|
|
6364
6880
|
|
|
6365
6881
|
export function _neighborhoodHit2d(layout: Layout2d, labels: Uint32Array | number[], options?: { k?: number | null } | null): number;
|
|
6366
6882
|
|
|
@@ -6373,24 +6889,24 @@ export function _neighborhoodHitNd(layout: LayoutNd, labels: Uint32Array | numbe
|
|
|
6373
6889
|
/**
|
|
6374
6890
|
* Computes `StaticKdTree`-accelerated 1-hop neighborhood preservation (`NP1`) in `[0.0, 1.0]`.
|
|
6375
6891
|
*/
|
|
6376
|
-
export function _neighborhoodPreservation1Hop2d(graph:
|
|
6892
|
+
export function _neighborhoodPreservation1Hop2d(graph: Graph, layout: Layout2d): number;
|
|
6377
6893
|
|
|
6378
|
-
export function _neighborhoodPreservation1Hop3d(graph:
|
|
6894
|
+
export function _neighborhoodPreservation1Hop3d(graph: Graph, layout: Layout3d): number;
|
|
6379
6895
|
|
|
6380
|
-
export function _neighborhoodPreservation1HopManifold(graph:
|
|
6896
|
+
export function _neighborhoodPreservation1HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6381
6897
|
|
|
6382
|
-
export function _neighborhoodPreservation1HopNd(graph:
|
|
6898
|
+
export function _neighborhoodPreservation1HopNd(graph: Graph, layout: LayoutNd): number;
|
|
6383
6899
|
|
|
6384
6900
|
/**
|
|
6385
6901
|
* Computes `StaticKdTree`-accelerated 2-hop neighborhood preservation (`NP2`) in `[0.0, 1.0]`.
|
|
6386
6902
|
*/
|
|
6387
|
-
export function _neighborhoodPreservation2Hop2d(graph:
|
|
6903
|
+
export function _neighborhoodPreservation2Hop2d(graph: Graph, layout: Layout2d): number;
|
|
6388
6904
|
|
|
6389
|
-
export function _neighborhoodPreservation2Hop3d(graph:
|
|
6905
|
+
export function _neighborhoodPreservation2Hop3d(graph: Graph, layout: Layout3d): number;
|
|
6390
6906
|
|
|
6391
|
-
export function _neighborhoodPreservation2HopManifold(graph:
|
|
6907
|
+
export function _neighborhoodPreservation2HopManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6392
6908
|
|
|
6393
|
-
export function _neighborhoodPreservation2HopNd(graph:
|
|
6909
|
+
export function _neighborhoodPreservation2HopNd(graph: Graph, layout: LayoutNd): number;
|
|
6394
6910
|
|
|
6395
6911
|
/**
|
|
6396
6912
|
* Computes the one-sided hinge node-resolution violation sum of `layout`.
|
|
@@ -6425,53 +6941,53 @@ export function _relativeNeighborhoodEdgesNd(layout: LayoutNd): Uint32Array;
|
|
|
6425
6941
|
/**
|
|
6426
6942
|
* Estimates 1-hop neighborhood preservation (`NP1`) via vertex sampling (`options?: { numSamples?, seed? }`).
|
|
6427
6943
|
*/
|
|
6428
|
-
export function _sampledNp12d(graph:
|
|
6944
|
+
export function _sampledNp12d(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
|
|
6429
6945
|
|
|
6430
|
-
export function _sampledNp13d(graph:
|
|
6946
|
+
export function _sampledNp13d(graph: Graph, layout: Layout3d, options?: SamplingSeedOptions | null): number;
|
|
6431
6947
|
|
|
6432
|
-
export function _sampledNp1Manifold(graph:
|
|
6948
|
+
export function _sampledNp1Manifold(graph: Graph, layout: ManifoldLayout2d, options?: SamplingSeedOptions | null): number;
|
|
6433
6949
|
|
|
6434
|
-
export function _sampledNp1Nd(graph:
|
|
6950
|
+
export function _sampledNp1Nd(graph: Graph, layout: LayoutNd, options?: SamplingSeedOptions | null): number;
|
|
6435
6951
|
|
|
6436
6952
|
/**
|
|
6437
6953
|
* Estimates 2-hop neighborhood preservation (`NP2`) via vertex sampling (`options?: { numSamples?, seed? }`).
|
|
6438
6954
|
*/
|
|
6439
|
-
export function _sampledNp22d(graph:
|
|
6955
|
+
export function _sampledNp22d(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
|
|
6440
6956
|
|
|
6441
|
-
export function _sampledNp23d(graph:
|
|
6957
|
+
export function _sampledNp23d(graph: Graph, layout: Layout3d, options?: SamplingSeedOptions | null): number;
|
|
6442
6958
|
|
|
6443
|
-
export function _sampledNp2Manifold(graph:
|
|
6959
|
+
export function _sampledNp2Manifold(graph: Graph, layout: ManifoldLayout2d, options?: SamplingSeedOptions | null): number;
|
|
6444
6960
|
|
|
6445
|
-
export function _sampledNp2Nd(graph:
|
|
6961
|
+
export function _sampledNp2Nd(graph: Graph, layout: LayoutNd, options?: SamplingSeedOptions | null): number;
|
|
6446
6962
|
|
|
6447
6963
|
/**
|
|
6448
6964
|
* Computes $O(kN)$ pivot-sampled Scale-Normalized Stress (`SNS`) (`options?: { numPivots?, seed? }`).
|
|
6449
6965
|
*/
|
|
6450
|
-
export function _sampledScaleNormalizedStress2d(graph:
|
|
6966
|
+
export function _sampledScaleNormalizedStress2d(graph: Graph, layout: Layout2d, options?: SampledStressOptions | null): number;
|
|
6451
6967
|
|
|
6452
|
-
export function _sampledScaleNormalizedStress3d(graph:
|
|
6968
|
+
export function _sampledScaleNormalizedStress3d(graph: Graph, layout: Layout3d, options?: SampledStressOptions | null): number;
|
|
6453
6969
|
|
|
6454
|
-
export function _sampledScaleNormalizedStressManifold(graph:
|
|
6970
|
+
export function _sampledScaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d, options?: SampledStressOptions | null): number;
|
|
6455
6971
|
|
|
6456
|
-
export function _sampledScaleNormalizedStressNd(graph:
|
|
6972
|
+
export function _sampledScaleNormalizedStressNd(graph: Graph, layout: LayoutNd, options?: SampledStressOptions | null): number;
|
|
6457
6973
|
|
|
6458
6974
|
/**
|
|
6459
6975
|
* Computes closed-form Scale-Normalized Stress (`SNS`) in `[0.0, 1.0]` for `graph` and `layout`.
|
|
6460
6976
|
*/
|
|
6461
|
-
export function _scaleNormalizedStress2d(graph:
|
|
6977
|
+
export function _scaleNormalizedStress2d(graph: Graph, layout: Layout2d): number;
|
|
6462
6978
|
|
|
6463
|
-
export function _scaleNormalizedStress3d(graph:
|
|
6979
|
+
export function _scaleNormalizedStress3d(graph: Graph, layout: Layout3d): number;
|
|
6464
6980
|
|
|
6465
6981
|
/**
|
|
6466
6982
|
* Computes detailed closed-form Scale-Normalized Stress (`SNS`) diagnostics for `graph` and `layout`.
|
|
6467
6983
|
*/
|
|
6468
|
-
export function _scaleNormalizedStressDetail2d(graph:
|
|
6984
|
+
export function _scaleNormalizedStressDetail2d(graph: Graph, layout: Layout2d): StressEvaluation;
|
|
6469
6985
|
|
|
6470
|
-
export function _scaleNormalizedStressDetail3d(graph:
|
|
6986
|
+
export function _scaleNormalizedStressDetail3d(graph: Graph, layout: Layout3d): StressEvaluation;
|
|
6471
6987
|
|
|
6472
|
-
export function _scaleNormalizedStressDetailManifold(graph:
|
|
6988
|
+
export function _scaleNormalizedStressDetailManifold(graph: Graph, layout: ManifoldLayout2d): StressEvaluation;
|
|
6473
6989
|
|
|
6474
|
-
export function _scaleNormalizedStressDetailNd(graph:
|
|
6990
|
+
export function _scaleNormalizedStressDetailNd(graph: Graph, layout: LayoutNd): StressEvaluation;
|
|
6475
6991
|
|
|
6476
6992
|
/**
|
|
6477
6993
|
* Computes closed-form Scale-Normalized Stress (`SNS`) from a flat row-major `N * N` `distances`
|
|
@@ -6485,9 +7001,9 @@ export function _scaleNormalizedStressFromDistancesManifold(layout: ManifoldLayo
|
|
|
6485
7001
|
|
|
6486
7002
|
export function _scaleNormalizedStressFromDistancesNd(layout: LayoutNd, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
|
|
6487
7003
|
|
|
6488
|
-
export function _scaleNormalizedStressManifold(graph:
|
|
7004
|
+
export function _scaleNormalizedStressManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6489
7005
|
|
|
6490
|
-
export function _scaleNormalizedStressNd(graph:
|
|
7006
|
+
export function _scaleNormalizedStressNd(graph: Graph, layout: LayoutNd): number;
|
|
6491
7007
|
|
|
6492
7008
|
export function _sepmeGab2d(layout: Layout2d, labels: Uint32Array | number[]): number;
|
|
6493
7009
|
|
|
@@ -6532,22 +7048,22 @@ export function _silhouetteScoreNd(layout: LayoutNd, labels: Uint32Array | numbe
|
|
|
6532
7048
|
/**
|
|
6533
7049
|
* Counts non-adjacent edge sub-segment crossings on the flat unit torus `[0, 1)^2` for `Layout2d`.
|
|
6534
7050
|
*/
|
|
6535
|
-
export function _torusCrossingNumber2d(graph:
|
|
7051
|
+
export function _torusCrossingNumber2d(graph: Graph, layout: Layout2d): number;
|
|
6536
7052
|
|
|
6537
7053
|
/**
|
|
6538
7054
|
* Counts non-adjacent edge sub-segment crossings on the flat torus for `ManifoldLayout2d` (`torus2d`).
|
|
6539
7055
|
*/
|
|
6540
|
-
export function _torusCrossingNumberManifold(graph:
|
|
7056
|
+
export function _torusCrossingNumberManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6541
7057
|
|
|
6542
7058
|
/**
|
|
6543
7059
|
* Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `Layout2d`.
|
|
6544
7060
|
*/
|
|
6545
|
-
export function _torusLayoutEdgeSegments2d(graph:
|
|
7061
|
+
export function _torusLayoutEdgeSegments2d(graph: Graph, layout: Layout2d): Float64Array;
|
|
6546
7062
|
|
|
6547
7063
|
/**
|
|
6548
7064
|
* Returns flat `[x1, y1, x2, y2, ...]` clipped torus edge sub-segments for `ManifoldLayout2d`.
|
|
6549
7065
|
*/
|
|
6550
|
-
export function _torusLayoutEdgeSegmentsManifold(graph:
|
|
7066
|
+
export function _torusLayoutEdgeSegmentsManifold(graph: Graph, layout: ManifoldLayout2d): Float64Array;
|
|
6551
7067
|
|
|
6552
7068
|
/**
|
|
6553
7069
|
* Returns adaptive Chebyshev polynomial degree for diffusion time `t`.
|
|
@@ -6589,22 +7105,22 @@ export function alignClusteredCentroids(fineLayout: Layout2d, coarseLayout: Layo
|
|
|
6589
7105
|
/**
|
|
6590
7106
|
* Computes an all-pairs shortest-path flat row-major `N * N` distance matrix via BFS.
|
|
6591
7107
|
*/
|
|
6592
|
-
export function allPairsBfs(graph:
|
|
7108
|
+
export function allPairsBfs(graph: Graph, unit_edge_length?: number | null): Float64Array;
|
|
6593
7109
|
|
|
6594
7110
|
/**
|
|
6595
7111
|
* Computes the flat row-major `(numNodes, numNodes)` all-pairs Dijkstra distance matrix (`Float64Array`).
|
|
6596
7112
|
*/
|
|
6597
|
-
export function allPairsDijkstra(graph:
|
|
7113
|
+
export function allPairsDijkstra(graph: Graph): Float64Array;
|
|
6598
7114
|
|
|
6599
7115
|
/**
|
|
6600
7116
|
* Computes the exponential angular-resolution penalty sum over incident edge pairs.
|
|
6601
7117
|
*/
|
|
6602
|
-
export function angularResolution(graph:
|
|
7118
|
+
export function angularResolution(graph: Graph, layout: Layout2d): number;
|
|
6603
7119
|
|
|
6604
7120
|
/**
|
|
6605
7121
|
* Constructs a symmetric PSD Coifman-Lafon anisotropic graph Laplacian `L_aniso`.
|
|
6606
7122
|
*/
|
|
6607
|
-
export function anisotropicLaplacian(graph:
|
|
7123
|
+
export function anisotropicLaplacian(graph: Graph, options?: AnisotropicLaplacianOptions | null): AnisotropicLaplacianResult;
|
|
6608
7124
|
|
|
6609
7125
|
/**
|
|
6610
7126
|
* Clamps pair distances `d1`, `d2`, and `d3` in place using `max(epsDist, minRatio * median_pos)`,
|
|
@@ -6618,19 +7134,19 @@ export function applyRelativeDistanceFloor(d1: Float64Array, d2: Float64Array, d
|
|
|
6618
7134
|
export function aspectRatio(layout: Layout2d): number;
|
|
6619
7135
|
|
|
6620
7136
|
/**
|
|
6621
|
-
* Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `
|
|
7137
|
+
* Assigns hierarchical layers (`0, 1, ...`) to all vertices of a directed `Graph`.
|
|
6622
7138
|
*/
|
|
6623
|
-
export function assignLayers(graph:
|
|
7139
|
+
export function assignLayers(graph: Graph, methodOrOptions?: LayeringMethod | { method?: LayeringMethod | null } | null): Uint32Array;
|
|
6624
7140
|
|
|
6625
7141
|
/**
|
|
6626
7142
|
* Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
|
|
6627
7143
|
*/
|
|
6628
|
-
export function bfsSingleSource(graph:
|
|
7144
|
+
export function bfsSingleSource(graph: Graph, source: number, unit_edge_length?: number | null): Float64Array;
|
|
6629
7145
|
|
|
6630
7146
|
/**
|
|
6631
7147
|
* Builds a hub-safe capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
|
|
6632
7148
|
*/
|
|
6633
|
-
export function buildCapped12hopKnn(graph:
|
|
7149
|
+
export function buildCapped12hopKnn(graph: Graph, max2hopPerNode?: number | null, seed?: number | bigint | null): TwoHopKnnResult;
|
|
6634
7150
|
|
|
6635
7151
|
/**
|
|
6636
7152
|
* Builds 2-term Difference-of-Gaussians filter terms `[[1 - betaFloor, t1], [-alpha * (1 - betaFloor), t2]]`.
|
|
@@ -6646,12 +7162,12 @@ export function buildGumap12hopPriorityCsr(numNodes: number, u1: Uint32Array | n
|
|
|
6646
7162
|
/**
|
|
6647
7163
|
* Builds a hybrid 1+2-hop + two-step coarse `StaticKdTree` + full-$D$ reranked `KnnGraph`.
|
|
6648
7164
|
*/
|
|
6649
|
-
export function buildHybridAdaptiveKnn(graph:
|
|
7165
|
+
export function buildHybridAdaptiveKnn(graph: Graph, coords: Float64Array | number[], dim: number, perplexities: Float64Array | number[], options?: HybridAdaptiveKnnOptions | null): HybridKnnResult;
|
|
6650
7166
|
|
|
6651
7167
|
/**
|
|
6652
7168
|
* Builds a pure 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics.
|
|
6653
7169
|
*/
|
|
6654
|
-
export function buildPure2hopKnn(graph:
|
|
7170
|
+
export function buildPure2hopKnn(graph: Graph): TwoHopKnnResult;
|
|
6655
7171
|
|
|
6656
7172
|
/**
|
|
6657
7173
|
* Builds parameter-free R1 regularized DoG terms from $\sigma_\lambda$.
|
|
@@ -6667,7 +7183,7 @@ export function buildRerankKnn(coords: Float64Array | number[], numNodes: number
|
|
|
6667
7183
|
/**
|
|
6668
7184
|
* Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`.
|
|
6669
7185
|
*/
|
|
6670
|
-
export function chebyshevDogJlEmbedding(graph:
|
|
7186
|
+
export function chebyshevDogJlEmbedding(graph: Graph, options?: ChebyshevDogJlOptions | null): Float64Array;
|
|
6671
7187
|
|
|
6672
7188
|
/**
|
|
6673
7189
|
* Computes a deterministic R1/R2 regularized DoG JL spectral embedding `(numNodes, jlDim)`
|
|
@@ -6678,7 +7194,7 @@ export function chebyshevDogJlEmbeddingMatrix(matrix: CsrMatrix, options?: Cheby
|
|
|
6678
7194
|
/**
|
|
6679
7195
|
* Applies Chebyshev heat diffusion $\exp(-t L_{\mathrm{sym}})$ to a row-major `(numNodes, numCols)` buffer.
|
|
6680
7196
|
*/
|
|
6681
|
-
export function chebyshevHeatSpmv(graph:
|
|
7197
|
+
export function chebyshevHeatSpmv(graph: Graph, vectors: Float64Array | number[], numCols: number, t: number, options?: ChebyshevHeatSpmvOptions | null): Float64Array;
|
|
6682
7198
|
|
|
6683
7199
|
/**
|
|
6684
7200
|
* Applies Chebyshev heat diffusion $\exp(-t A)$ to a row-major `(numNodes, numCols)` buffer
|
|
@@ -6694,12 +7210,12 @@ export function classDensityMeasure(layout: Layout2d, labels: Uint32Array | numb
|
|
|
6694
7210
|
/**
|
|
6695
7211
|
* Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`, default `dims = 2`).
|
|
6696
7212
|
*/
|
|
6697
|
-
export function classicalMds(graph:
|
|
7213
|
+
export function classicalMds(graph: Graph, dims?: number | null): LayoutNd;
|
|
6698
7214
|
|
|
6699
7215
|
/**
|
|
6700
7216
|
* Computes a 2D `Layout2d` (`f32`) using zero-guarded Classical MDS.
|
|
6701
7217
|
*/
|
|
6702
|
-
export function classicalMds2d(graph:
|
|
7218
|
+
export function classicalMds2d(graph: Graph): Layout2d;
|
|
6703
7219
|
|
|
6704
7220
|
/**
|
|
6705
7221
|
* Computes a `dims`-dimensional Classical MDS `LayoutNd` (`f32`) from a flat `(numNodes, numNodes)`
|
|
@@ -6720,22 +7236,22 @@ export function clusterAreaFaithfulnessDetail(layout: Layout2d, labels: Uint32Ar
|
|
|
6720
7236
|
/**
|
|
6721
7237
|
* Runs coarse Louvain edge-length-first area reservation and non-SPD backbone initialization.
|
|
6722
7238
|
*/
|
|
6723
|
-
export function coarseBackboneInit(graph:
|
|
7239
|
+
export function coarseBackboneInit(graph: Graph, options?: CoarseBackboneOptions | null): CoarseBackboneResult;
|
|
6724
7240
|
|
|
6725
7241
|
/**
|
|
6726
|
-
* Coarsens an undirected `
|
|
7242
|
+
* Coarsens an undirected `Graph` by contracting vertices that share a cluster label.
|
|
6727
7243
|
*/
|
|
6728
|
-
export function coarsenGraph(graph:
|
|
7244
|
+
export function coarsenGraph(graph: Graph, labels: Uint32Array | number[]): CoarsenedGraphResult;
|
|
6729
7245
|
|
|
6730
7246
|
/**
|
|
6731
7247
|
* Builds the combinatorial graph Laplacian $L = D - A$ as a `CsrMatrix`.
|
|
6732
7248
|
*/
|
|
6733
|
-
export function combinatorialLaplacian(graph:
|
|
7249
|
+
export function combinatorialLaplacian(graph: Graph): CsrMatrix;
|
|
6734
7250
|
|
|
6735
7251
|
/**
|
|
6736
7252
|
* Computes exact distinct 1-hop + 2-hop neighborhood sizes $|B_2(u) \setminus \{u\}|$.
|
|
6737
7253
|
*/
|
|
6738
|
-
export function compute2hopNeighborhoodSizes(graph:
|
|
7254
|
+
export function compute2hopNeighborhoodSizes(graph: Graph): Uint32Array;
|
|
6739
7255
|
|
|
6740
7256
|
/**
|
|
6741
7257
|
* Computes Chebyshev expansion coefficients for $\sum_m w_m \exp(-t_m \lambda)$ over `[0, lambdaMax]`.
|
|
@@ -6745,18 +7261,18 @@ export function computeChebyshevBandpassCoefficients(terms: SpectralFilterTermsI
|
|
|
6745
7261
|
/**
|
|
6746
7262
|
* Computes heat-diffusion spectral embedding $D^{-1/2} U \exp(-0.5 t \Lambda)$.
|
|
6747
7263
|
*/
|
|
6748
|
-
export function computeDiffusionEmbedding(graph:
|
|
7264
|
+
export function computeDiffusionEmbedding(graph: Graph, options?: SpectralEmbeddingOptions | null): SpectralEmbeddingResult;
|
|
6749
7265
|
|
|
6750
7266
|
/**
|
|
6751
7267
|
* Computes effective edge resistances and Foster's theorem diagnostics via exact pseudoinverse
|
|
6752
7268
|
* (for small graphs) or Spielman-Srivastava JL projection solved with `AmgPcgSolver`.
|
|
6753
7269
|
*/
|
|
6754
|
-
export function computeEffectiveResistances(graph:
|
|
7270
|
+
export function computeEffectiveResistances(graph: Graph, options?: EffectiveResistanceOptions | null): EffectiveResistanceResult;
|
|
6755
7271
|
|
|
6756
7272
|
/**
|
|
6757
7273
|
* Computes the UMAP / GuMap fuzzy simplicial set probabilities from a `KnnGraph`.
|
|
6758
7274
|
*/
|
|
6759
|
-
export function computeFuzzySimplicialSet(knn: KnnGraph,
|
|
7275
|
+
export function computeFuzzySimplicialSet(knn: KnnGraph, sigmaItersOrOptions?: number | FuzzySimplicialSetOptions | null, sigmaTolerance?: number | null, fuzzyThreshold?: number | null): SparseProbabilities;
|
|
6760
7276
|
|
|
6761
7277
|
/**
|
|
6762
7278
|
* Computes parameter-free Horvitz-Thompson repulsion scaling $\gamma_{\mathrm{eff}}$.
|
|
@@ -6771,69 +7287,69 @@ export function computeKnnProbabilities(knn: KnnGraph, perplexities: Float64Arra
|
|
|
6771
7287
|
/**
|
|
6772
7288
|
* Computes scalar median 2-hop adaptive perplexity.
|
|
6773
7289
|
*/
|
|
6774
|
-
export function computeMedian2hopPerplexity(graph:
|
|
7290
|
+
export function computeMedian2hopPerplexity(graph: Graph, options?: PerplexityOptions | null): number;
|
|
6775
7291
|
|
|
6776
7292
|
/**
|
|
6777
7293
|
* Computes per-node 2-hop adaptive perplexities.
|
|
6778
7294
|
*/
|
|
6779
|
-
export function computeNodewise2hopPerplexities(graph:
|
|
7295
|
+
export function computeNodewise2hopPerplexities(graph: Graph, options?: PerplexityOptions | null): Float64Array;
|
|
6780
7296
|
|
|
6781
7297
|
/**
|
|
6782
7298
|
* Computes pure-Rust pivoted `RHGH` landmark tables via `AmgPcgSolver` + JL diagonal probes.
|
|
6783
7299
|
*/
|
|
6784
|
-
export function computePivotedRhghLandmarks(graph:
|
|
7300
|
+
export function computePivotedRhghLandmarks(graph: Graph, options?: RhghLandmarkOptions | null): RhghLandmarksResult;
|
|
6785
7301
|
|
|
6786
7302
|
/**
|
|
6787
7303
|
* Computes pure-Rust pivoted `RHGH` landmark distances as `{ landmarks: RhghLandmarks, result: RhghLandmarksResult }`.
|
|
6788
7304
|
*/
|
|
6789
|
-
export function computePivotedRhghLandmarksResult(graph:
|
|
7305
|
+
export function computePivotedRhghLandmarksResult(graph: Graph, options?: RhghLandmarkOptions | null): RhghLandmarks;
|
|
6790
7306
|
|
|
6791
7307
|
/**
|
|
6792
7308
|
* Computes regularized DoG Varadhan landmark tables and optional coarse heat scaffold.
|
|
6793
7309
|
*/
|
|
6794
|
-
export function computeRegularizedDogVaradhanLandmarks(graph:
|
|
7310
|
+
export function computeRegularizedDogVaradhanLandmarks(graph: Graph, options?: DogVaradhanOptions | null): DogVaradhanLandmarks;
|
|
6795
7311
|
|
|
6796
7312
|
/**
|
|
6797
7313
|
* Computes regularized DoG Varadhan landmark tables from a custom symmetric PSD `CsrMatrix`
|
|
6798
7314
|
* with dynamic `[0, lambdaMax]` spectrum scaling.
|
|
6799
7315
|
*/
|
|
6800
|
-
export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph:
|
|
7316
|
+
export function computeRegularizedDogVaradhanLandmarksFromMatrix(graph: Graph, matrix: CsrMatrix, options?: DogVaradhanOptions | null): DogVaradhanLandmarks;
|
|
6801
7317
|
|
|
6802
7318
|
/**
|
|
6803
|
-
* Computes effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
|
|
7319
|
+
* Computes an Onoue (2026) effective-resistance spectral embedding $D^{-1/2} U \Lambda^{-1/2}$.
|
|
6804
7320
|
*/
|
|
6805
|
-
export function computeResistanceEmbedding(graph:
|
|
7321
|
+
export function computeResistanceEmbedding(graph: Graph, options?: SpectralEmbeddingOptions | null): SpectralEmbeddingResult;
|
|
6806
7322
|
|
|
6807
7323
|
/**
|
|
6808
7324
|
* Returns all non-adjacent crossing edge pairs in `graph` under `layout`.
|
|
6809
7325
|
*/
|
|
6810
|
-
export function crossingEdges(graph:
|
|
7326
|
+
export function crossingEdges(graph: Graph, layout: Layout2d): CrossingPair[];
|
|
6811
7327
|
|
|
6812
7328
|
/**
|
|
6813
7329
|
* Finds all hyperbolic geodesic crossing pairs on `HyperbolicPoincare` or `HyperbolicLorentz`.
|
|
6814
7330
|
*/
|
|
6815
|
-
export function crossingEdgesHyperbolic(graph:
|
|
7331
|
+
export function crossingEdgesHyperbolic(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
|
|
6816
7332
|
|
|
6817
7333
|
/**
|
|
6818
7334
|
* Finds all shortest great-circle geodesic arc crossing pairs on `ManifoldKind::Spherical`.
|
|
6819
7335
|
*/
|
|
6820
|
-
export function crossingEdgesSpherical(graph:
|
|
7336
|
+
export function crossingEdgesSpherical(graph: Graph, layout: ManifoldLayout2d): CrossingPair[];
|
|
6821
7337
|
|
|
6822
7338
|
/**
|
|
6823
7339
|
* Computes both exact crossing count and crossing-angle statistics in a single sweep pass.
|
|
6824
7340
|
*/
|
|
6825
|
-
export function crossingSummary(graph:
|
|
7341
|
+
export function crossingSummary(graph: Graph, layout: Layout2d): CrossingSummary;
|
|
6826
7342
|
|
|
6827
7343
|
/**
|
|
6828
7344
|
* Computes exact DRGraph Eq. (17) crosslessness $1 - \sqrt{c / c_{\max}} \in [0.0, 1.0]$.
|
|
6829
7345
|
*/
|
|
6830
|
-
export function crosslessness(graph:
|
|
7346
|
+
export function crosslessness(graph: Graph, layout: Layout2d): number;
|
|
6831
7347
|
|
|
6832
7348
|
/**
|
|
6833
7349
|
* Identifies back-edges `(u, v)` whose reversal eliminates all directed cycles in `graph`,
|
|
6834
7350
|
* returned as a flat interleaved `[u0, v0, u1, v1, ...]` `Uint32Array`.
|
|
6835
7351
|
*/
|
|
6836
|
-
export function cycleEdges(graph:
|
|
7352
|
+
export function cycleEdges(graph: Graph): Uint32Array;
|
|
6837
7353
|
|
|
6838
7354
|
/**
|
|
6839
7355
|
* Returns static `DatasetInfo` records for all built-in benchmark datasets.
|
|
@@ -6851,9 +7367,9 @@ export function datasetInfo(name: string): DatasetInfo | undefined;
|
|
|
6851
7367
|
export function declutterTwins2d(layout: Layout2d, options?: TwinDeclutterOptions | null): number;
|
|
6852
7368
|
|
|
6853
7369
|
/**
|
|
6854
|
-
* Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `
|
|
7370
|
+
* Converts the 2D Delaunay triangulation of `layout` directly into an unweighted `Graph`.
|
|
6855
7371
|
*/
|
|
6856
|
-
export function delaunayToCsr(layout: Layout2d):
|
|
7372
|
+
export function delaunayToCsr(layout: Layout2d): Graph;
|
|
6857
7373
|
|
|
6858
7374
|
/**
|
|
6859
7375
|
* Computes the deterministic 2D Delaunay triangulation of `layout`.
|
|
@@ -6863,7 +7379,7 @@ export function delaunayTriangulation(layout: Layout2d): DelaunayResult;
|
|
|
6863
7379
|
/**
|
|
6864
7380
|
* Computes weighted single-source Dijkstra shortest-path distances from `source` (`Float64Array`).
|
|
6865
7381
|
*/
|
|
6866
|
-
export function dijkstraSingleSource(graph:
|
|
7382
|
+
export function dijkstraSingleSource(graph: Graph, source: number): Float64Array;
|
|
6867
7383
|
|
|
6868
7384
|
/**
|
|
6869
7385
|
* Computes the undirected angle in `[0.0, pi]` radians between 2D vectors `(x1, y1)` and `(x2, y2)`,
|
|
@@ -6874,43 +7390,48 @@ export function edgeAngle(x1: number, y1: number, x2: number, y2: number): numbe
|
|
|
6874
7390
|
/**
|
|
6875
7391
|
* Extracts canonical unweighted 1-hop and disjoint pure 2-hop CSR graphs.
|
|
6876
7392
|
*/
|
|
6877
|
-
export function extract1hop2hopCsr(graph:
|
|
7393
|
+
export function extract1hop2hopCsr(graph: Graph): TwoHopCsr;
|
|
6878
7394
|
|
|
6879
7395
|
/**
|
|
6880
|
-
*
|
|
7396
|
+
* Computes continuous degree-normalized 1-hop slack-tether weights aligned with `probs.indices()`.
|
|
6881
7397
|
*/
|
|
6882
|
-
export function
|
|
7398
|
+
export function extract1hopTetherWeights(graph: Graph, probs: SparseProbabilities, options?: TetherWeightsOptions | null): Float32Array;
|
|
7399
|
+
|
|
7400
|
+
/**
|
|
7401
|
+
* Extracts the Quadrilateral Simmelian Backbone from an undirected `Graph`.
|
|
7402
|
+
*/
|
|
7403
|
+
export function extractQuadrilateralBackbone(graph: Graph, options?: BackboneOptions | null): BackboneResult;
|
|
6883
7404
|
|
|
6884
7405
|
/**
|
|
6885
7406
|
* Extracts canonical undirected 1-hop and hub-safe capped 2-hop vertex pair arrays `Sparse12HopPairs`.
|
|
6886
7407
|
*/
|
|
6887
|
-
export function extractSparse1hop2hopPairs(graph:
|
|
7408
|
+
export function extractSparse1hop2hopPairs(graph: Graph, max2hopPerNode?: number | null, seed?: number | bigint | null): Sparse12HopPairs;
|
|
6888
7409
|
|
|
6889
7410
|
/**
|
|
6890
7411
|
* Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode` and optional `maxBridgeDegree`.
|
|
6891
7412
|
*/
|
|
6892
|
-
export function extractSparse1hop2hopPairsWithMode(graph:
|
|
7413
|
+
export function extractSparse1hop2hopPairsWithMode(graph: Graph, options?: TwoHopModeOptions | null): Sparse12HopPairs;
|
|
6893
7414
|
|
|
6894
7415
|
/**
|
|
6895
7416
|
* Fits low-dimensional UMAP parameters `[a, b]` from `minDist` and `spread`.
|
|
6896
7417
|
*/
|
|
6897
|
-
export function findAbParams(
|
|
7418
|
+
export function findAbParams(minDist?: number | null, spread?: number | null, options?: FindAbParamsOptions | null): Float64Array;
|
|
6898
7419
|
|
|
6899
7420
|
/**
|
|
6900
|
-
* Generates a regular hyperbolic branching tree `
|
|
7421
|
+
* Generates a regular hyperbolic branching tree `Graph` with `branchingFactor` and `depth`.
|
|
6901
7422
|
*/
|
|
6902
|
-
export function generateHyperbolicTree(branching_factor: number, depth: number):
|
|
7423
|
+
export function generateHyperbolicTree(branching_factor: number, depth: number): Graph;
|
|
6903
7424
|
|
|
6904
7425
|
/**
|
|
6905
7426
|
* Generates hierarchical separation constraints `y[u] + gap <= y[v]` for directed edges
|
|
6906
7427
|
* `(u, v)` spanning `layers[u] < layers[v]`.
|
|
6907
7428
|
*/
|
|
6908
|
-
export function generateLayeredConstraints(graph:
|
|
7429
|
+
export function generateLayeredConstraints(graph: Graph, layers: Uint32Array | number[], minLayerDistance?: number | null): SeparationConstraint[];
|
|
6909
7430
|
|
|
6910
7431
|
/**
|
|
6911
|
-
* Generates a deterministic layered Directed Acyclic Graph (`
|
|
7432
|
+
* Generates a deterministic layered Directed Acyclic Graph (`Graph`).
|
|
6912
7433
|
*/
|
|
6913
|
-
export function generateLayeredDag(numLayers: number, nodesPerLayer: number, options?: GenerateLayeredDagOptions | null):
|
|
7434
|
+
export function generateLayeredDag(numLayers: number, nodesPerLayer: number, options?: GenerateLayeredDagOptions | null): Graph;
|
|
6914
7435
|
|
|
6915
7436
|
/**
|
|
6916
7437
|
* Generates a deterministic Stochastic Block Model graph returning `{ graph, labels }`.
|
|
@@ -6918,60 +7439,60 @@ export function generateLayeredDag(numLayers: number, nodesPerLayer: number, opt
|
|
|
6918
7439
|
export function generateSbmGraph(blockSizes: Uint32Array | number[], options?: GenerateSbmGraphOptions | null): SbmGraphResult;
|
|
6919
7440
|
|
|
6920
7441
|
/**
|
|
6921
|
-
* Generates a closed UV spherical grid mesh `
|
|
7442
|
+
* Generates a closed UV spherical grid mesh `Graph` with poles and `latitudes x longitudes` rings.
|
|
6922
7443
|
*/
|
|
6923
|
-
export function generateSphericalGrid(latitudes: number, longitudes: number):
|
|
7444
|
+
export function generateSphericalGrid(latitudes: number, longitudes: number): Graph;
|
|
6924
7445
|
|
|
6925
7446
|
/**
|
|
6926
|
-
* Generates a subdivided icosphere spherical geodesic mesh `
|
|
7447
|
+
* Generates a subdivided icosphere spherical geodesic mesh `Graph`.
|
|
6927
7448
|
*/
|
|
6928
|
-
export function generateSphericalIcosphere(subdivisions?: number | null):
|
|
7449
|
+
export function generateSphericalIcosphere(subdivisions?: number | null): Graph;
|
|
6929
7450
|
|
|
6930
7451
|
/**
|
|
6931
|
-
* Generates a periodic 2D torus mesh `
|
|
7452
|
+
* Generates a periodic 2D torus mesh `Graph` of size `rows x cols` (`>= 3x3`).
|
|
6932
7453
|
*/
|
|
6933
|
-
export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null):
|
|
7454
|
+
export function generateTorusGrid(rows: number, cols: number, triangulated?: boolean | null): Graph;
|
|
6934
7455
|
|
|
6935
7456
|
/**
|
|
6936
|
-
* Generates a deterministic undirected weighted `
|
|
7457
|
+
* Generates a deterministic undirected weighted `Graph` with edge weights in `[minWeight, maxWeight]`.
|
|
6937
7458
|
*/
|
|
6938
|
-
export function generateWeightedGraph(numNodes: number, options?: GenerateWeightedGraphOptions | null):
|
|
7459
|
+
export function generateWeightedGraph(numNodes: number, options?: GenerateWeightedGraphOptions | null): Graph;
|
|
6939
7460
|
|
|
6940
7461
|
/**
|
|
6941
7462
|
* Computes Miller et al. (2024) Eq. (2) Geodesic Distortion without post-hoc rescaling
|
|
6942
7463
|
* on a `ManifoldLayout2d`.
|
|
6943
7464
|
*/
|
|
6944
|
-
export function geodesicDistortion(graph:
|
|
7465
|
+
export function geodesicDistortion(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6945
7466
|
|
|
6946
7467
|
/**
|
|
6947
7468
|
* Computes row-normalized symmetrized 1+2-hop probabilities with optional capping and `(d_i d_j)^(-degreeBeta)` decay.
|
|
6948
7469
|
*/
|
|
6949
|
-
export function graph12hopRowNormalizedProbabilities(graph:
|
|
7470
|
+
export function graph12hopRowNormalizedProbabilities(graph: Graph, options?: TsNetRowNormalizedOptions | null): SparseProbabilities;
|
|
6950
7471
|
|
|
6951
7472
|
/**
|
|
6952
7473
|
* Computes row-normalized symmetrized 1+2-hop probabilities with explicit `TwoHopSamplingMode` and `maxBridgeDegree`.
|
|
6953
7474
|
*/
|
|
6954
|
-
export function graph12hopRowNormalizedProbabilitiesWithOptions(graph:
|
|
7475
|
+
export function graph12hopRowNormalizedProbabilitiesWithOptions(graph: Graph, options?: TsNetRowNormalizedOptions | null): SparseProbabilities;
|
|
6955
7476
|
|
|
6956
7477
|
/**
|
|
6957
|
-
* Computes row-normalized symmetrized graph probabilities from a `
|
|
7478
|
+
* Computes row-normalized symmetrized graph probabilities from a `Graph`.
|
|
6958
7479
|
*/
|
|
6959
|
-
export function graphRowNormalizedProbabilities(graph:
|
|
7480
|
+
export function graphRowNormalizedProbabilities(graph: Graph): SparseProbabilities;
|
|
6960
7481
|
|
|
6961
7482
|
/**
|
|
6962
7483
|
* Computes a 2D Harel-Koren High-Dimensional Embedding (`HDE`) `Layout2d` (`f32`).
|
|
6963
7484
|
*/
|
|
6964
|
-
export function hde(graph:
|
|
7485
|
+
export function hde(graph: Graph, options?: HdeOptions | null): Layout2d;
|
|
6965
7486
|
|
|
6966
7487
|
/**
|
|
6967
7488
|
* Computes an $N$-dimensional Harel-Koren High-Dimensional Embedding (`HDE`) `LayoutNd` (`f32`).
|
|
6968
7489
|
*/
|
|
6969
|
-
export function hdeNd(graph:
|
|
7490
|
+
export function hdeNd(graph: Graph, options?: HdeNdOptions | null): LayoutNd;
|
|
6970
7491
|
|
|
6971
7492
|
/**
|
|
6972
7493
|
* Counts exact hyperbolic geodesic crossings on `HyperbolicPoincare` or `HyperbolicLorentz`.
|
|
6973
7494
|
*/
|
|
6974
|
-
export function hyperbolicCrossingNumber(graph:
|
|
7495
|
+
export function hyperbolicCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6975
7496
|
|
|
6976
7497
|
/**
|
|
6977
7498
|
* Clusters flat row-major `(numNodes, dims)` points with deterministic K-Means++.
|
|
@@ -6981,22 +7502,22 @@ export function kmeansPlusPlus(points: Float64Array | number[], numNodes: number
|
|
|
6981
7502
|
/**
|
|
6982
7503
|
* Computes Koren's degree-normalized 2D spectral initialization `Layout2d` (`f32`).
|
|
6983
7504
|
*/
|
|
6984
|
-
export function korenSpectralInit(graph:
|
|
7505
|
+
export function korenSpectralInit(graph: Graph, options?: KorenSpectralGeneratorOptions | null): Layout2d;
|
|
6985
7506
|
|
|
6986
7507
|
/**
|
|
6987
|
-
* Detects communities on an undirected `
|
|
7508
|
+
* Detects communities on an undirected `Graph` via asynchronous Label Propagation.
|
|
6988
7509
|
*/
|
|
6989
|
-
export function labelPropagation(graph:
|
|
7510
|
+
export function labelPropagation(graph: Graph, maxIterations?: number | null, seed?: number | bigint | null): LabelPropagationResult;
|
|
6990
7511
|
|
|
6991
7512
|
/**
|
|
6992
7513
|
* Builds a `CsrMatrix` graph Laplacian of the requested `kind` (default `LaplacianKind.SymmetricNormalized`).
|
|
6993
7514
|
*/
|
|
6994
|
-
export function laplacian(graph:
|
|
7515
|
+
export function laplacian(graph: Graph, kindOrOptions?: LaplacianKind | { kind?: LaplacianKind | null } | null): CsrMatrix;
|
|
6995
7516
|
|
|
6996
7517
|
/**
|
|
6997
|
-
* Detects communities on an undirected `
|
|
7518
|
+
* Detects communities on an undirected `Graph` via the Leiden algorithm (`Modularity` or `CPM`).
|
|
6998
7519
|
*/
|
|
6999
|
-
export function leidenCommunities(graph:
|
|
7520
|
+
export function leidenCommunities(graph: Graph, options?: LeidenOptions | null): LeidenResult;
|
|
7000
7521
|
|
|
7001
7522
|
/**
|
|
7002
7523
|
* Returns the canonical names of all built-in benchmark datasets (`string[]`).
|
|
@@ -7031,27 +7552,27 @@ export function lorentzToPoincarePoint(x: number, y: number): Float64Array;
|
|
|
7031
7552
|
/**
|
|
7032
7553
|
* Runs multi-level Louvain coarsening with resolution decay up to `maxCoarseNodes`.
|
|
7033
7554
|
*/
|
|
7034
|
-
export function louvainCoarsen(graph:
|
|
7555
|
+
export function louvainCoarsen(graph: Graph, options?: CoarseLouvainOptions | null): CoarsenedHierarchyResult;
|
|
7035
7556
|
|
|
7036
7557
|
/**
|
|
7037
|
-
* Detects communities on an undirected `
|
|
7558
|
+
* Detects communities on an undirected `Graph` via multi-level Louvain modularity optimization.
|
|
7038
7559
|
*/
|
|
7039
|
-
export function louvainCommunities(graph:
|
|
7560
|
+
export function louvainCommunities(graph: Graph, options?: LouvainOptions | null): LouvainResult;
|
|
7040
7561
|
|
|
7041
7562
|
/**
|
|
7042
7563
|
* Computes DRGraph Eq. (19) strict minimum-angle resolution (`A2`) in `[0.0, 1.0]`.
|
|
7043
7564
|
*/
|
|
7044
|
-
export function minimumAngle(graph:
|
|
7565
|
+
export function minimumAngle(graph: Graph, layout: Layout2d): number;
|
|
7045
7566
|
|
|
7046
7567
|
/**
|
|
7047
7568
|
* Computes DRGraph Eq. (19) minimum-angle resolution summary (`a1` and `a2`).
|
|
7048
7569
|
*/
|
|
7049
|
-
export function minimumAngleSummary(graph:
|
|
7570
|
+
export function minimumAngleSummary(graph: Graph, layout: Layout2d): MinimumAngleSummary;
|
|
7050
7571
|
|
|
7051
7572
|
/**
|
|
7052
7573
|
* Computes all 5 Chen et al. (2020) NOR metrics including graph edge-length distortion (`elRsd`).
|
|
7053
7574
|
*/
|
|
7054
|
-
export function norMetrics(graph:
|
|
7575
|
+
export function norMetrics(graph: Graph, origLayout: Layout2d, adjustedLayout: Layout2d, halfWidths: Float32Array | number[], halfHeights: Float32Array | number[]): NorMetricsResult;
|
|
7055
7576
|
|
|
7056
7577
|
/**
|
|
7057
7578
|
* Computes Chen et al. (2020) NOR metrics without a graph (`elRsd = 0.0`).
|
|
@@ -7064,14 +7585,14 @@ export function norMetricsWithoutGraph(origLayout: Layout2d, adjustedLayout: Lay
|
|
|
7064
7585
|
export function normalizeLayout2d(layout: Layout2d, targetStd?: number | null, seed?: number | bigint | null): void;
|
|
7065
7586
|
|
|
7066
7587
|
/**
|
|
7067
|
-
* Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `
|
|
7588
|
+
* Parses an edge-list CSV string (`num_nodes,num_edges` header + `u,v` or weighted `u,v,w` rows) into a `Graph`.
|
|
7068
7589
|
*/
|
|
7069
|
-
export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null):
|
|
7590
|
+
export function parseCsrCsv(csv: string, directed?: boolean | null, sanitize?: boolean | null): Graph;
|
|
7070
7591
|
|
|
7071
7592
|
/**
|
|
7072
7593
|
* Computes a $k$-NN graph via Partial BFS with deterministic Fisher-Yates tie-breaking.
|
|
7073
7594
|
*/
|
|
7074
|
-
export function partialBfsKnn(graph:
|
|
7595
|
+
export function partialBfsKnn(graph: Graph, k?: number | null, seed?: number | bigint | null): KnnGraph;
|
|
7075
7596
|
|
|
7076
7597
|
/**
|
|
7077
7598
|
* Computes `ARI`, `AMI`, `homogeneity`, `completeness`, `vMeasure`, and `fmi` between two labelings.
|
|
@@ -7081,7 +7602,7 @@ export function partitionAgreement(labelsTrue: Uint32Array | number[], labelsPre
|
|
|
7081
7602
|
/**
|
|
7082
7603
|
* Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
|
|
7083
7604
|
*/
|
|
7084
|
-
export function pivotMds(graph:
|
|
7605
|
+
export function pivotMds(graph: Graph, options?: PivotMdsGeneratorOptions | null): Layout2d;
|
|
7085
7606
|
|
|
7086
7607
|
/**
|
|
7087
7608
|
* Computes a 2D `Layout2d` (`f32`) via PivotMDS from a flat `(numNodes, numPivots)` distance matrix.
|
|
@@ -7091,12 +7612,12 @@ export function pivotMdsFromDistances(distancesNk: Float64Array | number[], numN
|
|
|
7091
7612
|
/**
|
|
7092
7613
|
* Computes a 2D `Layout2d` (`f32`) via Core-First MaxMin PivotMDS.
|
|
7093
7614
|
*/
|
|
7094
|
-
export function pivotMdsInit(graph:
|
|
7615
|
+
export function pivotMdsInit(graph: Graph, options?: PivotMdsGeneratorOptions | null): Layout2d;
|
|
7095
7616
|
|
|
7096
7617
|
/**
|
|
7097
7618
|
* Computes a 2D `Layout2d` (`f32`) via PivotMDS from an explicit slice of `pivots`.
|
|
7098
7619
|
*/
|
|
7099
|
-
export function pivotMdsWithPivots(graph:
|
|
7620
|
+
export function pivotMdsWithPivots(graph: Graph, pivots: Uint32Array | number[], options?: { targetStd?: number | null; seed?: number | bigint | null } | null): Layout2d;
|
|
7100
7621
|
|
|
7101
7622
|
/**
|
|
7102
7623
|
* Computes the Poincaré disk hyperbolic geodesic distance between `(x1, y1)` and `(x2, y2)`.
|
|
@@ -7127,7 +7648,7 @@ export function prismDistortionWithEdges(original_layout: Layout2d, adjusted_lay
|
|
|
7127
7648
|
/**
|
|
7128
7649
|
* Projects `coords` (`Float32Array`) in place onto the feasible region defined by `constraints`.
|
|
7129
7650
|
*/
|
|
7130
|
-
export function project1d(coords: Float32Array, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[]): void;
|
|
7651
|
+
export function project1d(coords: Float32Array, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[], options?: ConstraintProjectorOptions | null): void;
|
|
7131
7652
|
|
|
7132
7653
|
/**
|
|
7133
7654
|
* Projects a coarse 2D `Layout2d` (`f32`) back onto fine vertices via `nodeToCoarse`.
|
|
@@ -7152,7 +7673,7 @@ export function projectClusteredRectangleNoOverlap2d(layout: Layout2d, labels: U
|
|
|
7152
7673
|
/**
|
|
7153
7674
|
* Projects axis `axis` (`0` / `"x"` or `1` / `"y"`) of `layout` in place onto `constraints`.
|
|
7154
7675
|
*/
|
|
7155
|
-
export function projectLayoutAxis(layout: Layout2d, axis: LayoutAxis, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[]): void;
|
|
7676
|
+
export function projectLayoutAxis(layout: Layout2d, axis: LayoutAxis, constraints: readonly (SeparationConstraint | SeparationConstraintLike)[], options?: ConstraintProjectorOptions | null): void;
|
|
7156
7677
|
|
|
7157
7678
|
/**
|
|
7158
7679
|
* Projects spectral filter `terms` onto the PSD cone, returning `{ termsPsd, deltaPsd, hMin }`.
|
|
@@ -7168,12 +7689,12 @@ export function projectRectangleNoOverlap2d(layout: Layout2d, halfWidths: Float3
|
|
|
7168
7689
|
/**
|
|
7169
7690
|
* Builds the random-walk normalized graph Laplacian $L_{\mathrm{rw}} = D^{-1}(D - A)$ as a `CsrMatrix`.
|
|
7170
7691
|
*/
|
|
7171
|
-
export function randomWalkLaplacian(graph:
|
|
7692
|
+
export function randomWalkLaplacian(graph: Graph): CsrMatrix;
|
|
7172
7693
|
|
|
7173
7694
|
/**
|
|
7174
|
-
* Computes a `LayoutNd` (`f32`) zero-guarded
|
|
7695
|
+
* Computes a `LayoutNd` (`f32`) zero-guarded Resistance-Distance MDS spectral embedding (`RdMds`, Onoue 2026).
|
|
7175
7696
|
*/
|
|
7176
|
-
export function rdMds(graph:
|
|
7697
|
+
export function rdMds(graph: Graph, options?: RdMdsGeneratorOptions | null): LayoutNd;
|
|
7177
7698
|
|
|
7178
7699
|
/**
|
|
7179
7700
|
* Finds all overlapping rectangle pairs `[i0, j0, i1, j1, ...]` (`i < j`) for `layout`
|
|
@@ -7187,9 +7708,9 @@ export function rectangleOverlaps(layout: Layout2d, half_widths: Float32Array |
|
|
|
7187
7708
|
export function refineClusterLayout(layout: Layout2d, labels: Uint32Array | number[], options?: ClusterRefineOptions | null): number;
|
|
7188
7709
|
|
|
7189
7710
|
/**
|
|
7190
|
-
* Constructs a directed acyclic `
|
|
7711
|
+
* Constructs a directed acyclic `Graph` by reversing cycle-closing back-edges.
|
|
7191
7712
|
*/
|
|
7192
|
-
export function removeCycles(graph:
|
|
7713
|
+
export function removeCycles(graph: Graph): Graph;
|
|
7193
7714
|
|
|
7194
7715
|
/**
|
|
7195
7716
|
* Computes a `dims`-dimensional Representative / Landmark MDS `LayoutNd` (`f32`) from a flat
|
|
@@ -7200,7 +7721,7 @@ export function representativeMds(distances_to_reps: Float64Array | number[], nu
|
|
|
7200
7721
|
/**
|
|
7201
7722
|
* Runs Devriendt-Lambiotte resistance curvature flow on `graph` and classifies target geometry.
|
|
7202
7723
|
*/
|
|
7203
|
-
export function resistanceCurvatureFlow(graph:
|
|
7724
|
+
export function resistanceCurvatureFlow(graph: Graph, options?: ResistanceCurvatureFlowOptions | null): ResistanceCurvatureFlowResult;
|
|
7204
7725
|
|
|
7205
7726
|
/**
|
|
7206
7727
|
* Median-centers and Gaussian-calibrated radial quantile-scales `layout` in place so core spread matches `targetStd` (default `1.0`).
|
|
@@ -7210,18 +7731,18 @@ export function robustNormalizeLayout2d(layout: Layout2d, options?: { targetStd?
|
|
|
7210
7731
|
/**
|
|
7211
7732
|
* Estimates edge crossings in $O(\text{numSamples})$ time (`options?: { numSamples?, seed? }`).
|
|
7212
7733
|
*/
|
|
7213
|
-
export function sampledCrossingNumber(graph:
|
|
7734
|
+
export function sampledCrossingNumber(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
|
|
7214
7735
|
|
|
7215
7736
|
/**
|
|
7216
7737
|
* Estimates DRGraph Eq. (17) crosslessness $1 - \sqrt{\hat{c} / c_{\max}} \in [0.0, 1.0]$
|
|
7217
7738
|
* (`options?: { numSamples?, seed? }`).
|
|
7218
7739
|
*/
|
|
7219
|
-
export function sampledCrosslessness(graph:
|
|
7740
|
+
export function sampledCrosslessness(graph: Graph, layout: Layout2d, options?: SamplingSeedOptions | null): number;
|
|
7220
7741
|
|
|
7221
7742
|
/**
|
|
7222
7743
|
* Selects well-spaced shortest-path pivots via Core-First MaxMin BFS.
|
|
7223
7744
|
*/
|
|
7224
|
-
export function selectMaxminSpPivots(graph:
|
|
7745
|
+
export function selectMaxminSpPivots(graph: Graph, options?: PivotMdsGeneratorOptions | null): Uint32Array;
|
|
7225
7746
|
|
|
7226
7747
|
/**
|
|
7227
7748
|
* Installs `console_error_panic_hook` once so any Rust panic reports a readable stack trace
|
|
@@ -7237,22 +7758,28 @@ export function shiftedNormalizedLaplacian(l_sym: CsrMatrix, lambda_max?: number
|
|
|
7237
7758
|
/**
|
|
7238
7759
|
* Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$.
|
|
7239
7760
|
*/
|
|
7240
|
-
export function smallestLaplacianEigenpairs(graph:
|
|
7761
|
+
export function smallestLaplacianEigenpairs(graph: Graph, options?: SpectralEigenOptions | null): EigenResult;
|
|
7762
|
+
|
|
7763
|
+
/**
|
|
7764
|
+
* Computes the smallest `nModes` nontrivial eigenpairs of $L_{\mathrm{sym}}$ using
|
|
7765
|
+
* AMG-PCG-preconditioned block Generalized Davidson with explicit $v_0 = D^{1/2}\mathbf{1}$ deflation.
|
|
7766
|
+
*/
|
|
7767
|
+
export function smallestSymLaplacianEigenpairsAmg(graph: Graph, options?: AmgDavidsonEigenOptions | null): EigenResult;
|
|
7241
7768
|
|
|
7242
7769
|
/**
|
|
7243
|
-
* Performs Ng-Jordan-Weiss spectral clustering on an undirected `
|
|
7770
|
+
* Performs Ng-Jordan-Weiss spectral clustering on an undirected `Graph`.
|
|
7244
7771
|
*/
|
|
7245
|
-
export function spectralClustering(graph:
|
|
7772
|
+
export function spectralClustering(graph: Graph, options?: SpectralClusteringOptions | null): SpectralClusteringResult;
|
|
7246
7773
|
|
|
7247
7774
|
/**
|
|
7248
7775
|
* Computes exact $O(|E|)$ spectral variance and degree summary statistics of $L_{\mathrm{sym}}$.
|
|
7249
7776
|
*/
|
|
7250
|
-
export function spectralMomentStats(graph:
|
|
7777
|
+
export function spectralMomentStats(graph: Graph): SpectralMomentStats;
|
|
7251
7778
|
|
|
7252
7779
|
/**
|
|
7253
7780
|
* Counts exact great-circle geodesic arc crossings on `ManifoldKind::Spherical`.
|
|
7254
7781
|
*/
|
|
7255
|
-
export function sphericalCrossingNumber(graph:
|
|
7782
|
+
export function sphericalCrossingNumber(graph: Graph, layout: ManifoldLayout2d): number;
|
|
7256
7783
|
|
|
7257
7784
|
/**
|
|
7258
7785
|
* Computes the great-circle geodesic distance on the unit sphere in `[0, pi]`.
|
|
@@ -7277,12 +7804,12 @@ export function squarifiedTreemap(weights: Float64Array | Float32Array | number[
|
|
|
7277
7804
|
/**
|
|
7278
7805
|
* Computes the exact sweep-line crossing-angle penalty $\sum \cos^2(\theta)$.
|
|
7279
7806
|
*/
|
|
7280
|
-
export function sweepCrossingAngle(graph:
|
|
7807
|
+
export function sweepCrossingAngle(graph: Graph, layout: Layout2d): number;
|
|
7281
7808
|
|
|
7282
7809
|
/**
|
|
7283
7810
|
* Counts the exact number of non-adjacent edge crossings via $O((|E|+K)\log|E|)$ sweep-line.
|
|
7284
7811
|
*/
|
|
7285
|
-
export function sweepCrossingNumber(graph:
|
|
7812
|
+
export function sweepCrossingNumber(graph: Graph, layout: Layout2d): number;
|
|
7286
7813
|
|
|
7287
7814
|
/**
|
|
7288
7815
|
* Computes ascending symmetric eigenpairs `(lambdas, vectors)` of an `n x n` row-major matrix
|
|
@@ -7294,7 +7821,7 @@ export function symmetricEigenJacobi(aRowMajor: Float64Array | number[], n: numb
|
|
|
7294
7821
|
* Builds the symmetric normalized Laplacian $L_{\mathrm{sym}} = I - D^{-1/2} A D^{-1/2}$
|
|
7295
7822
|
* and inverse square-root degrees `{ matrix, invSqrtDeg }`.
|
|
7296
7823
|
*/
|
|
7297
|
-
export function symmetricNormalizedLaplacian(graph:
|
|
7824
|
+
export function symmetricNormalizedLaplacian(graph: Graph): SymmetricNormalizedLaplacianResult;
|
|
7298
7825
|
|
|
7299
7826
|
/**
|
|
7300
7827
|
* Computes row-normalized symmetrized joint probabilities from arbitrary CSR directed affinities.
|
|
@@ -7314,12 +7841,12 @@ export function torusEdgeSegments(x1: number, y1: number, x2: number, y2: number
|
|
|
7314
7841
|
/**
|
|
7315
7842
|
* Initializes a flat 2D torus `ManifoldLayout2d` via 4-mode spectral phase coordinates of $L_{\mathrm{sym}}$.
|
|
7316
7843
|
*/
|
|
7317
|
-
export function torusSpectralPhaseInit(graph:
|
|
7844
|
+
export function torusSpectralPhaseInit(graph: Graph, seed?: number | bigint | null): ManifoldLayout2d;
|
|
7318
7845
|
|
|
7319
7846
|
/**
|
|
7320
|
-
* Computes the exact transitive reduction of a directed acyclic `
|
|
7847
|
+
* Computes the exact transitive reduction of a directed acyclic `Graph`.
|
|
7321
7848
|
*/
|
|
7322
|
-
export function transitiveReduction(graph:
|
|
7849
|
+
export function transitiveReduction(graph: Graph): Graph;
|
|
7323
7850
|
|
|
7324
7851
|
/**
|
|
7325
7852
|
* Returns the active WebAssembly linear `WebAssembly.Memory` instance.
|
|
@@ -7359,7 +7886,6 @@ export interface InitOutput {
|
|
|
7359
7886
|
readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
|
|
7360
7887
|
readonly __wbg_crossingpair_free: (a: number, b: number) => void;
|
|
7361
7888
|
readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
|
|
7362
|
-
readonly __wbg_csrgraph_free: (a: number, b: number) => void;
|
|
7363
7889
|
readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
|
|
7364
7890
|
readonly __wbg_datasetinfo_free: (a: number, b: number) => void;
|
|
7365
7891
|
readonly __wbg_delaunayresult_free: (a: number, b: number) => void;
|
|
@@ -7372,11 +7898,13 @@ export interface InitOutput {
|
|
|
7372
7898
|
readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
|
|
7373
7899
|
readonly __wbg_eigenresult_free: (a: number, b: number) => void;
|
|
7374
7900
|
readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
|
|
7901
|
+
readonly __wbg_fieldrepulsionkernel_free: (a: number, b: number) => void;
|
|
7375
7902
|
readonly __wbg_fitfieldstats_free: (a: number, b: number) => void;
|
|
7376
7903
|
readonly __wbg_forbidoverlapremoval_free: (a: number, b: number) => void;
|
|
7377
7904
|
readonly __wbg_forceatlas2solver_free: (a: number, b: number) => void;
|
|
7378
7905
|
readonly __wbg_fruchtermanreingoldsolver_free: (a: number, b: number) => void;
|
|
7379
7906
|
readonly __wbg_gemsolver_free: (a: number, b: number) => void;
|
|
7907
|
+
readonly __wbg_graph_free: (a: number, b: number) => void;
|
|
7380
7908
|
readonly __wbg_graphcnesolver_free: (a: number, b: number) => void;
|
|
7381
7909
|
readonly __wbg_gripsolver_free: (a: number, b: number) => void;
|
|
7382
7910
|
readonly __wbg_groupinaboxsolver_free: (a: number, b: number) => void;
|
|
@@ -7384,6 +7912,7 @@ export interface InitOutput {
|
|
|
7384
7912
|
readonly __wbg_gumapsolver_free: (a: number, b: number) => void;
|
|
7385
7913
|
readonly __wbg_hde_free: (a: number, b: number) => void;
|
|
7386
7914
|
readonly __wbg_hybridknnresult_free: (a: number, b: number) => void;
|
|
7915
|
+
readonly __wbg_ibumaphubdamping_free: (a: number, b: number) => void;
|
|
7387
7916
|
readonly __wbg_ibumapsolver_free: (a: number, b: number) => void;
|
|
7388
7917
|
readonly __wbg_kamadakawaisolver_free: (a: number, b: number) => void;
|
|
7389
7918
|
readonly __wbg_kmeansresult_free: (a: number, b: number) => void;
|
|
@@ -7401,6 +7930,7 @@ export interface InitOutput {
|
|
|
7401
7930
|
readonly __wbg_louvainresult_free: (a: number, b: number) => void;
|
|
7402
7931
|
readonly __wbg_manifoldlayout2d_free: (a: number, b: number) => void;
|
|
7403
7932
|
readonly __wbg_maxentstresssolver_free: (a: number, b: number) => void;
|
|
7933
|
+
readonly __wbg_metricanchorweighting_free: (a: number, b: number) => void;
|
|
7404
7934
|
readonly __wbg_metricreport_free: (a: number, b: number) => void;
|
|
7405
7935
|
readonly __wbg_minimumanglesummary_free: (a: number, b: number) => void;
|
|
7406
7936
|
readonly __wbg_normetricsresult_free: (a: number, b: number) => void;
|
|
@@ -7409,6 +7939,8 @@ export interface InitOutput {
|
|
|
7409
7939
|
readonly __wbg_partitionagreementresult_free: (a: number, b: number) => void;
|
|
7410
7940
|
readonly __wbg_pfsprimeoverlapremoval_free: (a: number, b: number) => void;
|
|
7411
7941
|
readonly __wbg_pivotmds_free: (a: number, b: number) => void;
|
|
7942
|
+
readonly __wbg_pivotmdsreport_free: (a: number, b: number) => void;
|
|
7943
|
+
readonly __wbg_pivotmdsreportresult_free: (a: number, b: number) => void;
|
|
7412
7944
|
readonly __wbg_prismdistortion_free: (a: number, b: number) => void;
|
|
7413
7945
|
readonly __wbg_prismoverlapremoval_free: (a: number, b: number) => void;
|
|
7414
7946
|
readonly __wbg_rdmds_free: (a: number, b: number) => void;
|
|
@@ -7444,6 +7976,7 @@ export interface InitOutput {
|
|
|
7444
7976
|
readonly __wbg_twindeclutterer_free: (a: number, b: number) => void;
|
|
7445
7977
|
readonly __wbg_twohopcsr_free: (a: number, b: number) => void;
|
|
7446
7978
|
readonly __wbg_twohopknnresult_free: (a: number, b: number) => void;
|
|
7979
|
+
readonly __wbg_unifiedmetricanchor_free: (a: number, b: number) => void;
|
|
7447
7980
|
readonly __wbg_yifanhusolver_free: (a: number, b: number) => void;
|
|
7448
7981
|
readonly _calinskiHarabaszScore2d: (a: number, b: number, c: any) => void;
|
|
7449
7982
|
readonly _calinskiHarabaszScore3d: (a: number, b: number, c: any) => void;
|
|
@@ -7660,13 +8193,21 @@ export interface InitOutput {
|
|
|
7660
8193
|
readonly arenaoctree3d_buildWeightedNd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
7661
8194
|
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
8195
|
readonly arenaoctree3d_clear: (a: number) => void;
|
|
8196
|
+
readonly arenaoctree3d_coincidentDistSq: (a: number) => number;
|
|
7663
8197
|
readonly arenaoctree3d_computeCoulombRepulsion: (a: number, b: number, c: number, d: number) => void;
|
|
7664
8198
|
readonly arenaoctree3d_computeEntropyRepulsion: (a: number, b: number, c: number, d: number) => void;
|
|
7665
8199
|
readonly arenaoctree3d_computeKlRepulsion: (a: number, b: number, c: number) => void;
|
|
7666
8200
|
readonly arenaoctree3d_computeMaxentRepulsion: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
7667
|
-
readonly
|
|
8201
|
+
readonly arenaoctree3d_entropyMinDist: (a: number) => number;
|
|
8202
|
+
readonly arenaoctree3d_maxDepth: (a: number) => number;
|
|
8203
|
+
readonly arenaoctree3d_new: (a: number, b: any) => void;
|
|
7668
8204
|
readonly arenaoctree3d_nodeCount: (a: number) => number;
|
|
7669
8205
|
readonly arenaoctree3d_pointCount: (a: number) => number;
|
|
8206
|
+
readonly arenaoctree3d_setCoincidentDistSq: (a: number, b: number, c: number) => void;
|
|
8207
|
+
readonly arenaoctree3d_setEntropyMinDist: (a: number, b: number, c: number) => void;
|
|
8208
|
+
readonly arenaoctree3d_setMaxDepth: (a: number, b: number, c: number) => void;
|
|
8209
|
+
readonly arenaoctree3d_setTraversalStackCap: (a: number, b: number, c: number) => void;
|
|
8210
|
+
readonly arenaoctree3d_traversalStackCap: (a: number) => number;
|
|
7670
8211
|
readonly aspectRatio: (a: number, b: number) => void;
|
|
7671
8212
|
readonly assignLayers: (a: number, b: number, c: any) => void;
|
|
7672
8213
|
readonly backboneresult_backboneCsr: (a: number) => number;
|
|
@@ -7803,7 +8344,7 @@ export interface InitOutput {
|
|
|
7803
8344
|
readonly computeChebyshevBandpassCoefficients: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
|
|
7804
8345
|
readonly computeDiffusionEmbedding: (a: number, b: number, c: any) => void;
|
|
7805
8346
|
readonly computeEffectiveResistances: (a: number, b: number, c: any) => void;
|
|
7806
|
-
readonly computeFuzzySimplicialSet: (a: number, b: number, c:
|
|
8347
|
+
readonly computeFuzzySimplicialSet: (a: number, b: number, c: any, d: number, e: number, f: number, g: number) => void;
|
|
7807
8348
|
readonly computeHorvitzThompsonGamma: (a: number, b: number, c: number, d: number) => void;
|
|
7808
8349
|
readonly computeKnnProbabilities: (a: number, b: number, c: number, d: number, e: any) => void;
|
|
7809
8350
|
readonly computeMedian2hopPerplexity: (a: number, b: number, c: any) => void;
|
|
@@ -7830,28 +8371,6 @@ export interface InitOutput {
|
|
|
7830
8371
|
readonly crossingsummary_count: (a: number) => number;
|
|
7831
8372
|
readonly crossingsummary_minAngleRad: (a: number, b: number) => void;
|
|
7832
8373
|
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
8374
|
readonly csrmatrix_diagonal: (a: number, b: number) => void;
|
|
7856
8375
|
readonly csrmatrix_estimateLambdaMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
|
|
7857
8376
|
readonly csrmatrix_estimateLambdaMaxLanczos: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
|
|
@@ -7937,16 +8456,18 @@ export interface InitOutput {
|
|
|
7937
8456
|
readonly drgraphsolver_target: (a: number) => number;
|
|
7938
8457
|
readonly drgraphsolver_totalIterations: (a: number) => number;
|
|
7939
8458
|
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;
|
|
8459
|
+
readonly dynamickdtree_fromFlat: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
8460
|
+
readonly dynamickdtree_fromLayoutNd: (a: number, b: number, c: any) => void;
|
|
7942
8461
|
readonly dynamickdtree_isEmpty: (a: number) => number;
|
|
7943
8462
|
readonly dynamickdtree_kNearest: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
7944
8463
|
readonly dynamickdtree_kNearestExcludingSelf: (a: number, b: number, c: number, d: number) => void;
|
|
8464
|
+
readonly dynamickdtree_leafSize: (a: number) => number;
|
|
7945
8465
|
readonly dynamickdtree_len: (a: number) => number;
|
|
7946
8466
|
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;
|
|
8467
|
+
readonly dynamickdtree_new: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
7948
8468
|
readonly dynamickdtree_numNodes: (a: number) => number;
|
|
7949
8469
|
readonly dynamickdtree_point: (a: number, b: number, c: number) => void;
|
|
8470
|
+
readonly dynamickdtree_setLeafSize: (a: number, b: number, c: number) => void;
|
|
7950
8471
|
readonly dynamickdtree_withinRadius: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
7951
8472
|
readonly dynamickdtree_withinRadiusSq: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
7952
8473
|
readonly edgeAngle: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -7992,6 +8513,7 @@ export interface InitOutput {
|
|
|
7992
8513
|
readonly eigenresult_usedDenseFallback: (a: number) => number;
|
|
7993
8514
|
readonly eigenresult_vectors: (a: number, b: number) => void;
|
|
7994
8515
|
readonly extract1hop2hopCsr: (a: number, b: number) => void;
|
|
8516
|
+
readonly extract1hopTetherWeights: (a: number, b: number, c: number, d: any) => void;
|
|
7995
8517
|
readonly extractQuadrilateralBackbone: (a: number, b: number, c: any) => void;
|
|
7996
8518
|
readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: any) => void;
|
|
7997
8519
|
readonly extractSparse1hop2hopPairsWithMode: (a: number, b: number, c: any) => void;
|
|
@@ -8009,7 +8531,14 @@ export interface InitOutput {
|
|
|
8009
8531
|
readonly fdebsolver_step: (a: number, b: number, c: number) => void;
|
|
8010
8532
|
readonly fdebsolver_target: (a: number) => number;
|
|
8011
8533
|
readonly fdebsolver_totalIterations: (a: number) => number;
|
|
8012
|
-
readonly
|
|
8534
|
+
readonly fieldrepulsionkernel_cauchy: () => number;
|
|
8535
|
+
readonly fieldrepulsionkernel_gamma: (a: number, b: number) => void;
|
|
8536
|
+
readonly fieldrepulsionkernel_generalizedCauchy: (a: number, b: number) => void;
|
|
8537
|
+
readonly fieldrepulsionkernel_kind: (a: number, b: number) => void;
|
|
8538
|
+
readonly fieldrepulsionkernel_minScreen: (a: number, b: number) => void;
|
|
8539
|
+
readonly fieldrepulsionkernel_screenFrac: (a: number, b: number) => void;
|
|
8540
|
+
readonly fieldrepulsionkernel_screenedCauchy: (a: number, b: number, c: number, d: number) => void;
|
|
8541
|
+
readonly findAbParams: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
8013
8542
|
readonly fitfieldstats_inverseFfts: (a: number) => number;
|
|
8014
8543
|
readonly fitfieldstats_kernelForwardFfts: (a: number) => number;
|
|
8015
8544
|
readonly fitfieldstats_particleForwardFfts: (a: number) => number;
|
|
@@ -8087,6 +8616,28 @@ export interface InitOutput {
|
|
|
8087
8616
|
readonly graph12hopRowNormalizedProbabilities: (a: number, b: number, c: any) => void;
|
|
8088
8617
|
readonly graph12hopRowNormalizedProbabilitiesWithOptions: (a: number, b: number, c: any) => void;
|
|
8089
8618
|
readonly graphRowNormalizedProbabilities: (a: number, b: number) => void;
|
|
8619
|
+
readonly graph_degree: (a: number, b: number, c: number) => void;
|
|
8620
|
+
readonly graph_edgeWeight: (a: number, b: number, c: number, d: number) => void;
|
|
8621
|
+
readonly graph_edges: (a: number, b: number) => void;
|
|
8622
|
+
readonly graph_fromCsr: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: any, i: number) => void;
|
|
8623
|
+
readonly graph_fromEdgeList: (a: number, b: number, c: number, d: number, e: number, f: number, g: any, h: number) => void;
|
|
8624
|
+
readonly graph_hasEdge: (a: number, b: number, c: number, d: number) => void;
|
|
8625
|
+
readonly graph_indices: (a: number, b: number) => void;
|
|
8626
|
+
readonly graph_indptr: (a: number, b: number) => void;
|
|
8627
|
+
readonly graph_inducedSubgraph: (a: number, b: number, c: number, d: number) => void;
|
|
8628
|
+
readonly graph_isConnected: (a: number) => number;
|
|
8629
|
+
readonly graph_isDirected: (a: number) => number;
|
|
8630
|
+
readonly graph_isEmpty: (a: number) => number;
|
|
8631
|
+
readonly graph_isWeighted: (a: number) => number;
|
|
8632
|
+
readonly graph_largestConnectedComponent: (a: number) => number;
|
|
8633
|
+
readonly graph_len: (a: number) => number;
|
|
8634
|
+
readonly graph_length: (a: number) => number;
|
|
8635
|
+
readonly graph_neighbors: (a: number, b: number, c: number) => void;
|
|
8636
|
+
readonly graph_nnz: (a: number) => number;
|
|
8637
|
+
readonly graph_numEdges: (a: number) => number;
|
|
8638
|
+
readonly graph_numNodes: (a: number) => number;
|
|
8639
|
+
readonly graph_weightDtype: (a: number) => number;
|
|
8640
|
+
readonly graph_weights: (a: number, b: number) => void;
|
|
8090
8641
|
readonly graphcnesolver__run2d: (a: number, b: number, c: number) => void;
|
|
8091
8642
|
readonly graphcnesolver__run3d: (a: number, b: number, c: number) => void;
|
|
8092
8643
|
readonly graphcnesolver__runManifold: (a: number, b: number, c: number) => void;
|
|
@@ -8178,6 +8729,14 @@ export interface InitOutput {
|
|
|
8178
8729
|
readonly hybridknnresult_nPure2hopRows: (a: number) => number;
|
|
8179
8730
|
readonly hybridknnresult_nnz: (a: number) => number;
|
|
8180
8731
|
readonly hyperbolicCrossingNumber: (a: number, b: number, c: number) => void;
|
|
8732
|
+
readonly ibumaphubdamping_explicit: (a: number, b: any) => void;
|
|
8733
|
+
readonly ibumaphubdamping_exponent: (a: number, b: number) => void;
|
|
8734
|
+
readonly ibumaphubdamping_hubEta: (a: number, b: number) => void;
|
|
8735
|
+
readonly ibumaphubdamping_inverseDegree: () => number;
|
|
8736
|
+
readonly ibumaphubdamping_inverseDegreePower: (a: number, b: number) => void;
|
|
8737
|
+
readonly ibumaphubdamping_kind: (a: number, b: number) => void;
|
|
8738
|
+
readonly ibumaphubdamping_medianRowSum: () => number;
|
|
8739
|
+
readonly ibumaphubdamping_none: () => number;
|
|
8181
8740
|
readonly ibumapsolver_a: (a: number) => number;
|
|
8182
8741
|
readonly ibumapsolver_ab: (a: number, b: number) => void;
|
|
8183
8742
|
readonly ibumapsolver_b: (a: number) => number;
|
|
@@ -8185,6 +8744,7 @@ export interface InitOutput {
|
|
|
8185
8744
|
readonly ibumapsolver_fromFuzzySet: (a: number, b: number, c: any, d: any) => void;
|
|
8186
8745
|
readonly ibumapsolver_fromKnn: (a: number, b: number, c: any) => void;
|
|
8187
8746
|
readonly ibumapsolver_fromLandmarks: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
8747
|
+
readonly ibumapsolver_hubEta: (a: number, b: number) => void;
|
|
8188
8748
|
readonly ibumapsolver_isFinished: (a: number) => number;
|
|
8189
8749
|
readonly ibumapsolver_iteration: (a: number) => number;
|
|
8190
8750
|
readonly ibumapsolver_new: (a: number, b: number, c: any) => void;
|
|
@@ -8408,6 +8968,7 @@ export interface InitOutput {
|
|
|
8408
8968
|
readonly manifoldlayout2d_normalizeStd: (a: number, b: number, c: number, d: number) => void;
|
|
8409
8969
|
readonly manifoldlayout2d_numNodes: (a: number) => number;
|
|
8410
8970
|
readonly manifoldlayout2d_poincareCentroid: (a: number, b: number) => void;
|
|
8971
|
+
readonly manifoldlayout2d_poincareEps: (a: number) => number;
|
|
8411
8972
|
readonly manifoldlayout2d_projectAll: (a: number, b: number) => void;
|
|
8412
8973
|
readonly manifoldlayout2d_randomInit: (a: number, b: any, c: number, d: any) => void;
|
|
8413
8974
|
readonly manifoldlayout2d_recenterPoincare: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -8415,6 +8976,7 @@ export interface InitOutput {
|
|
|
8415
8976
|
readonly manifoldlayout2d_rescaleGeodesic: (a: number, b: number, c: number) => void;
|
|
8416
8977
|
readonly manifoldlayout2d_scale: (a: number) => number;
|
|
8417
8978
|
readonly manifoldlayout2d_setAspect: (a: number, b: number, c: number) => void;
|
|
8979
|
+
readonly manifoldlayout2d_setPoincareEps: (a: number, b: number, c: number) => void;
|
|
8418
8980
|
readonly manifoldlayout2d_setPoint: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
8419
8981
|
readonly manifoldlayout2d_setScale: (a: number, b: number, c: number) => void;
|
|
8420
8982
|
readonly manifoldlayout2d_setTorusExtents: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -8447,6 +9009,14 @@ export interface InitOutput {
|
|
|
8447
9009
|
readonly maxentstresssolver_status: (a: number) => number;
|
|
8448
9010
|
readonly maxentstresssolver_target: (a: number) => number;
|
|
8449
9011
|
readonly maxentstresssolver_totalIterations: (a: number) => number;
|
|
9012
|
+
readonly metricanchorweighting_balancedInvD2: () => number;
|
|
9013
|
+
readonly metricanchorweighting_dGate: (a: number, b: number) => void;
|
|
9014
|
+
readonly metricanchorweighting_inversePower: (a: number, b: number) => void;
|
|
9015
|
+
readonly metricanchorweighting_kind: (a: number, b: number) => void;
|
|
9016
|
+
readonly metricanchorweighting_longRangeGated: (a: number, b: number, c: number) => void;
|
|
9017
|
+
readonly metricanchorweighting_medianFrac: (a: number, b: number) => void;
|
|
9018
|
+
readonly metricanchorweighting_power: (a: number, b: number) => void;
|
|
9019
|
+
readonly metricanchorweighting_relativeLongRangeGated: (a: number, b: number, c: number) => void;
|
|
8450
9020
|
readonly metricreport_adjustedPatchNig: (a: number, b: number) => void;
|
|
8451
9021
|
readonly metricreport_angularResolution: (a: number, b: number) => void;
|
|
8452
9022
|
readonly metricreport_aspectRatio: (a: number, b: number) => void;
|
|
@@ -8562,8 +9132,17 @@ export interface InitOutput {
|
|
|
8562
9132
|
readonly pivotMdsFromDistances: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
8563
9133
|
readonly pivotMdsInit: (a: number, b: number, c: any) => void;
|
|
8564
9134
|
readonly pivotMdsWithPivots: (a: number, b: number, c: number, d: number, e: any) => void;
|
|
8565
|
-
readonly
|
|
9135
|
+
readonly pivotmds__generateDist: (a: number, b: number) => void;
|
|
9136
|
+
readonly pivotmds__generateGraph: (a: number, b: number, c: number) => void;
|
|
9137
|
+
readonly pivotmds__generateWithReportDist: (a: number, b: number) => void;
|
|
9138
|
+
readonly pivotmds__generateWithReportGraph: (a: number, b: number, c: number) => void;
|
|
9139
|
+
readonly pivotmds_fromPivotDistances: (a: number, b: any, c: number, d: number, e: any) => void;
|
|
8566
9140
|
readonly pivotmds_new: (a: number, b: any) => void;
|
|
9141
|
+
readonly pivotmdsreport_eigenvalues: (a: number, b: number) => void;
|
|
9142
|
+
readonly pivotmdsreport_embeddability2d: (a: number) => number;
|
|
9143
|
+
readonly pivotmdsreport_explainedVarianceRatio: (a: number, b: number, c: number) => void;
|
|
9144
|
+
readonly pivotmdsreportresult_layout: (a: number) => any;
|
|
9145
|
+
readonly pivotmdsreportresult_report: (a: number) => number;
|
|
8567
9146
|
readonly poincareDistance: (a: number, b: number, c: number, d: number) => number;
|
|
8568
9147
|
readonly poincareEinsteinMidpoint: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
8569
9148
|
readonly poincareMobiusAdd: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
@@ -8583,11 +9162,11 @@ export interface InitOutput {
|
|
|
8583
9162
|
readonly prismoverlapremoval_status: (a: number) => number;
|
|
8584
9163
|
readonly prismoverlapremoval_step: (a: number, b: number, c: number) => void;
|
|
8585
9164
|
readonly prismoverlapremoval_totalIterations: (a: number) => number;
|
|
8586
|
-
readonly project1d: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
9165
|
+
readonly project1d: (a: number, b: number, c: number, d: any, e: any, f: any) => void;
|
|
8587
9166
|
readonly projectClusteredLayout: (a: number, b: number, c: number, d: number, e: any) => void;
|
|
8588
9167
|
readonly projectClusteredLayoutWithRadii: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => void;
|
|
8589
9168
|
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;
|
|
9169
|
+
readonly projectLayoutAxis: (a: number, b: number, c: any, d: any, e: any) => void;
|
|
8591
9170
|
readonly projectPsdSpectralFilter: (a: number, b: any, c: any) => void;
|
|
8592
9171
|
readonly projectRectangleNoOverlap2d: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
8593
9172
|
readonly randomWalkLaplacian: (a: number) => number;
|
|
@@ -8744,7 +9323,10 @@ export interface InitOutput {
|
|
|
8744
9323
|
readonly sgd2solver__step3d: (a: number, b: number, c: number) => void;
|
|
8745
9324
|
readonly sgd2solver__stepManifold: (a: number, b: number, c: number) => void;
|
|
8746
9325
|
readonly sgd2solver__stepNd: (a: number, b: number, c: number) => void;
|
|
9326
|
+
readonly sgd2solver_batchSize: (a: number) => number;
|
|
8747
9327
|
readonly sgd2solver_currentEta: (a: number) => number;
|
|
9328
|
+
readonly sgd2solver_damping: (a: number) => number;
|
|
9329
|
+
readonly sgd2solver_eps: (a: number) => number;
|
|
8748
9330
|
readonly sgd2solver_isFinished: (a: number) => number;
|
|
8749
9331
|
readonly sgd2solver_iteration: (a: number) => number;
|
|
8750
9332
|
readonly sgd2solver_new: (a: number, b: number, c: any) => void;
|
|
@@ -8752,6 +9334,7 @@ export interface InitOutput {
|
|
|
8752
9334
|
readonly sgd2solver_numSprings: (a: number) => number;
|
|
8753
9335
|
readonly sgd2solver_resetSchedule: (a: number, b: number, c: any) => void;
|
|
8754
9336
|
readonly sgd2solver_status: (a: number) => number;
|
|
9337
|
+
readonly sgd2solver_stepScale: (a: number) => number;
|
|
8755
9338
|
readonly sgd2solver_target: (a: number) => number;
|
|
8756
9339
|
readonly sgd2solver_totalIterations: (a: number) => number;
|
|
8757
9340
|
readonly sgdsolver__run2d: (a: number, b: number, c: number) => void;
|
|
@@ -8785,6 +9368,7 @@ export interface InitOutput {
|
|
|
8785
9368
|
readonly sgdsolver_numSprings: (a: number) => number;
|
|
8786
9369
|
readonly sgdsolver_omega: (a: number, b: number, c: number, d: number, e: number, f: any) => void;
|
|
8787
9370
|
readonly sgdsolver_ortmannSparseStress: (a: number, b: number, c: any) => void;
|
|
9371
|
+
readonly sgdsolver_ortmannSparseStressFromPivots: (a: number, b: number, c: any, d: any, e: any) => void;
|
|
8788
9372
|
readonly sgdsolver_randomPair: (a: number, b: number, c: any) => void;
|
|
8789
9373
|
readonly sgdsolver_resetSchedule: (a: number, b: number, c: any) => void;
|
|
8790
9374
|
readonly sgdsolver_sparseBarrierDog: (a: number, b: number, c: any) => void;
|
|
@@ -8797,6 +9381,7 @@ export interface InitOutput {
|
|
|
8797
9381
|
readonly sgdsolver_totalIterations: (a: number) => number;
|
|
8798
9382
|
readonly shiftedNormalizedLaplacian: (a: number, b: number, c: number, d: number) => void;
|
|
8799
9383
|
readonly smallestLaplacianEigenpairs: (a: number, b: number, c: any) => void;
|
|
9384
|
+
readonly smallestSymLaplacianEigenpairsAmg: (a: number, b: number, c: any) => void;
|
|
8800
9385
|
readonly snaptfdpsolver__run2d: (a: number, b: number, c: number) => void;
|
|
8801
9386
|
readonly snaptfdpsolver__run3d: (a: number, b: number, c: number) => void;
|
|
8802
9387
|
readonly snaptfdpsolver__runManifold: (a: number, b: number, c: number) => void;
|
|
@@ -8970,6 +9555,8 @@ export interface InitOutput {
|
|
|
8970
9555
|
readonly toruscrossing_v1: (a: number) => number;
|
|
8971
9556
|
readonly toruscrossing_v2: (a: number) => number;
|
|
8972
9557
|
readonly transitiveReduction: (a: number, b: number) => void;
|
|
9558
|
+
readonly tsnetsolver__fromProbabilitiesWithConformalNoAnchor: (a: number, b: number, c: any, d: any, e: any) => void;
|
|
9559
|
+
readonly tsnetsolver__fromProbabilitiesWithConformalWithAnchor: (a: number, b: number, c: any, d: any, e: number, f: any) => void;
|
|
8973
9560
|
readonly tsnetsolver__run2d: (a: number, b: number, c: number) => void;
|
|
8974
9561
|
readonly tsnetsolver__run3d: (a: number, b: number, c: number) => void;
|
|
8975
9562
|
readonly tsnetsolver__runManifold: (a: number, b: number, c: number) => void;
|
|
@@ -9003,12 +9590,16 @@ export interface InitOutput {
|
|
|
9003
9590
|
readonly tsnetsolver_target: (a: number) => number;
|
|
9004
9591
|
readonly tsnetsolver_totalFft2dCalls: (a: number) => number;
|
|
9005
9592
|
readonly tsnetsolver_totalIterations: (a: number) => number;
|
|
9593
|
+
readonly tsnetstage_coercive1hop: (a: number) => number;
|
|
9006
9594
|
readonly tsnetstage_exaggeration: (a: number) => number;
|
|
9007
9595
|
readonly tsnetstage_iterations: (a: number) => number;
|
|
9008
9596
|
readonly tsnetstage_lambdaC: (a: number) => number;
|
|
9009
9597
|
readonly tsnetstage_lambdaKl: (a: number) => number;
|
|
9598
|
+
readonly tsnetstage_lambdaMetric: (a: number) => number;
|
|
9010
9599
|
readonly tsnetstage_lambdaR: (a: number) => number;
|
|
9011
9600
|
readonly tsnetstage_new: (a: number, b: any, c: any) => void;
|
|
9601
|
+
readonly tsnetstage_spring1hop: (a: number) => number;
|
|
9602
|
+
readonly tsnetstage_springDeadzone: (a: number) => number;
|
|
9012
9603
|
readonly twindeclutterer_apply: (a: number, b: number, c: number) => void;
|
|
9013
9604
|
readonly twindeclutterer_lastClusterCount: (a: number) => number;
|
|
9014
9605
|
readonly twindeclutterer_lastMovedCount: (a: number) => number;
|
|
@@ -9024,6 +9615,17 @@ export interface InitOutput {
|
|
|
9024
9615
|
readonly twohopknnresult_n2hop: (a: number) => number;
|
|
9025
9616
|
readonly twohopknnresult_nTruncated2hop: (a: number) => number;
|
|
9026
9617
|
readonly twohopknnresult_nnz: (a: number) => number;
|
|
9618
|
+
readonly unifiedmetricanchor_activeFraction: (a: number) => number;
|
|
9619
|
+
readonly unifiedmetricanchor_fromEmbeddingPivots: (a: number, b: any, c: number, d: number, e: any, f: any) => void;
|
|
9620
|
+
readonly unifiedmetricanchor_fromF64Pivots: (a: number, b: number, c: any, d: any, e: any) => void;
|
|
9621
|
+
readonly unifiedmetricanchor_fromHopPivots: (a: number, b: number, c: any, d: any, e: any) => void;
|
|
9622
|
+
readonly unifiedmetricanchor_numNodes: (a: number) => number;
|
|
9623
|
+
readonly unifiedmetricanchor_pivotDistances: (a: number, b: number) => void;
|
|
9624
|
+
readonly unifiedmetricanchor_pivots: (a: number, b: number) => void;
|
|
9625
|
+
readonly unifiedmetricanchor_scaleAlpha: (a: number) => number;
|
|
9626
|
+
readonly unifiedmetricanchor_softEps: (a: number) => number;
|
|
9627
|
+
readonly unifiedmetricanchor_sumWd2: (a: number) => number;
|
|
9628
|
+
readonly unifiedmetricanchor_weights: (a: number, b: number) => void;
|
|
9027
9629
|
readonly wasmMemory: () => any;
|
|
9028
9630
|
readonly wasm_start: () => void;
|
|
9029
9631
|
readonly wrapTorusPoint: (a: number, b: number, c: number) => void;
|
|
@@ -9081,31 +9683,31 @@ export function initSync(module: { module: SyncInitInput } | SyncInitInput): Ini
|
|
|
9081
9683
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
9082
9684
|
|
|
9083
9685
|
|
|
9084
|
-
export function evaluateMetrics(graph:
|
|
9686
|
+
export function evaluateMetrics(graph: Graph, layout: AnyLayout, targets: readonly MetricTarget[], options?: MetricConfigOptions | null): MetricReport;
|
|
9085
9687
|
|
|
9086
|
-
export function scaleNormalizedStress(graph:
|
|
9087
|
-
export function scaleNormalizedStressDetail(graph:
|
|
9088
|
-
export function sampledScaleNormalizedStress(graph:
|
|
9688
|
+
export function scaleNormalizedStress(graph: Graph, layout: AnyLayout): number;
|
|
9689
|
+
export function scaleNormalizedStressDetail(graph: Graph, layout: AnyLayout): StressEvaluation;
|
|
9690
|
+
export function sampledScaleNormalizedStress(graph: Graph, layout: AnyLayout, options?: SampledStressOptions | null): number;
|
|
9089
9691
|
export function scaleNormalizedStressFromDistances(layout: AnyLayout, distances: Float64Array | number[], weights?: Float64Array | number[] | null): number;
|
|
9090
|
-
export function neighborhoodPreservation1Hop(graph:
|
|
9091
|
-
export function neighborhoodPreservation2Hop(graph:
|
|
9092
|
-
export function sampledNp1(graph:
|
|
9093
|
-
export function sampledNp2(graph:
|
|
9094
|
-
export function gabrielGraphProperty(graph:
|
|
9692
|
+
export function neighborhoodPreservation1Hop(graph: Graph, layout: AnyLayout): number;
|
|
9693
|
+
export function neighborhoodPreservation2Hop(graph: Graph, layout: AnyLayout): number;
|
|
9694
|
+
export function sampledNp1(graph: Graph, layout: AnyLayout, options?: SamplingSeedOptions | null): number;
|
|
9695
|
+
export function sampledNp2(graph: Graph, layout: AnyLayout, options?: SamplingSeedOptions | null): number;
|
|
9696
|
+
export function gabrielGraphProperty(graph: Graph, layout: AnyLayout): number;
|
|
9095
9697
|
export function nodeResolution(layout: AnyLayout): number;
|
|
9096
|
-
export function drngPreservation(graph:
|
|
9097
|
-
export function dggPreservation(graph:
|
|
9098
|
-
export function idealEdgeLengths(graph:
|
|
9099
|
-
export function idealEdgeLengthsWithUnit(graph:
|
|
9100
|
-
export function layoutDegeneracy(graph:
|
|
9698
|
+
export function drngPreservation(graph: Graph, layout: AnyLayout): number;
|
|
9699
|
+
export function dggPreservation(graph: Graph, layout: AnyLayout): number;
|
|
9700
|
+
export function idealEdgeLengths(graph: Graph, layout: AnyLayout): number;
|
|
9701
|
+
export function idealEdgeLengthsWithUnit(graph: Graph, layout: AnyLayout, unitEdgeLength: number): number;
|
|
9702
|
+
export function layoutDegeneracy(graph: Graph, layout: AnyLayout): LayoutDegeneracy;
|
|
9101
9703
|
export function gabrielGraphEdges(layout: AnyLayout): Uint32Array;
|
|
9102
9704
|
export function relativeNeighborhoodEdges(layout: AnyLayout): Uint32Array;
|
|
9103
|
-
export function landmarkStratifiedRta(graph:
|
|
9104
|
-
export function landmarkStratifiedRtaDetail(graph:
|
|
9705
|
+
export function landmarkStratifiedRta(graph: Graph, layout: AnyLayout, options?: RtaOptions | null): number;
|
|
9706
|
+
export function landmarkStratifiedRtaDetail(graph: Graph, layout: AnyLayout, options?: RtaOptions | null): RtaEvaluation;
|
|
9105
9707
|
export function landmarkStratifiedRtaFromLandmarks(layout: AnyLayout, landmarkIds: Uint32Array | number[], landmarkDists: Float64Array | Float32Array | Uint32Array | number[], options?: RtaFromLandmarksOptions | null): RtaEvaluation;
|
|
9106
|
-
export function torusCrossingNumber(graph:
|
|
9107
|
-
export function crossingEdgesTorus(graph:
|
|
9108
|
-
export function torusLayoutEdgeSegments(graph:
|
|
9708
|
+
export function torusCrossingNumber(graph: Graph, layout: Layout2d | ManifoldLayout2d): number;
|
|
9709
|
+
export function crossingEdgesTorus(graph: Graph, layout: Layout2d | ManifoldLayout2d): TorusCrossing[];
|
|
9710
|
+
export function torusLayoutEdgeSegments(graph: Graph, layout: Layout2d | ManifoldLayout2d): Float64Array;
|
|
9109
9711
|
export function cqKmeans(layout: AnyLayout, labels: Uint32Array | number[], options?: CqKmeansOptions | null): PartitionAgreementResult;
|
|
9110
9712
|
export function cqHac(layout: AnyLayout, labels: Uint32Array | number[]): PartitionAgreementResult;
|
|
9111
9713
|
export function distanceConsistency(layout: AnyLayout, labels: Uint32Array | number[]): number;
|