egraph 6.0.0-rc.1 → 6.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/pkg/README.md +1 -1
- package/pkg/egraph_wasm.d.ts +374 -41
- package/pkg/egraph_wasm.js +1621 -135
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +521 -60
- package/pkg/index.js +84 -14
package/pkg/index.d.ts
CHANGED
|
@@ -510,25 +510,25 @@ export class ClassicalMds {
|
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
/**
|
|
513
|
-
*
|
|
514
|
-
* `clusterAreaFaithfulnessDetail`.
|
|
513
|
+
* Grid-based Cluster Area Faithfulness (`G-CAF`) summary and optional per-cluster
|
|
514
|
+
* diagnostics returned by `clusterAreaFaithfulnessDetail` and `MetricReport.clusterAreaReport`.
|
|
515
515
|
*/
|
|
516
516
|
export class ClusterAreaReport {
|
|
517
517
|
private constructor();
|
|
518
518
|
free(): void;
|
|
519
519
|
[Symbol.dispose](): void;
|
|
520
|
-
cafPerCluster(): Float64Array;
|
|
521
|
-
clusterIds(): Uint32Array;
|
|
522
|
-
coherence(): Float64Array;
|
|
523
|
-
counts(): Uint32Array;
|
|
524
|
-
p(): Float64Array;
|
|
525
|
-
purity(): Float64Array;
|
|
526
|
-
q(): Float64Array;
|
|
527
|
-
resDeconvPerCluster(): Float64Array;
|
|
528
|
-
resDensityPerCluster(): Float64Array;
|
|
529
|
-
resolution(): Float64Array;
|
|
530
|
-
/**
|
|
531
|
-
* Converts summary and per-cluster diagnostics into a plain JavaScript object without `serde`.
|
|
520
|
+
cafPerCluster(): Float64Array | undefined;
|
|
521
|
+
clusterIds(): Uint32Array | undefined;
|
|
522
|
+
coherence(): Float64Array | undefined;
|
|
523
|
+
counts(): Uint32Array | undefined;
|
|
524
|
+
p(): Float64Array | undefined;
|
|
525
|
+
purity(): Float64Array | undefined;
|
|
526
|
+
q(): Float64Array | undefined;
|
|
527
|
+
resDeconvPerCluster(): Float64Array | undefined;
|
|
528
|
+
resDensityPerCluster(): Float64Array | undefined;
|
|
529
|
+
resolution(): Float64Array | undefined;
|
|
530
|
+
/**
|
|
531
|
+
* Converts summary and optional per-cluster diagnostics into a plain JavaScript object without `serde`.
|
|
532
532
|
*/
|
|
533
533
|
toRecord(): ClusterAreaReportRecord;
|
|
534
534
|
readonly caf: number;
|
|
@@ -737,7 +737,8 @@ export interface TsNetOptions {
|
|
|
737
737
|
target?: TargetKind | null;
|
|
738
738
|
backend?: TsNetBackend | null;
|
|
739
739
|
exactThreshold?: number | null;
|
|
740
|
-
|
|
740
|
+
stages?: readonly (TsNetStage | TsNetStageOptions)[] | null;
|
|
741
|
+
stageIterations?: readonly [number, number] | readonly [number, number, number] | Uint32Array | number[] | null;
|
|
741
742
|
learningRate?: number | null;
|
|
742
743
|
learningRateDivisor?: number | null;
|
|
743
744
|
perplexityC?: number | null;
|
|
@@ -747,6 +748,7 @@ export interface TsNetOptions {
|
|
|
747
748
|
lambdaCStage1?: number | null;
|
|
748
749
|
lambdaCStage2?: number | null;
|
|
749
750
|
lambdaCStage3?: number | null;
|
|
751
|
+
lambdaRStage2?: number | null;
|
|
750
752
|
lambdaRStage3?: number | null;
|
|
751
753
|
momentum?: number | null;
|
|
752
754
|
epsilonR?: number | null;
|
|
@@ -768,16 +770,21 @@ export interface TsNetOptions {
|
|
|
768
770
|
repulsionKernel?: FieldRepulsionKernel | FieldRepulsionKernelLike | null;
|
|
769
771
|
finalLrFloor?: number | null;
|
|
770
772
|
alphaUpdateInterval?: number | null;
|
|
773
|
+
lrWarmupSteps?: number | null;
|
|
774
|
+
maxStepNorm?: number | null;
|
|
771
775
|
seed?: number | bigint | null;
|
|
772
776
|
}
|
|
773
777
|
|
|
778
|
+
export interface TsNetRnOptions extends TsNetOptions {
|
|
779
|
+
w2?: number | null;
|
|
780
|
+
max2hopPerNode?: number | null;
|
|
781
|
+
}
|
|
782
|
+
|
|
774
783
|
export interface TsNetRowNormalizedOptions extends TsNetOptions {
|
|
775
784
|
w2?: number | null;
|
|
776
785
|
max2hopPerNode?: number | null;
|
|
777
786
|
degreeBeta?: number | null;
|
|
778
787
|
mode?: TwoHopSamplingMode | null;
|
|
779
|
-
samplingMode?: TwoHopSamplingMode | null;
|
|
780
|
-
twoStepRandomWalk?: boolean | null;
|
|
781
788
|
maxBridgeDegree?: number | null;
|
|
782
789
|
}
|
|
783
790
|
|
|
@@ -876,7 +883,6 @@ export interface SparseBarrierDogOptions extends SparseBarrierOptions {
|
|
|
876
883
|
pExp?: number | null;
|
|
877
884
|
epsPsd?: number | null;
|
|
878
885
|
epsSim?: number | null;
|
|
879
|
-
dogEpsSim?: number | null;
|
|
880
886
|
tCoarse?: number | null;
|
|
881
887
|
t1?: number | null;
|
|
882
888
|
t2?: number | null;
|
|
@@ -919,7 +925,6 @@ export interface GuMapDogOptions extends GuMapOptions {
|
|
|
919
925
|
pExp?: number | null;
|
|
920
926
|
epsPsd?: number | null;
|
|
921
927
|
epsSim?: number | null;
|
|
922
|
-
dogEpsSim?: number | null;
|
|
923
928
|
tCoarse?: number | null;
|
|
924
929
|
t1?: number | null;
|
|
925
930
|
t2?: number | null;
|
|
@@ -1045,7 +1050,6 @@ export interface IbUmapOptions {
|
|
|
1045
1050
|
pExp?: number | null;
|
|
1046
1051
|
epsPsd?: number | null;
|
|
1047
1052
|
epsSim?: number | null;
|
|
1048
|
-
dogEpsSim?: number | null;
|
|
1049
1053
|
tCoarse?: number | null;
|
|
1050
1054
|
t1?: number | null;
|
|
1051
1055
|
t2?: number | null;
|
|
@@ -1717,6 +1721,96 @@ export interface SfcOptions {
|
|
|
1717
1721
|
seed?: number | bigint | null;
|
|
1718
1722
|
}
|
|
1719
1723
|
|
|
1724
|
+
export interface CompoundRectRecord {
|
|
1725
|
+
centerX: number;
|
|
1726
|
+
centerY: number;
|
|
1727
|
+
width: number;
|
|
1728
|
+
height: number;
|
|
1729
|
+
minX: number;
|
|
1730
|
+
maxX: number;
|
|
1731
|
+
minY: number;
|
|
1732
|
+
maxY: number;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
export interface AugmentedClusterGraphResult {
|
|
1736
|
+
graph: Graph;
|
|
1737
|
+
parents: Int32Array;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
export interface CoseOptions {
|
|
1741
|
+
parents?: Int32Array | Uint32Array | readonly (number | null | undefined)[] | null;
|
|
1742
|
+
compoundFlags?: readonly boolean[] | Uint8Array | null;
|
|
1743
|
+
widths?: Float32Array | Float64Array | readonly number[] | null;
|
|
1744
|
+
heights?: Float32Array | Float64Array | readonly number[] | null;
|
|
1745
|
+
padding?: number | null;
|
|
1746
|
+
defaultNodeWidth?: number | null;
|
|
1747
|
+
defaultNodeHeight?: number | null;
|
|
1748
|
+
seed?: number | bigint | null;
|
|
1749
|
+
maxIterations?: number | null;
|
|
1750
|
+
idealEdgeLength?: number | null;
|
|
1751
|
+
nestingFactor?: number | null;
|
|
1752
|
+
edgeElasticity?: number | null;
|
|
1753
|
+
repulsionStrength?: number | null;
|
|
1754
|
+
repulsionRange?: number | null;
|
|
1755
|
+
gravityStrength?: number | null;
|
|
1756
|
+
compoundGravityStrength?: number | null;
|
|
1757
|
+
initialTemperature?: number | null;
|
|
1758
|
+
coolingFactor?: number | null;
|
|
1759
|
+
convergenceThreshold?: number | null;
|
|
1760
|
+
maxDisplacement?: number | null;
|
|
1761
|
+
incremental?: boolean | null;
|
|
1762
|
+
repulsionBackend?: CoseRepulsionBackend | null;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
export interface FcoseFixedConstraint {
|
|
1766
|
+
node: number;
|
|
1767
|
+
x: number;
|
|
1768
|
+
y: number;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
export interface FcoseRelativeConstraint {
|
|
1772
|
+
u: number;
|
|
1773
|
+
v: number;
|
|
1774
|
+
gap: number;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
export interface FcoseConstraintsOptions {
|
|
1778
|
+
fixed?: readonly (readonly [number, number, number] | FcoseFixedConstraint)[] | null;
|
|
1779
|
+
horizontalAlignments?: readonly (Uint32Array | readonly number[])[] | null;
|
|
1780
|
+
verticalAlignments?: readonly (Uint32Array | readonly number[])[] | null;
|
|
1781
|
+
relativeHorizontal?: readonly (readonly [number, number, number] | FcoseRelativeConstraint)[] | null;
|
|
1782
|
+
relativeVertical?: readonly (readonly [number, number, number] | FcoseRelativeConstraint)[] | null;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
export interface FcoseOptions {
|
|
1786
|
+
parents?: Int32Array | Uint32Array | readonly (number | null | undefined)[] | null;
|
|
1787
|
+
compoundFlags?: readonly boolean[] | Uint8Array | null;
|
|
1788
|
+
widths?: Float32Array | Float64Array | readonly number[] | null;
|
|
1789
|
+
heights?: Float32Array | Float64Array | readonly number[] | null;
|
|
1790
|
+
padding?: number | null;
|
|
1791
|
+
defaultNodeWidth?: number | null;
|
|
1792
|
+
defaultNodeHeight?: number | null;
|
|
1793
|
+
constraints?: FcoseConstraintsOptions | null;
|
|
1794
|
+
quality?: FcoseQuality | null;
|
|
1795
|
+
seed?: number | bigint | null;
|
|
1796
|
+
maxIterations?: number | null;
|
|
1797
|
+
samplingSize?: number | null;
|
|
1798
|
+
useSpectralInit?: boolean | null;
|
|
1799
|
+
idealEdgeLength?: number | null;
|
|
1800
|
+
nestingFactor?: number | null;
|
|
1801
|
+
edgeElasticity?: number | null;
|
|
1802
|
+
repulsionStrength?: number | null;
|
|
1803
|
+
repulsionRange?: number | null;
|
|
1804
|
+
gravityStrength?: number | null;
|
|
1805
|
+
compoundGravityStrength?: number | null;
|
|
1806
|
+
initialTemperature?: number | null;
|
|
1807
|
+
phase3TemperatureFactor?: number | null;
|
|
1808
|
+
coolingFactor?: number | null;
|
|
1809
|
+
convergenceThreshold?: number | null;
|
|
1810
|
+
maxDisplacement?: number | null;
|
|
1811
|
+
repulsionBackend?: CoseRepulsionBackend | null;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1720
1814
|
export interface YifanHuOptions {
|
|
1721
1815
|
target?: TargetKind | null;
|
|
1722
1816
|
backend?: ForceBackend | null;
|
|
@@ -1985,6 +2079,63 @@ export class CoarsenedHierarchyResult {
|
|
|
1985
2079
|
readonly numLevels: number;
|
|
1986
2080
|
}
|
|
1987
2081
|
|
|
2082
|
+
/**
|
|
2083
|
+
* r" Intra-graph sibling repulsion acceleration backend for `CoseSolver` and `FcoseSolver`.
|
|
2084
|
+
*/
|
|
2085
|
+
export enum CoseRepulsionBackend {
|
|
2086
|
+
Grid = 0,
|
|
2087
|
+
Exact = 1,
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
/**
|
|
2091
|
+
* Cooperative Doğrusöz et al. (2009) Compound Spring Embedder (`CoSE`) solver (`f32`).
|
|
2092
|
+
*/
|
|
2093
|
+
export class CoseSolver {
|
|
2094
|
+
free(): void;
|
|
2095
|
+
[Symbol.dispose](): void;
|
|
2096
|
+
/**
|
|
2097
|
+
* Returns the current per-node bounding rectangles (`centerX`, `centerY`, `width`, `height`,
|
|
2098
|
+
* `minX`, `maxX`, `minY`, `maxY`).
|
|
2099
|
+
*/
|
|
2100
|
+
compoundBounds(): CompoundRectRecord[];
|
|
2101
|
+
/**
|
|
2102
|
+
* Constructs a `CoseSolver` from `graph` and optional `CoseOptions`.
|
|
2103
|
+
*/
|
|
2104
|
+
constructor(graph: Graph, options?: CoseOptions | null);
|
|
2105
|
+
/**
|
|
2106
|
+
* Executes up to `steps` `CoSE` iterations on `layout` in place.
|
|
2107
|
+
*/
|
|
2108
|
+
runSteps(layout: Layout2d, steps: number): SolverStatus;
|
|
2109
|
+
/**
|
|
2110
|
+
* Runs `CoSE` optimization to completion on `layout` in place.
|
|
2111
|
+
*/
|
|
2112
|
+
run(layout: Layout2d): SolverStatus;
|
|
2113
|
+
/**
|
|
2114
|
+
* Executes one `CoSE` iteration on `layout` in place.
|
|
2115
|
+
*/
|
|
2116
|
+
step(layout: Layout2d): SolverStatus;
|
|
2117
|
+
/**
|
|
2118
|
+
* Returns `true` when the solver has converged, completed, or failed.
|
|
2119
|
+
*/
|
|
2120
|
+
readonly isFinished: boolean;
|
|
2121
|
+
/**
|
|
2122
|
+
* Returns the number of iterations executed so far.
|
|
2123
|
+
*/
|
|
2124
|
+
readonly iteration: number;
|
|
2125
|
+
/**
|
|
2126
|
+
* Returns the expected vertex count.
|
|
2127
|
+
*/
|
|
2128
|
+
readonly numNodes: number;
|
|
2129
|
+
/**
|
|
2130
|
+
* Returns the solver lifecycle status (`SolverStatus`).
|
|
2131
|
+
*/
|
|
2132
|
+
readonly status: SolverStatus;
|
|
2133
|
+
/**
|
|
2134
|
+
* Returns the scheduled maximum iteration budget (`maxIterations`).
|
|
2135
|
+
*/
|
|
2136
|
+
readonly totalIterations: number | undefined;
|
|
2137
|
+
}
|
|
2138
|
+
|
|
1988
2139
|
/**
|
|
1989
2140
|
* Non-adjacent crossing edge pair details returned by `crossingEdges`, `crossingEdgesSpherical`,
|
|
1990
2141
|
* and `crossingEdgesHyperbolic`.
|
|
@@ -2534,6 +2685,88 @@ export class EigenResult {
|
|
|
2534
2685
|
readonly usedDenseFallback: boolean;
|
|
2535
2686
|
}
|
|
2536
2687
|
|
|
2688
|
+
/**
|
|
2689
|
+
* One-shot Balcı & Doğrusöz (2022) `fCoSE` Phase I spectral draft + Phase II constraint
|
|
2690
|
+
* alignment generator (`f32`).
|
|
2691
|
+
*/
|
|
2692
|
+
export class FcoseDraftGenerator {
|
|
2693
|
+
free(): void;
|
|
2694
|
+
[Symbol.dispose](): void;
|
|
2695
|
+
/**
|
|
2696
|
+
* Returns the most recently computed per-node bounding rectangles.
|
|
2697
|
+
*/
|
|
2698
|
+
compoundBounds(): CompoundRectRecord[];
|
|
2699
|
+
/**
|
|
2700
|
+
* Generates the Phase I + Phase II constrained draft `Layout2d`.
|
|
2701
|
+
*/
|
|
2702
|
+
generate(): Layout2d;
|
|
2703
|
+
/**
|
|
2704
|
+
* Constructs a validated `FcoseDraftGenerator` from `graph` and optional `FcoseOptions`.
|
|
2705
|
+
*/
|
|
2706
|
+
constructor(graph: Graph, options?: FcoseOptions | null);
|
|
2707
|
+
/**
|
|
2708
|
+
* Returns the expected vertex count.
|
|
2709
|
+
*/
|
|
2710
|
+
readonly numNodes: number;
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
/**
|
|
2714
|
+
* r" Quality preset for `FcoseDraftGenerator` and `FcoseSolver`.
|
|
2715
|
+
*/
|
|
2716
|
+
export enum FcoseQuality {
|
|
2717
|
+
Default = 0,
|
|
2718
|
+
Proof = 1,
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* Cooperative Balcı & Doğrusöz (2022) Fast Compound Spring Embedder (`fCoSE`) solver (`f32`).
|
|
2723
|
+
*/
|
|
2724
|
+
export class FcoseSolver {
|
|
2725
|
+
free(): void;
|
|
2726
|
+
[Symbol.dispose](): void;
|
|
2727
|
+
/**
|
|
2728
|
+
* Returns the current per-node bounding rectangles (`centerX`, `centerY`, `width`, `height`,
|
|
2729
|
+
* `minX`, `maxX`, `minY`, `maxY`).
|
|
2730
|
+
*/
|
|
2731
|
+
compoundBounds(): CompoundRectRecord[];
|
|
2732
|
+
/**
|
|
2733
|
+
* Constructs an `FcoseSolver` from `graph` and optional `FcoseOptions`.
|
|
2734
|
+
*/
|
|
2735
|
+
constructor(graph: Graph, options?: FcoseOptions | null);
|
|
2736
|
+
/**
|
|
2737
|
+
* Executes up to `steps` Phase III constrained `fCoSE` iterations on `layout` in place.
|
|
2738
|
+
*/
|
|
2739
|
+
runSteps(layout: Layout2d, steps: number): SolverStatus;
|
|
2740
|
+
/**
|
|
2741
|
+
* Runs Phase III constrained `fCoSE` optimization to completion on `layout` in place.
|
|
2742
|
+
*/
|
|
2743
|
+
run(layout: Layout2d): SolverStatus;
|
|
2744
|
+
/**
|
|
2745
|
+
* Executes one Phase III constrained `fCoSE` iteration on `layout` in place.
|
|
2746
|
+
*/
|
|
2747
|
+
step(layout: Layout2d): SolverStatus;
|
|
2748
|
+
/**
|
|
2749
|
+
* Returns `true` when the solver has converged, completed, or failed.
|
|
2750
|
+
*/
|
|
2751
|
+
readonly isFinished: boolean;
|
|
2752
|
+
/**
|
|
2753
|
+
* Returns the number of Phase III iterations executed so far.
|
|
2754
|
+
*/
|
|
2755
|
+
readonly iteration: number;
|
|
2756
|
+
/**
|
|
2757
|
+
* Returns the expected vertex count.
|
|
2758
|
+
*/
|
|
2759
|
+
readonly numNodes: number;
|
|
2760
|
+
/**
|
|
2761
|
+
* Returns the solver lifecycle status (`SolverStatus`).
|
|
2762
|
+
*/
|
|
2763
|
+
readonly status: SolverStatus;
|
|
2764
|
+
/**
|
|
2765
|
+
* Returns the scheduled maximum Phase III iteration budget (`maxIterations`).
|
|
2766
|
+
*/
|
|
2767
|
+
readonly totalIterations: number | undefined;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2537
2770
|
/**
|
|
2538
2771
|
* Cooperative Force-Directed Edge Bundling (`FDEB`) solver (`f32`) mutating `EdgePolylines`
|
|
2539
2772
|
* in place across `"layout2d"`, `"layout3d"`, and `"layoutNd"`.
|
|
@@ -3836,7 +4069,7 @@ export class LayoutDegeneracy {
|
|
|
3836
4069
|
private constructor();
|
|
3837
4070
|
free(): void;
|
|
3838
4071
|
[Symbol.dispose](): void;
|
|
3839
|
-
toRecord():
|
|
4072
|
+
toRecord(): LayoutDegeneracyRecord;
|
|
3840
4073
|
readonly bboxHeight: number;
|
|
3841
4074
|
readonly bboxWidth: number;
|
|
3842
4075
|
readonly duplicateNodesF32: number;
|
|
@@ -4429,6 +4662,25 @@ export interface TorusCrossingRecord extends CrossingPairRecord {
|
|
|
4429
4662
|
segB: Float64Array;
|
|
4430
4663
|
}
|
|
4431
4664
|
|
|
4665
|
+
/**
|
|
4666
|
+
* Plain JavaScript record returned by `LayoutDegeneracy.toRecord()`.
|
|
4667
|
+
*/
|
|
4668
|
+
export interface LayoutDegeneracyRecord {
|
|
4669
|
+
numNodes: number;
|
|
4670
|
+
numEdges: number;
|
|
4671
|
+
duplicateNodesF32: number;
|
|
4672
|
+
duplicateRatioF32: number;
|
|
4673
|
+
duplicateNodesF64: number;
|
|
4674
|
+
duplicateRatioF64: number;
|
|
4675
|
+
excessDuplicateRatio: number;
|
|
4676
|
+
nearCollisionRatio: number;
|
|
4677
|
+
zeroLengthEdges: number;
|
|
4678
|
+
zeroLengthEdgeRatio: number;
|
|
4679
|
+
bboxWidth: number;
|
|
4680
|
+
bboxHeight: number;
|
|
4681
|
+
isBboxDegenerate: boolean;
|
|
4682
|
+
}
|
|
4683
|
+
|
|
4432
4684
|
/**
|
|
4433
4685
|
* Plain JavaScript record returned by `MetricReport.toRecord()`.
|
|
4434
4686
|
*/
|
|
@@ -4452,16 +4704,22 @@ export interface MetricReportRecord {
|
|
|
4452
4704
|
nodeResolution?: number;
|
|
4453
4705
|
relativeNeighborhoodPreservation?: number;
|
|
4454
4706
|
gabrielGraphPreservation?: number;
|
|
4707
|
+
degreeRelativeNeighborhoodPreservation?: number;
|
|
4708
|
+
degreeGabrielGraphPreservation?: number;
|
|
4709
|
+
degreeConstrainedRelativeNeighborhoodPreservation?: number;
|
|
4710
|
+
degreeConstrainedGabrielGraphPreservation?: number;
|
|
4455
4711
|
aspectRatio?: number;
|
|
4456
4712
|
angularResolution?: number;
|
|
4457
4713
|
minimumAngle?: number;
|
|
4458
4714
|
minimumAngleA1?: number;
|
|
4459
4715
|
layoutDegeneracy?: number;
|
|
4716
|
+
layoutDegeneracyDetail?: LayoutDegeneracyRecord;
|
|
4460
4717
|
idealEdgeLengths?: number;
|
|
4461
4718
|
prismSigmaDist?: number;
|
|
4462
4719
|
prismSigmaDisp?: number;
|
|
4463
4720
|
adjustedPatchNig?: number;
|
|
4464
4721
|
clusterAreaFaithfulness?: number;
|
|
4722
|
+
clusterAreaReport?: ClusterAreaReportRecord;
|
|
4465
4723
|
landmarkStratifiedRta?: number;
|
|
4466
4724
|
distanceConsistency?: number;
|
|
4467
4725
|
distributionConsistency?: number;
|
|
@@ -4571,6 +4829,7 @@ export interface ClusterBaselineOptions {
|
|
|
4571
4829
|
export interface MetricConfigOptions extends ClusterBaselineOptions {
|
|
4572
4830
|
numPivots?: number | null;
|
|
4573
4831
|
numSamples?: number | null;
|
|
4832
|
+
npNumSamples?: number | null;
|
|
4574
4833
|
seed?: number | bigint | null;
|
|
4575
4834
|
idealEdgeLength?: number | null;
|
|
4576
4835
|
labels?: Uint32Array | number[] | null;
|
|
@@ -4665,16 +4924,16 @@ export interface ClusterAreaReportRecord {
|
|
|
4665
4924
|
gEff: number;
|
|
4666
4925
|
numClusters: number;
|
|
4667
4926
|
numNodes: number;
|
|
4668
|
-
uniqueLabels
|
|
4669
|
-
counts
|
|
4670
|
-
p
|
|
4671
|
-
q
|
|
4672
|
-
purity
|
|
4673
|
-
resolution
|
|
4674
|
-
resDensityPerCluster
|
|
4675
|
-
resDeconvPerCluster
|
|
4676
|
-
cafPerCluster
|
|
4677
|
-
coherence
|
|
4927
|
+
uniqueLabels?: Uint32Array;
|
|
4928
|
+
counts?: Uint32Array;
|
|
4929
|
+
p?: Float64Array;
|
|
4930
|
+
q?: Float64Array;
|
|
4931
|
+
purity?: Float64Array;
|
|
4932
|
+
resolution?: Float64Array;
|
|
4933
|
+
resDensityPerCluster?: Float64Array;
|
|
4934
|
+
resDeconvPerCluster?: Float64Array;
|
|
4935
|
+
cafPerCluster?: Float64Array;
|
|
4936
|
+
coherence?: Float64Array;
|
|
4678
4937
|
}
|
|
4679
4938
|
|
|
4680
4939
|
/**
|
|
@@ -4696,6 +4955,7 @@ export class MetricReport {
|
|
|
4696
4955
|
readonly calinskiHarabaszScore: number | undefined;
|
|
4697
4956
|
readonly classDensityMeasure: number | undefined;
|
|
4698
4957
|
readonly clusterAreaFaithfulness: number | undefined;
|
|
4958
|
+
readonly clusterAreaReport: ClusterAreaReport | undefined;
|
|
4699
4959
|
readonly cqHacAmi: number | undefined;
|
|
4700
4960
|
readonly cqHacHom: number | undefined;
|
|
4701
4961
|
readonly cqKmeansAmi: number | undefined;
|
|
@@ -4706,6 +4966,10 @@ export class MetricReport {
|
|
|
4706
4966
|
readonly crossingNumber: number | undefined;
|
|
4707
4967
|
readonly crosslessness: number | undefined;
|
|
4708
4968
|
readonly daviesBouldinScore: number | undefined;
|
|
4969
|
+
readonly degreeConstrainedGabrielGraphPreservation: number | undefined;
|
|
4970
|
+
readonly degreeConstrainedRelativeNeighborhoodPreservation: number | undefined;
|
|
4971
|
+
readonly degreeGabrielGraphPreservation: number | undefined;
|
|
4972
|
+
readonly degreeRelativeNeighborhoodPreservation: number | undefined;
|
|
4709
4973
|
readonly distanceConsistency: number | undefined;
|
|
4710
4974
|
readonly distributionConsistency: number | undefined;
|
|
4711
4975
|
readonly gabrielGraphPreservation: number | undefined;
|
|
@@ -4714,6 +4978,7 @@ export class MetricReport {
|
|
|
4714
4978
|
readonly histogramDensityMeasure: number | undefined;
|
|
4715
4979
|
readonly idealEdgeLengths: number | undefined;
|
|
4716
4980
|
readonly landmarkStratifiedRta: number | undefined;
|
|
4981
|
+
readonly layoutDegeneracyDetail: LayoutDegeneracy | undefined;
|
|
4717
4982
|
readonly layoutDegeneracy: number | undefined;
|
|
4718
4983
|
readonly minimumAngleA1: number | undefined;
|
|
4719
4984
|
readonly minimumAngle: number | undefined;
|
|
@@ -4797,6 +5062,10 @@ export enum MetricTarget {
|
|
|
4797
5062
|
PairwiseDistanceOverlapError = 45,
|
|
4798
5063
|
SprawlterNn = 46,
|
|
4799
5064
|
NorMetrics = 47,
|
|
5065
|
+
DegreeRelativeNeighborhoodPreservation = 48,
|
|
5066
|
+
DegreeGabrielGraphPreservation = 49,
|
|
5067
|
+
DegreeConstrainedRelativeNeighborhoodPreservation = 50,
|
|
5068
|
+
DegreeConstrainedGabrielGraphPreservation = 51,
|
|
4800
5069
|
}
|
|
4801
5070
|
|
|
4802
5071
|
/**
|
|
@@ -6545,10 +6814,27 @@ export class TsNetSolver {
|
|
|
6545
6814
|
*/
|
|
6546
6815
|
static fromProbabilitiesWithStages(probs: SparseProbabilities, stages: readonly (TsNetStage | TsNetStageOptions)[], options?: TsNetOptions | null): TsNetSolver;
|
|
6547
6816
|
static fromProbabilities(probs: SparseProbabilities, options?: TsNetOptions | null): TsNetSolver;
|
|
6817
|
+
/**
|
|
6818
|
+
* Constructs a `graph t-SNE` ($w_2 = 0$) solver using exact 1-hop row-normalized
|
|
6819
|
+
* affinities with Stage-1 learning-rate warmup (`25` steps) and step-norm clipping (`2.0`).
|
|
6820
|
+
*/
|
|
6821
|
+
static graphTsne(graph: Graph, options?: TsNetOptions | null): TsNetSolver;
|
|
6822
|
+
/**
|
|
6823
|
+
* Constructs a classic two-stage `L-tsNET` solver using Partial BFS $k$-NN
|
|
6824
|
+
* ($k = \min(120, n - 1)$), fixed base learning rate `200.0`, and stage-2 repulsion
|
|
6825
|
+
* ($\lambda_r = 0.6$).
|
|
6826
|
+
*/
|
|
6827
|
+
static lTsnet(graph: Graph, options?: TsNetOptions | null): TsNetSolver;
|
|
6548
6828
|
lastFftStats(): FitFieldStats | undefined;
|
|
6549
6829
|
constructor(graph: Graph, options?: TsNetOptions | null);
|
|
6550
6830
|
static pure2Hop(graph: Graph, options?: TsNetOptions | null): TsNetSolver;
|
|
6831
|
+
/**
|
|
6832
|
+
* Constructs a canonical `RN-tsNET` solver using row-normalized 1+2-hop probabilities,
|
|
6833
|
+
* Stage-1 learning-rate warmup (`25` steps), and step-norm clipping (`2.0`).
|
|
6834
|
+
*/
|
|
6835
|
+
static rnTsnet(graph: Graph, options?: TsNetRnOptions | null): TsNetSolver;
|
|
6551
6836
|
readonly backend: TsNetBackend;
|
|
6837
|
+
readonly currentEffectiveLr: number;
|
|
6552
6838
|
readonly currentStageLr: number;
|
|
6553
6839
|
readonly isFinished: boolean;
|
|
6554
6840
|
readonly iteration: number;
|
|
@@ -6789,15 +7075,92 @@ export function _daviesBouldinScoreManifold(layout: ManifoldLayout2d, labels: Ui
|
|
|
6789
7075
|
export function _daviesBouldinScoreNd(layout: LayoutNd, labels: Uint32Array | number[]): number;
|
|
6790
7076
|
|
|
6791
7077
|
/**
|
|
6792
|
-
*
|
|
7078
|
+
* Extracts Fang et al. (2025) degree-constrained Gabriel Graph (`dcGG`) edges on `Layout2d`.
|
|
7079
|
+
*/
|
|
7080
|
+
export function _degreeConstrainedGabrielGraphEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
|
|
7081
|
+
|
|
7082
|
+
export function _degreeConstrainedGabrielGraphEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
|
|
7083
|
+
|
|
7084
|
+
export function _degreeConstrainedGabrielGraphEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
|
|
7085
|
+
|
|
7086
|
+
export function _degreeConstrainedGabrielGraphEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
|
|
7087
|
+
|
|
7088
|
+
/**
|
|
7089
|
+
* Computes Fang et al. (2025) degree-constrained Gabriel Graph preservation (`Q_{dcGG}`) on `Layout2d`.
|
|
6793
7090
|
*/
|
|
6794
|
-
export function
|
|
7091
|
+
export function _degreeConstrainedGabrielGraphPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
|
|
6795
7092
|
|
|
6796
|
-
export function
|
|
7093
|
+
export function _degreeConstrainedGabrielGraphPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
|
|
6797
7094
|
|
|
6798
|
-
export function
|
|
7095
|
+
export function _degreeConstrainedGabrielGraphPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
|
|
6799
7096
|
|
|
6800
|
-
export function
|
|
7097
|
+
export function _degreeConstrainedGabrielGraphPreservationNd(g: Graph, l: LayoutNd, s: any): number;
|
|
7098
|
+
|
|
7099
|
+
/**
|
|
7100
|
+
* Extracts Fang et al. (2025) degree-constrained Relative Neighborhood Graph (`dcRNG`) edges on `Layout2d`.
|
|
7101
|
+
*/
|
|
7102
|
+
export function _degreeConstrainedRelativeNeighborhoodEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
|
|
7103
|
+
|
|
7104
|
+
export function _degreeConstrainedRelativeNeighborhoodEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
|
|
7105
|
+
|
|
7106
|
+
export function _degreeConstrainedRelativeNeighborhoodEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
|
|
7107
|
+
|
|
7108
|
+
export function _degreeConstrainedRelativeNeighborhoodEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
|
|
7109
|
+
|
|
7110
|
+
/**
|
|
7111
|
+
* Computes Fang et al. (2025) degree-constrained Relative Neighborhood Graph preservation (`Q_{dcRNG}`) on `Layout2d`.
|
|
7112
|
+
*/
|
|
7113
|
+
export function _degreeConstrainedRelativeNeighborhoodPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
|
|
7114
|
+
|
|
7115
|
+
export function _degreeConstrainedRelativeNeighborhoodPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
|
|
7116
|
+
|
|
7117
|
+
export function _degreeConstrainedRelativeNeighborhoodPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
|
|
7118
|
+
|
|
7119
|
+
export function _degreeConstrainedRelativeNeighborhoodPreservationNd(g: Graph, l: LayoutNd, s: any): number;
|
|
7120
|
+
|
|
7121
|
+
/**
|
|
7122
|
+
* Extracts Hong et al. (2022) degree-aware Gabriel Graph (`dGG`) edges on `Layout2d`.
|
|
7123
|
+
*/
|
|
7124
|
+
export function _degreeGabrielGraphEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
|
|
7125
|
+
|
|
7126
|
+
export function _degreeGabrielGraphEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
|
|
7127
|
+
|
|
7128
|
+
export function _degreeGabrielGraphEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
|
|
7129
|
+
|
|
7130
|
+
export function _degreeGabrielGraphEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
|
|
7131
|
+
|
|
7132
|
+
/**
|
|
7133
|
+
* Computes Hong et al. (2022) degree-aware Gabriel Graph preservation (`Q_{dGG}`) on `Layout2d`.
|
|
7134
|
+
*/
|
|
7135
|
+
export function _degreeGabrielGraphPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
|
|
7136
|
+
|
|
7137
|
+
export function _degreeGabrielGraphPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
|
|
7138
|
+
|
|
7139
|
+
export function _degreeGabrielGraphPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
|
|
7140
|
+
|
|
7141
|
+
export function _degreeGabrielGraphPreservationNd(g: Graph, l: LayoutNd, s: any): number;
|
|
7142
|
+
|
|
7143
|
+
/**
|
|
7144
|
+
* Extracts Hong et al. (2022) degree-aware Relative Neighborhood Graph (`dRNG`) edges on `Layout2d`.
|
|
7145
|
+
*/
|
|
7146
|
+
export function _degreeRelativeNeighborhoodEdges2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): Uint32Array;
|
|
7147
|
+
|
|
7148
|
+
export function _degreeRelativeNeighborhoodEdges3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): Uint32Array;
|
|
7149
|
+
|
|
7150
|
+
export function _degreeRelativeNeighborhoodEdgesManifold(g: Graph, l: ManifoldLayout2d, s: any): Uint32Array;
|
|
7151
|
+
|
|
7152
|
+
export function _degreeRelativeNeighborhoodEdgesNd(g: Graph, l: LayoutNd, s: any): Uint32Array;
|
|
7153
|
+
|
|
7154
|
+
/**
|
|
7155
|
+
* Computes Hong et al. (2022) degree-aware Relative Neighborhood Graph preservation (`Q_{dRNG}`) on `Layout2d`.
|
|
7156
|
+
*/
|
|
7157
|
+
export function _degreeRelativeNeighborhoodPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
|
|
7158
|
+
|
|
7159
|
+
export function _degreeRelativeNeighborhoodPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
|
|
7160
|
+
|
|
7161
|
+
export function _degreeRelativeNeighborhoodPreservationManifold(g: Graph, l: ManifoldLayout2d, s: any): number;
|
|
7162
|
+
|
|
7163
|
+
export function _degreeRelativeNeighborhoodPreservationNd(g: Graph, l: LayoutNd, s: any): number;
|
|
6801
7164
|
|
|
6802
7165
|
export function _distanceConsistency2d(layout: Layout2d, labels: Uint32Array | number[]): number;
|
|
6803
7166
|
|
|
@@ -6815,17 +7178,6 @@ export function _distributionConsistencyManifold(layout: ManifoldLayout2d, label
|
|
|
6815
7178
|
|
|
6816
7179
|
export function _distributionConsistencyNd(layout: LayoutNd, labels: Uint32Array | number[], options?: { gridSize?: number | null } | null): number;
|
|
6817
7180
|
|
|
6818
|
-
/**
|
|
6819
|
-
* Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
|
|
6820
|
-
*/
|
|
6821
|
-
export function _drngPreservation2d(graph: Graph, layout: Layout2d): number;
|
|
6822
|
-
|
|
6823
|
-
export function _drngPreservation3d(graph: Graph, layout: Layout3d): number;
|
|
6824
|
-
|
|
6825
|
-
export function _drngPreservationManifold(graph: Graph, layout: ManifoldLayout2d): number;
|
|
6826
|
-
|
|
6827
|
-
export function _drngPreservationNd(graph: Graph, layout: LayoutNd): number;
|
|
6828
|
-
|
|
6829
7181
|
/**
|
|
6830
7182
|
* Selectively evaluates quality metrics on `Layout2d` without an `originalLayout`.
|
|
6831
7183
|
*/
|
|
@@ -6862,6 +7214,17 @@ export function _gabrielGraphEdgesManifold(layout: ManifoldLayout2d): Uint32Arra
|
|
|
6862
7214
|
|
|
6863
7215
|
export function _gabrielGraphEdgesNd(layout: LayoutNd): Uint32Array;
|
|
6864
7216
|
|
|
7217
|
+
/**
|
|
7218
|
+
* Computes Eades et al. (2017) unweighted shape-based Gabriel Graph preservation (`S_GG`).
|
|
7219
|
+
*/
|
|
7220
|
+
export function _gabrielGraphPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
|
|
7221
|
+
|
|
7222
|
+
export function _gabrielGraphPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
|
|
7223
|
+
|
|
7224
|
+
export function _gabrielGraphPreservationManifold(graph: Graph, layout: ManifoldLayout2d, proximity_num_sectors: any): number;
|
|
7225
|
+
|
|
7226
|
+
export function _gabrielGraphPreservationNd(graph: Graph, layout: LayoutNd, proximity_num_sectors: any): number;
|
|
7227
|
+
|
|
6865
7228
|
/**
|
|
6866
7229
|
* Computes Gabriel graph condition violations across `graph` edges under `layout`.
|
|
6867
7230
|
*/
|
|
@@ -6990,6 +7353,17 @@ export function _relativeNeighborhoodEdgesManifold(layout: ManifoldLayout2d): Ui
|
|
|
6990
7353
|
|
|
6991
7354
|
export function _relativeNeighborhoodEdgesNd(layout: LayoutNd): Uint32Array;
|
|
6992
7355
|
|
|
7356
|
+
/**
|
|
7357
|
+
* Computes Eades et al. (2017) unweighted shape-based Relative Neighborhood Graph preservation (`S_RNG`).
|
|
7358
|
+
*/
|
|
7359
|
+
export function _relativeNeighborhoodPreservation2d(graph: Graph, layout: Layout2d, proximity_num_sectors: any): number;
|
|
7360
|
+
|
|
7361
|
+
export function _relativeNeighborhoodPreservation3d(graph: Graph, layout: Layout3d, proximity_num_sectors: any): number;
|
|
7362
|
+
|
|
7363
|
+
export function _relativeNeighborhoodPreservationManifold(graph: Graph, layout: ManifoldLayout2d, proximity_num_sectors: any): number;
|
|
7364
|
+
|
|
7365
|
+
export function _relativeNeighborhoodPreservationNd(graph: Graph, layout: LayoutNd, proximity_num_sectors: any): number;
|
|
7366
|
+
|
|
6993
7367
|
/**
|
|
6994
7368
|
* Estimates 1-hop neighborhood preservation (`NP1`) via vertex sampling (`options?: { numSamples?, seed? }`).
|
|
6995
7369
|
*/
|
|
@@ -7190,13 +7564,20 @@ export function aspectRatio(layout: Layout2d): number;
|
|
|
7190
7564
|
*/
|
|
7191
7565
|
export function assignLayers(graph: Graph, methodOrOptions?: LayeringMethod | { method?: LayeringMethod | null } | null): Uint32Array;
|
|
7192
7566
|
|
|
7567
|
+
/**
|
|
7568
|
+
* Appends one root-level compound parent node per distinct cluster ID in `clusterIds`
|
|
7569
|
+
* (in canonical first-appearance order) and returns `{ graph, parents }`.
|
|
7570
|
+
*/
|
|
7571
|
+
export function augmentGraphWithClusterParents(graph: Graph, clusterIds: Uint32Array | number[]): AugmentedClusterGraphResult;
|
|
7572
|
+
|
|
7193
7573
|
/**
|
|
7194
7574
|
* Runs single-source unweighted BFS from `source`, scaling each hop by `unitEdgeLength` (default `1.0`).
|
|
7195
7575
|
*/
|
|
7196
7576
|
export function bfsSingleSource(graph: Graph, source: number, unit_edge_length?: number | null): Float64Array;
|
|
7197
7577
|
|
|
7198
7578
|
/**
|
|
7199
|
-
* Builds a
|
|
7579
|
+
* Builds a capped 1+2-hop CSR `KnnGraph` with `{1.0, 2.0}` distances and degree statistics
|
|
7580
|
+
* using `TwoHopSamplingMode::TwoStepRandomWalk` (`maxBridgeDegree = None`).
|
|
7200
7581
|
*/
|
|
7201
7582
|
export function buildCapped12hopKnn(graph: Graph, max2hopPerNode?: number | null, seed?: number | bigint | null): TwoHopKnnResult;
|
|
7202
7583
|
|
|
@@ -7455,12 +7836,14 @@ export function extract1hopTetherWeights(graph: Graph, probs: SparseProbabilitie
|
|
|
7455
7836
|
export function extractQuadrilateralBackbone(graph: Graph, options?: BackboneOptions | null): BackboneResult;
|
|
7456
7837
|
|
|
7457
7838
|
/**
|
|
7458
|
-
* Extracts canonical undirected 1-hop and
|
|
7839
|
+
* Extracts canonical undirected 1-hop and capped 2-hop vertex pair arrays `Sparse12HopPairs`
|
|
7840
|
+
* using `TwoHopSamplingMode::TwoStepRandomWalk` (`maxBridgeDegree = None`).
|
|
7459
7841
|
*/
|
|
7460
7842
|
export function extractSparse1hop2hopPairs(graph: Graph, max2hopPerNode?: number | null, seed?: number | bigint | null): Sparse12HopPairs;
|
|
7461
7843
|
|
|
7462
7844
|
/**
|
|
7463
|
-
* Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode`
|
|
7845
|
+
* Extracts canonical 1-hop and 2-hop pairs using an explicit `TwoHopSamplingMode`
|
|
7846
|
+
* (default `TwoStepRandomWalk`) and optional `maxBridgeDegree`.
|
|
7464
7847
|
*/
|
|
7465
7848
|
export function extractSparse1hop2hopPairsWithMode(graph: Graph, options?: TwoHopModeOptions | null): Sparse12HopPairs;
|
|
7466
7849
|
|
|
@@ -7936,6 +8319,7 @@ export interface InitOutput {
|
|
|
7936
8319
|
readonly __wbg_coarsebackboneresult_free: (a: number, b: number) => void;
|
|
7937
8320
|
readonly __wbg_coarsenedgraphresult_free: (a: number, b: number) => void;
|
|
7938
8321
|
readonly __wbg_coarsenedhierarchyresult_free: (a: number, b: number) => void;
|
|
8322
|
+
readonly __wbg_cosesolver_free: (a: number, b: number) => void;
|
|
7939
8323
|
readonly __wbg_crossingpair_free: (a: number, b: number) => void;
|
|
7940
8324
|
readonly __wbg_crossingsummary_free: (a: number, b: number) => void;
|
|
7941
8325
|
readonly __wbg_csrmatrix_free: (a: number, b: number) => void;
|
|
@@ -7949,6 +8333,8 @@ export interface InitOutput {
|
|
|
7949
8333
|
readonly __wbg_edgepolylines_free: (a: number, b: number) => void;
|
|
7950
8334
|
readonly __wbg_effectiveresistanceresult_free: (a: number, b: number) => void;
|
|
7951
8335
|
readonly __wbg_eigenresult_free: (a: number, b: number) => void;
|
|
8336
|
+
readonly __wbg_fcosedraftgenerator_free: (a: number, b: number) => void;
|
|
8337
|
+
readonly __wbg_fcosesolver_free: (a: number, b: number) => void;
|
|
7952
8338
|
readonly __wbg_fdebsolver_free: (a: number, b: number) => void;
|
|
7953
8339
|
readonly __wbg_fieldfftstats_free: (a: number, b: number) => void;
|
|
7954
8340
|
readonly __wbg_fieldrepulsionkernel_free: (a: number, b: number) => void;
|
|
@@ -8049,10 +8435,38 @@ export interface InitOutput {
|
|
|
8049
8435
|
readonly _daviesBouldinScore3d: (a: number, b: number, c: any) => void;
|
|
8050
8436
|
readonly _daviesBouldinScoreManifold: (a: number, b: number, c: any) => void;
|
|
8051
8437
|
readonly _daviesBouldinScoreNd: (a: number, b: number, c: any) => void;
|
|
8052
|
-
readonly
|
|
8053
|
-
readonly
|
|
8054
|
-
readonly
|
|
8055
|
-
readonly
|
|
8438
|
+
readonly _degreeConstrainedGabrielGraphEdges2d: (a: number, b: number, c: number, d: any) => void;
|
|
8439
|
+
readonly _degreeConstrainedGabrielGraphEdges3d: (a: number, b: number, c: number, d: any) => void;
|
|
8440
|
+
readonly _degreeConstrainedGabrielGraphEdgesManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8441
|
+
readonly _degreeConstrainedGabrielGraphEdgesNd: (a: number, b: number, c: number, d: any) => void;
|
|
8442
|
+
readonly _degreeConstrainedGabrielGraphPreservation2d: (a: number, b: number, c: number, d: any) => void;
|
|
8443
|
+
readonly _degreeConstrainedGabrielGraphPreservation3d: (a: number, b: number, c: number, d: any) => void;
|
|
8444
|
+
readonly _degreeConstrainedGabrielGraphPreservationManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8445
|
+
readonly _degreeConstrainedGabrielGraphPreservationNd: (a: number, b: number, c: number, d: any) => void;
|
|
8446
|
+
readonly _degreeConstrainedRelativeNeighborhoodEdges2d: (a: number, b: number, c: number, d: any) => void;
|
|
8447
|
+
readonly _degreeConstrainedRelativeNeighborhoodEdges3d: (a: number, b: number, c: number, d: any) => void;
|
|
8448
|
+
readonly _degreeConstrainedRelativeNeighborhoodEdgesManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8449
|
+
readonly _degreeConstrainedRelativeNeighborhoodEdgesNd: (a: number, b: number, c: number, d: any) => void;
|
|
8450
|
+
readonly _degreeConstrainedRelativeNeighborhoodPreservation2d: (a: number, b: number, c: number, d: any) => void;
|
|
8451
|
+
readonly _degreeConstrainedRelativeNeighborhoodPreservation3d: (a: number, b: number, c: number, d: any) => void;
|
|
8452
|
+
readonly _degreeConstrainedRelativeNeighborhoodPreservationManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8453
|
+
readonly _degreeConstrainedRelativeNeighborhoodPreservationNd: (a: number, b: number, c: number, d: any) => void;
|
|
8454
|
+
readonly _degreeGabrielGraphEdges2d: (a: number, b: number, c: number, d: any) => void;
|
|
8455
|
+
readonly _degreeGabrielGraphEdges3d: (a: number, b: number, c: number, d: any) => void;
|
|
8456
|
+
readonly _degreeGabrielGraphEdgesManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8457
|
+
readonly _degreeGabrielGraphEdgesNd: (a: number, b: number, c: number, d: any) => void;
|
|
8458
|
+
readonly _degreeGabrielGraphPreservation2d: (a: number, b: number, c: number, d: any) => void;
|
|
8459
|
+
readonly _degreeGabrielGraphPreservation3d: (a: number, b: number, c: number, d: any) => void;
|
|
8460
|
+
readonly _degreeGabrielGraphPreservationManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8461
|
+
readonly _degreeGabrielGraphPreservationNd: (a: number, b: number, c: number, d: any) => void;
|
|
8462
|
+
readonly _degreeRelativeNeighborhoodEdges2d: (a: number, b: number, c: number, d: any) => void;
|
|
8463
|
+
readonly _degreeRelativeNeighborhoodEdges3d: (a: number, b: number, c: number, d: any) => void;
|
|
8464
|
+
readonly _degreeRelativeNeighborhoodEdgesManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8465
|
+
readonly _degreeRelativeNeighborhoodEdgesNd: (a: number, b: number, c: number, d: any) => void;
|
|
8466
|
+
readonly _degreeRelativeNeighborhoodPreservation2d: (a: number, b: number, c: number, d: any) => void;
|
|
8467
|
+
readonly _degreeRelativeNeighborhoodPreservation3d: (a: number, b: number, c: number, d: any) => void;
|
|
8468
|
+
readonly _degreeRelativeNeighborhoodPreservationManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8469
|
+
readonly _degreeRelativeNeighborhoodPreservationNd: (a: number, b: number, c: number, d: any) => void;
|
|
8056
8470
|
readonly _distanceConsistency2d: (a: number, b: number, c: any) => void;
|
|
8057
8471
|
readonly _distanceConsistency3d: (a: number, b: number, c: any) => void;
|
|
8058
8472
|
readonly _distanceConsistencyManifold: (a: number, b: number, c: any) => void;
|
|
@@ -8061,10 +8475,6 @@ export interface InitOutput {
|
|
|
8061
8475
|
readonly _distributionConsistency3d: (a: number, b: number, c: any, d: any) => void;
|
|
8062
8476
|
readonly _distributionConsistencyManifold: (a: number, b: number, c: any, d: any) => void;
|
|
8063
8477
|
readonly _distributionConsistencyNd: (a: number, b: number, c: any, d: any) => void;
|
|
8064
|
-
readonly _drngPreservation2d: (a: number, b: number, c: number) => void;
|
|
8065
|
-
readonly _drngPreservation3d: (a: number, b: number, c: number) => void;
|
|
8066
|
-
readonly _drngPreservationManifold: (a: number, b: number, c: number) => void;
|
|
8067
|
-
readonly _drngPreservationNd: (a: number, b: number, c: number) => void;
|
|
8068
8478
|
readonly _evaluateMetrics2d: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
8069
8479
|
readonly _evaluateMetrics2dWithOriginal: (a: number, b: number, c: number, d: any, e: any, f: number) => void;
|
|
8070
8480
|
readonly _evaluateMetrics3d: (a: number, b: number, c: number, d: any, e: any) => void;
|
|
@@ -8074,6 +8484,10 @@ export interface InitOutput {
|
|
|
8074
8484
|
readonly _gabrielGraphEdges3d: (a: number, b: number) => void;
|
|
8075
8485
|
readonly _gabrielGraphEdgesManifold: (a: number, b: number) => void;
|
|
8076
8486
|
readonly _gabrielGraphEdgesNd: (a: number, b: number) => void;
|
|
8487
|
+
readonly _gabrielGraphPreservation2d: (a: number, b: number, c: number, d: any) => void;
|
|
8488
|
+
readonly _gabrielGraphPreservation3d: (a: number, b: number, c: number, d: any) => void;
|
|
8489
|
+
readonly _gabrielGraphPreservationManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8490
|
+
readonly _gabrielGraphPreservationNd: (a: number, b: number, c: number, d: any) => void;
|
|
8077
8491
|
readonly _gabrielGraphProperty2d: (a: number, b: number, c: number) => void;
|
|
8078
8492
|
readonly _gabrielGraphProperty3d: (a: number, b: number, c: number) => void;
|
|
8079
8493
|
readonly _gabrielGraphPropertyManifold: (a: number, b: number, c: number) => void;
|
|
@@ -8126,6 +8540,10 @@ export interface InitOutput {
|
|
|
8126
8540
|
readonly _relativeNeighborhoodEdges3d: (a: number, b: number) => void;
|
|
8127
8541
|
readonly _relativeNeighborhoodEdgesManifold: (a: number, b: number) => void;
|
|
8128
8542
|
readonly _relativeNeighborhoodEdgesNd: (a: number, b: number) => void;
|
|
8543
|
+
readonly _relativeNeighborhoodPreservation2d: (a: number, b: number, c: number, d: any) => void;
|
|
8544
|
+
readonly _relativeNeighborhoodPreservation3d: (a: number, b: number, c: number, d: any) => void;
|
|
8545
|
+
readonly _relativeNeighborhoodPreservationManifold: (a: number, b: number, c: number, d: any) => void;
|
|
8546
|
+
readonly _relativeNeighborhoodPreservationNd: (a: number, b: number, c: number, d: any) => void;
|
|
8129
8547
|
readonly _sampledNp12d: (a: number, b: number, c: number, d: any) => void;
|
|
8130
8548
|
readonly _sampledNp13d: (a: number, b: number, c: number, d: any) => void;
|
|
8131
8549
|
readonly _sampledNp1Manifold: (a: number, b: number, c: number, d: any) => void;
|
|
@@ -8263,6 +8681,7 @@ export interface InitOutput {
|
|
|
8263
8681
|
readonly arenaoctree3d_traversalStackCap: (a: number) => number;
|
|
8264
8682
|
readonly aspectRatio: (a: number, b: number) => void;
|
|
8265
8683
|
readonly assignLayers: (a: number, b: number, c: any) => void;
|
|
8684
|
+
readonly augmentGraphWithClusterParents: (a: number, b: number, c: any) => void;
|
|
8266
8685
|
readonly backboneresult_backboneCsr: (a: number) => number;
|
|
8267
8686
|
readonly backboneresult_backboneEdges: (a: number, b: number) => void;
|
|
8268
8687
|
readonly backboneresult_edgeWeights: (a: number, b: number) => void;
|
|
@@ -8407,6 +8826,16 @@ export interface InitOutput {
|
|
|
8407
8826
|
readonly computeRegularizedDogVaradhanLandmarks: (a: number, b: number, c: any) => void;
|
|
8408
8827
|
readonly computeRegularizedDogVaradhanLandmarksFromMatrix: (a: number, b: number, c: number, d: any) => void;
|
|
8409
8828
|
readonly computeResistanceEmbedding: (a: number, b: number, c: any) => void;
|
|
8829
|
+
readonly cosesolver_compoundBounds: (a: number, b: number) => void;
|
|
8830
|
+
readonly cosesolver_isFinished: (a: number) => number;
|
|
8831
|
+
readonly cosesolver_iteration: (a: number) => number;
|
|
8832
|
+
readonly cosesolver_new: (a: number, b: number, c: any) => void;
|
|
8833
|
+
readonly cosesolver_numNodes: (a: number) => number;
|
|
8834
|
+
readonly cosesolver_run: (a: number, b: number, c: number) => void;
|
|
8835
|
+
readonly cosesolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
8836
|
+
readonly cosesolver_status: (a: number) => number;
|
|
8837
|
+
readonly cosesolver_step: (a: number, b: number, c: number) => void;
|
|
8838
|
+
readonly cosesolver_totalIterations: (a: number) => number;
|
|
8410
8839
|
readonly crossingEdges: (a: number, b: number, c: number) => void;
|
|
8411
8840
|
readonly crossingEdgesHyperbolic: (a: number, b: number, c: number) => void;
|
|
8412
8841
|
readonly crossingEdgesSpherical: (a: number, b: number, c: number) => void;
|
|
@@ -8570,6 +8999,20 @@ export interface InitOutput {
|
|
|
8570
8999
|
readonly extractQuadrilateralBackbone: (a: number, b: number, c: any) => void;
|
|
8571
9000
|
readonly extractSparse1hop2hopPairs: (a: number, b: number, c: number, d: number, e: any) => void;
|
|
8572
9001
|
readonly extractSparse1hop2hopPairsWithMode: (a: number, b: number, c: any) => void;
|
|
9002
|
+
readonly fcosedraftgenerator_compoundBounds: (a: number, b: number) => void;
|
|
9003
|
+
readonly fcosedraftgenerator_generate: (a: number, b: number) => void;
|
|
9004
|
+
readonly fcosedraftgenerator_new: (a: number, b: number, c: any) => void;
|
|
9005
|
+
readonly fcosedraftgenerator_numNodes: (a: number) => number;
|
|
9006
|
+
readonly fcosesolver_compoundBounds: (a: number, b: number) => void;
|
|
9007
|
+
readonly fcosesolver_isFinished: (a: number) => number;
|
|
9008
|
+
readonly fcosesolver_iteration: (a: number) => number;
|
|
9009
|
+
readonly fcosesolver_new: (a: number, b: number, c: any) => void;
|
|
9010
|
+
readonly fcosesolver_numNodes: (a: number) => number;
|
|
9011
|
+
readonly fcosesolver_run: (a: number, b: number, c: number) => void;
|
|
9012
|
+
readonly fcosesolver_runSteps: (a: number, b: number, c: number, d: number) => void;
|
|
9013
|
+
readonly fcosesolver_status: (a: number) => number;
|
|
9014
|
+
readonly fcosesolver_step: (a: number, b: number, c: number) => void;
|
|
9015
|
+
readonly fcosesolver_totalIterations: (a: number) => number;
|
|
8573
9016
|
readonly fdebsolver_currentCycle: (a: number) => number;
|
|
8574
9017
|
readonly fdebsolver_dims: (a: number) => number;
|
|
8575
9018
|
readonly fdebsolver_isFinished: (a: number) => number;
|
|
@@ -9083,6 +9526,7 @@ export interface InitOutput {
|
|
|
9083
9526
|
readonly metricreport_calinskiHarabaszScore: (a: number, b: number) => void;
|
|
9084
9527
|
readonly metricreport_classDensityMeasure: (a: number, b: number) => void;
|
|
9085
9528
|
readonly metricreport_clusterAreaFaithfulness: (a: number, b: number) => void;
|
|
9529
|
+
readonly metricreport_clusterAreaReport: (a: number) => number;
|
|
9086
9530
|
readonly metricreport_cqHacAmi: (a: number, b: number) => void;
|
|
9087
9531
|
readonly metricreport_cqHacHom: (a: number, b: number) => void;
|
|
9088
9532
|
readonly metricreport_cqKmeansAmi: (a: number, b: number) => void;
|
|
@@ -9093,6 +9537,10 @@ export interface InitOutput {
|
|
|
9093
9537
|
readonly metricreport_crossingNumber: (a: number) => number;
|
|
9094
9538
|
readonly metricreport_crosslessness: (a: number, b: number) => void;
|
|
9095
9539
|
readonly metricreport_daviesBouldinScore: (a: number, b: number) => void;
|
|
9540
|
+
readonly metricreport_degreeConstrainedGabrielGraphPreservation: (a: number, b: number) => void;
|
|
9541
|
+
readonly metricreport_degreeConstrainedRelativeNeighborhoodPreservation: (a: number, b: number) => void;
|
|
9542
|
+
readonly metricreport_degreeGabrielGraphPreservation: (a: number, b: number) => void;
|
|
9543
|
+
readonly metricreport_degreeRelativeNeighborhoodPreservation: (a: number, b: number) => void;
|
|
9096
9544
|
readonly metricreport_distanceConsistency: (a: number, b: number) => void;
|
|
9097
9545
|
readonly metricreport_distributionConsistency: (a: number, b: number) => void;
|
|
9098
9546
|
readonly metricreport_gabrielGraphPreservation: (a: number, b: number) => void;
|
|
@@ -9102,6 +9550,7 @@ export interface InitOutput {
|
|
|
9102
9550
|
readonly metricreport_idealEdgeLengths: (a: number, b: number) => void;
|
|
9103
9551
|
readonly metricreport_landmarkStratifiedRta: (a: number, b: number) => void;
|
|
9104
9552
|
readonly metricreport_layoutDegeneracy: (a: number, b: number) => void;
|
|
9553
|
+
readonly metricreport_layoutDegeneracyDetail: (a: number) => number;
|
|
9105
9554
|
readonly metricreport_minimumAngle: (a: number, b: number) => void;
|
|
9106
9555
|
readonly metricreport_minimumAngleA1: (a: number, b: number) => void;
|
|
9107
9556
|
readonly metricreport_neighborhoodHit: (a: number, b: number) => void;
|
|
@@ -9633,6 +10082,7 @@ export interface InitOutput {
|
|
|
9633
10082
|
readonly tsnetsolver__stepManifold: (a: number, b: number, c: number) => void;
|
|
9634
10083
|
readonly tsnetsolver__stepNd: (a: number, b: number, c: number) => void;
|
|
9635
10084
|
readonly tsnetsolver_backend: (a: number) => number;
|
|
10085
|
+
readonly tsnetsolver_currentEffectiveLr: (a: number) => number;
|
|
9636
10086
|
readonly tsnetsolver_currentStageLr: (a: number) => number;
|
|
9637
10087
|
readonly tsnetsolver_fromGraphPartialBfs: (a: number, b: number, c: any) => void;
|
|
9638
10088
|
readonly tsnetsolver_fromGraphRowNormalized: (a: number, b: number, c: any) => void;
|
|
@@ -9640,13 +10090,16 @@ export interface InitOutput {
|
|
|
9640
10090
|
readonly tsnetsolver_fromKnn: (a: number, b: number, c: any) => void;
|
|
9641
10091
|
readonly tsnetsolver_fromProbabilities: (a: number, b: number, c: any) => void;
|
|
9642
10092
|
readonly tsnetsolver_fromProbabilitiesWithStages: (a: number, b: number, c: any, d: any) => void;
|
|
10093
|
+
readonly tsnetsolver_graphTsne: (a: number, b: number, c: any) => void;
|
|
9643
10094
|
readonly tsnetsolver_isFinished: (a: number) => number;
|
|
9644
10095
|
readonly tsnetsolver_iteration: (a: number) => number;
|
|
10096
|
+
readonly tsnetsolver_lTsnet: (a: number, b: number, c: any) => void;
|
|
9645
10097
|
readonly tsnetsolver_lastFftStats: (a: number) => number;
|
|
9646
10098
|
readonly tsnetsolver_new: (a: number, b: number, c: any) => void;
|
|
9647
10099
|
readonly tsnetsolver_numNodes: (a: number) => number;
|
|
9648
10100
|
readonly tsnetsolver_pure2Hop: (a: number, b: number, c: any) => void;
|
|
9649
10101
|
readonly tsnetsolver_resolvedBackend: (a: number) => number;
|
|
10102
|
+
readonly tsnetsolver_rnTsnet: (a: number, b: number, c: any) => void;
|
|
9650
10103
|
readonly tsnetsolver_samplingMode: (a: number) => number;
|
|
9651
10104
|
readonly tsnetsolver_stageIndex: (a: number) => number;
|
|
9652
10105
|
readonly tsnetsolver_status: (a: number) => number;
|
|
@@ -9758,8 +10211,16 @@ export function sampledNp1(graph: Graph, layout: AnyLayout, options?: SamplingSe
|
|
|
9758
10211
|
export function sampledNp2(graph: Graph, layout: AnyLayout, options?: SamplingSeedOptions | null): number;
|
|
9759
10212
|
export function gabrielGraphProperty(graph: Graph, layout: AnyLayout): number;
|
|
9760
10213
|
export function nodeResolution(layout: AnyLayout): number;
|
|
9761
|
-
export function
|
|
9762
|
-
export function
|
|
10214
|
+
export function relativeNeighborhoodPreservation(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): number;
|
|
10215
|
+
export function gabrielGraphPreservation(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): number;
|
|
10216
|
+
export function degreeGabrielGraphPreservation(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): number;
|
|
10217
|
+
export function degreeGabrielGraphEdges(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): Uint32Array;
|
|
10218
|
+
export function degreeRelativeNeighborhoodPreservation(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): number;
|
|
10219
|
+
export function degreeRelativeNeighborhoodEdges(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): Uint32Array;
|
|
10220
|
+
export function degreeConstrainedGabrielGraphPreservation(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): number;
|
|
10221
|
+
export function degreeConstrainedGabrielGraphEdges(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): Uint32Array;
|
|
10222
|
+
export function degreeConstrainedRelativeNeighborhoodPreservation(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): number;
|
|
10223
|
+
export function degreeConstrainedRelativeNeighborhoodEdges(graph: Graph, layout: AnyLayout, proximityNumSectors?: number | { proximityNumSectors?: number | null } | null): Uint32Array;
|
|
9763
10224
|
export function idealEdgeLengths(graph: Graph, layout: AnyLayout): number;
|
|
9764
10225
|
export function idealEdgeLengthsWithUnit(graph: Graph, layout: AnyLayout, unitEdgeLength: number): number;
|
|
9765
10226
|
export function layoutDegeneracy(graph: Graph, layout: AnyLayout): LayoutDegeneracy;
|