egraph 6.0.0-beta.3 → 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 +78 -84
- package/package.json +1 -1
- package/pkg/README.md +78 -84
- package/pkg/egraph_wasm.d.ts +1501 -825
- package/pkg/egraph_wasm.js +3782 -5160
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +1980 -1160
- package/pkg/index.js +124 -6
package/pkg/index.js
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
1
|
/* @ts-self-types="./index.d.ts" */
|
|
2
2
|
import init, {
|
|
3
3
|
AdjustedPatchNigDetail,
|
|
4
|
+
AmgLaplacianKind,
|
|
4
5
|
AmgPcgBatchResult,
|
|
5
6
|
AmgPcgSolveResult,
|
|
6
7
|
AmgPcgSolver,
|
|
7
8
|
AnisotropicLaplacianResult,
|
|
8
9
|
ArenaOctree3d as _ArenaOctree3d,
|
|
10
|
+
BackboneLayoutMode,
|
|
9
11
|
BackboneResult,
|
|
10
12
|
BackboneSolver,
|
|
13
|
+
BarrierSymmetry,
|
|
11
14
|
ChebyshevDogKernel,
|
|
12
15
|
ClassDensityResult,
|
|
13
16
|
ClassicalMds,
|
|
14
17
|
ClusterAreaReport,
|
|
18
|
+
ClusterRefineMethod,
|
|
15
19
|
ClusterRefineSolver,
|
|
16
20
|
CoarseBackbone,
|
|
17
21
|
CoarseBackboneResult,
|
|
22
|
+
CoarseDistanceBackend,
|
|
23
|
+
CoarseEdgeLengthMode,
|
|
18
24
|
CoarsenedGraphResult,
|
|
19
25
|
CoarsenedHierarchyResult,
|
|
20
26
|
CrossingPair,
|
|
21
27
|
CrossingSummary,
|
|
22
|
-
CsrGraph,
|
|
23
28
|
CsrMatrix,
|
|
24
29
|
DatasetInfo,
|
|
25
30
|
DelaunayResult,
|
|
31
|
+
DensityFieldKernel,
|
|
26
32
|
DijkstraWorkspace,
|
|
27
33
|
DogStats,
|
|
28
34
|
DogVaradhanLandmarks,
|
|
@@ -32,43 +38,65 @@ import init, {
|
|
|
32
38
|
EffectiveResistanceResult,
|
|
33
39
|
EigenResult,
|
|
34
40
|
FdebSolver,
|
|
41
|
+
FieldRepulsionBackend,
|
|
42
|
+
FieldRepulsionKernel,
|
|
35
43
|
FitFieldStats,
|
|
36
44
|
ForbidOverlapRemoval,
|
|
45
|
+
ForbidVariant,
|
|
37
46
|
ForceAtlas2Solver as _ForceAtlas2Solver,
|
|
47
|
+
ForceBackend,
|
|
48
|
+
FrBackend,
|
|
38
49
|
FruchtermanReingoldSolver as _FruchtermanReingoldSolver,
|
|
39
50
|
GTreeOverlapRemoval,
|
|
40
51
|
GemSolver,
|
|
52
|
+
GibBoxLayoutMode,
|
|
53
|
+
GibIntraLayoutMode,
|
|
54
|
+
Graph,
|
|
55
|
+
GraphCneObjective,
|
|
41
56
|
GraphCneSolver as _GraphCneSolver,
|
|
42
57
|
GripSolver,
|
|
43
58
|
GroupInABoxSolver,
|
|
44
59
|
GuMapSolver as _GuMapSolver,
|
|
45
60
|
Hde,
|
|
46
61
|
HybridKnnResult,
|
|
62
|
+
IbUmapHubDamping,
|
|
47
63
|
IbUmapSolver,
|
|
64
|
+
InterpolationOrder,
|
|
48
65
|
KMeansResult as _KMeansResult,
|
|
49
66
|
KamadaKawaiSolver as _KamadaKawaiSolver,
|
|
50
67
|
KnnGraph,
|
|
51
68
|
KorenSpectral,
|
|
52
69
|
LabelPropagationResult as _LabelPropagationResult,
|
|
70
|
+
LaplacianKind,
|
|
53
71
|
LargeVisSolver as _LargeVisSolver,
|
|
54
72
|
LargestConnectedComponentResult,
|
|
73
|
+
LayeringMethod,
|
|
55
74
|
Layout2d as _Layout2d,
|
|
56
75
|
Layout3d as _Layout3d,
|
|
76
|
+
LayoutAxis,
|
|
57
77
|
LayoutDegeneracy,
|
|
58
78
|
LayoutNd as _LayoutNd,
|
|
79
|
+
LeidenObjective,
|
|
59
80
|
LeidenResult as _LeidenResult,
|
|
81
|
+
LinLogRepulsion,
|
|
60
82
|
LinLogSolver as _LinLogSolver,
|
|
61
83
|
LouvainResult as _LouvainResult,
|
|
84
|
+
ManifoldKind,
|
|
62
85
|
ManifoldLayout2d as _ManifoldLayout2d,
|
|
63
86
|
MaxentStressSolver as _MaxentStressSolver,
|
|
87
|
+
MetricAnchorWeighting,
|
|
64
88
|
MetricReport,
|
|
89
|
+
MetricTarget,
|
|
65
90
|
MinimumAngleSummary,
|
|
66
91
|
NorMetricsResult,
|
|
92
|
+
OrtmannPivotStrategy,
|
|
67
93
|
PacmapBackboneResult,
|
|
68
94
|
PacmapGraphSolver as _PacmapGraphSolver,
|
|
69
95
|
PartitionAgreementResult,
|
|
70
96
|
PfsPrimeOverlapRemoval,
|
|
71
|
-
PivotMds,
|
|
97
|
+
PivotMds as _PivotMds,
|
|
98
|
+
PivotMdsReport,
|
|
99
|
+
PivotMdsReportResult,
|
|
72
100
|
PrismDistortion,
|
|
73
101
|
PrismOverlapRemoval,
|
|
74
102
|
RdMds,
|
|
@@ -80,12 +108,17 @@ import init, {
|
|
|
80
108
|
ScreenedPoissonField2d,
|
|
81
109
|
ScreenedPoissonRefiner,
|
|
82
110
|
ScreenedPoissonResult,
|
|
111
|
+
SelLayoutBackend,
|
|
83
112
|
SelLayoutSolver,
|
|
113
|
+
SelWeightMapping,
|
|
84
114
|
SeparationConstraint,
|
|
115
|
+
SfcCurveKind,
|
|
85
116
|
SfcLayout,
|
|
86
117
|
Sgd2Solver as _Sgd2Solver,
|
|
118
|
+
SgdScheduleKind,
|
|
87
119
|
SgdSolver as _SgdSolver,
|
|
88
120
|
SnapTFdpSolver as _SnapTFdpSolver,
|
|
121
|
+
SolverStatus,
|
|
89
122
|
Sparse12HopPairs,
|
|
90
123
|
SparseBarrierStats,
|
|
91
124
|
SparseProbabilities,
|
|
@@ -96,14 +129,21 @@ import init, {
|
|
|
96
129
|
SpectralEmbeddingResult,
|
|
97
130
|
SpectralMomentStats,
|
|
98
131
|
StressEvaluation,
|
|
132
|
+
StressMajorizationBackend,
|
|
99
133
|
StressMajorizationSolver as _StressMajorizationSolver,
|
|
134
|
+
SuggestedGeometry,
|
|
100
135
|
TFdpSolver as _TFdpSolver,
|
|
136
|
+
TargetKind,
|
|
101
137
|
TorusCrossing,
|
|
138
|
+
TsNetBackend,
|
|
102
139
|
TsNetSolver as _TsNetSolver,
|
|
103
140
|
TsNetStage,
|
|
104
141
|
TwinDeclutterer,
|
|
105
142
|
TwoHopCsr,
|
|
106
143
|
TwoHopKnnResult,
|
|
144
|
+
TwoHopSamplingMode,
|
|
145
|
+
UnifiedMetricAnchor,
|
|
146
|
+
WeightDtype,
|
|
107
147
|
YifanHuSolver as _YifanHuSolver,
|
|
108
148
|
_calinskiHarabaszScore2d,
|
|
109
149
|
_calinskiHarabaszScore3d,
|
|
@@ -310,6 +350,7 @@ import init, {
|
|
|
310
350
|
dijkstraSingleSource,
|
|
311
351
|
edgeAngle,
|
|
312
352
|
extract1hop2hopCsr,
|
|
353
|
+
extract1hopTetherWeights,
|
|
313
354
|
extractQuadrilateralBackbone,
|
|
314
355
|
extractSparse1hop2hopPairs,
|
|
315
356
|
extractSparse1hop2hopPairsWithMode,
|
|
@@ -381,6 +422,7 @@ import init, {
|
|
|
381
422
|
setPanicHook,
|
|
382
423
|
shiftedNormalizedLaplacian,
|
|
383
424
|
smallestLaplacianEigenpairs,
|
|
425
|
+
smallestSymLaplacianEigenpairsAmg,
|
|
384
426
|
spectralClustering,
|
|
385
427
|
spectralMomentStats,
|
|
386
428
|
sphericalCrossingNumber,
|
|
@@ -703,6 +745,41 @@ export const GraphCneSolver = attachSolverDispatch(_GraphCneSolver, allTargetFla
|
|
|
703
745
|
export const SnapTFdpSolver = attachSolverDispatch(_SnapTFdpSolver, allTargetFlags);
|
|
704
746
|
|
|
705
747
|
export const TsNetSolver = attachSolverDispatch(_TsNetSolver, allTargetFlags);
|
|
748
|
+
TsNetSolver.fromProbabilitiesWithConformal = function fromProbabilitiesWithConformal(
|
|
749
|
+
probs,
|
|
750
|
+
stages,
|
|
751
|
+
edgeTether = null,
|
|
752
|
+
metricAnchor = null,
|
|
753
|
+
options = undefined,
|
|
754
|
+
) {
|
|
755
|
+
if (metricAnchor != null) {
|
|
756
|
+
if (!(metricAnchor instanceof UnifiedMetricAnchor)) {
|
|
757
|
+
throw makeDispatchError("InvalidInput", "metricAnchor must be a UnifiedMetricAnchor instance or null");
|
|
758
|
+
}
|
|
759
|
+
return _TsNetSolver._fromProbabilitiesWithConformalWithAnchor(probs, stages, edgeTether, metricAnchor, options);
|
|
760
|
+
}
|
|
761
|
+
return _TsNetSolver._fromProbabilitiesWithConformalNoAnchor(probs, stages, edgeTether, options);
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
export const PivotMds = _PivotMds;
|
|
765
|
+
PivotMds.prototype.generate = function generate(graph) {
|
|
766
|
+
if (graph != null) {
|
|
767
|
+
if (!(graph instanceof Graph)) {
|
|
768
|
+
throw makeDispatchError("InvalidInput", "PivotMds.generate(graph): expected a Graph instance");
|
|
769
|
+
}
|
|
770
|
+
return this._generateGraph(graph);
|
|
771
|
+
}
|
|
772
|
+
return this._generateDist();
|
|
773
|
+
};
|
|
774
|
+
PivotMds.prototype.generateWithReport = function generateWithReport(graph) {
|
|
775
|
+
if (graph != null) {
|
|
776
|
+
if (!(graph instanceof Graph)) {
|
|
777
|
+
throw makeDispatchError("InvalidInput", "PivotMds.generateWithReport(graph): expected a Graph instance");
|
|
778
|
+
}
|
|
779
|
+
return this._generateWithReportGraph(graph);
|
|
780
|
+
}
|
|
781
|
+
return this._generateWithReportDist();
|
|
782
|
+
};
|
|
706
783
|
export const GuMapSolver = attachSolverDispatch(_GuMapSolver, allTargetFlags);
|
|
707
784
|
export const FruchtermanReingoldSolver = attachSolverDispatch(_FruchtermanReingoldSolver, allTargetFlags);
|
|
708
785
|
export const KamadaKawaiSolver = attachSolverDispatch(_KamadaKawaiSolver, allTargetFlags);
|
|
@@ -743,8 +820,8 @@ ArenaOctree3d.prototype.buildWeighted = function buildWeighted(coordsOrLayout, m
|
|
|
743
820
|
|
|
744
821
|
export const DynamicKdTree = new Proxy(_DynamicKdTree, {
|
|
745
822
|
construct(target, args) {
|
|
746
|
-
if (args.length === 1 && args[0] instanceof _LayoutNd) {
|
|
747
|
-
return target.fromLayoutNd(args[0]);
|
|
823
|
+
if ((args.length === 1 || args.length === 2) && args[0] instanceof _LayoutNd) {
|
|
824
|
+
return target.fromLayoutNd(args[0], args[1]);
|
|
748
825
|
}
|
|
749
826
|
return Reflect.construct(target, args);
|
|
750
827
|
},
|
|
@@ -803,53 +880,80 @@ export const pairwiseDistanceOverlapError = dispatchLayout4("pairwiseDistanceOve
|
|
|
803
880
|
|
|
804
881
|
export {
|
|
805
882
|
AdjustedPatchNigDetail,
|
|
883
|
+
AmgLaplacianKind,
|
|
806
884
|
AmgPcgBatchResult,
|
|
807
885
|
AmgPcgSolveResult,
|
|
808
886
|
AmgPcgSolver,
|
|
809
887
|
AnisotropicLaplacianResult,
|
|
888
|
+
BackboneLayoutMode,
|
|
810
889
|
BackboneResult,
|
|
811
890
|
BackboneSolver,
|
|
891
|
+
BarrierSymmetry,
|
|
812
892
|
ChebyshevDogKernel,
|
|
813
893
|
ClassDensityResult,
|
|
814
894
|
ClassicalMds,
|
|
815
895
|
ClusterAreaReport,
|
|
896
|
+
ClusterRefineMethod,
|
|
816
897
|
ClusterRefineSolver,
|
|
817
898
|
CoarseBackbone,
|
|
818
899
|
CoarseBackboneResult,
|
|
900
|
+
CoarseDistanceBackend,
|
|
901
|
+
CoarseEdgeLengthMode,
|
|
819
902
|
CoarsenedGraphResult,
|
|
820
903
|
CoarsenedHierarchyResult,
|
|
821
904
|
CrossingPair,
|
|
822
905
|
CrossingSummary,
|
|
823
|
-
CsrGraph,
|
|
824
906
|
CsrMatrix,
|
|
825
907
|
DatasetInfo,
|
|
826
908
|
DelaunayResult,
|
|
909
|
+
DensityFieldKernel,
|
|
827
910
|
DijkstraWorkspace,
|
|
828
911
|
DogStats,
|
|
829
912
|
DogVaradhanLandmarks,
|
|
830
913
|
EffectiveResistanceResult,
|
|
831
914
|
EigenResult,
|
|
832
915
|
FdebSolver,
|
|
916
|
+
FieldRepulsionBackend,
|
|
917
|
+
FieldRepulsionKernel,
|
|
833
918
|
FitFieldStats,
|
|
834
919
|
ForbidOverlapRemoval,
|
|
920
|
+
ForbidVariant,
|
|
921
|
+
ForceBackend,
|
|
922
|
+
FrBackend,
|
|
835
923
|
GTreeOverlapRemoval,
|
|
836
924
|
GemSolver,
|
|
925
|
+
GibBoxLayoutMode,
|
|
926
|
+
GibIntraLayoutMode,
|
|
927
|
+
Graph,
|
|
928
|
+
GraphCneObjective,
|
|
837
929
|
GripSolver,
|
|
838
930
|
GroupInABoxSolver,
|
|
839
931
|
Hde,
|
|
840
932
|
HybridKnnResult,
|
|
933
|
+
IbUmapHubDamping,
|
|
841
934
|
IbUmapSolver,
|
|
935
|
+
InterpolationOrder,
|
|
842
936
|
KnnGraph,
|
|
843
937
|
KorenSpectral,
|
|
938
|
+
LaplacianKind,
|
|
844
939
|
LargestConnectedComponentResult,
|
|
940
|
+
LayeringMethod,
|
|
941
|
+
LayoutAxis,
|
|
845
942
|
LayoutDegeneracy,
|
|
943
|
+
LeidenObjective,
|
|
944
|
+
LinLogRepulsion,
|
|
945
|
+
ManifoldKind,
|
|
946
|
+
MetricAnchorWeighting,
|
|
846
947
|
MetricReport,
|
|
948
|
+
MetricTarget,
|
|
847
949
|
MinimumAngleSummary,
|
|
848
950
|
NorMetricsResult,
|
|
951
|
+
OrtmannPivotStrategy,
|
|
849
952
|
PacmapBackboneResult,
|
|
850
953
|
PartitionAgreementResult,
|
|
851
954
|
PfsPrimeOverlapRemoval,
|
|
852
|
-
|
|
955
|
+
PivotMdsReport,
|
|
956
|
+
PivotMdsReportResult,
|
|
853
957
|
PrismDistortion,
|
|
854
958
|
PrismOverlapRemoval,
|
|
855
959
|
RdMds,
|
|
@@ -861,9 +965,14 @@ export {
|
|
|
861
965
|
ScreenedPoissonField2d,
|
|
862
966
|
ScreenedPoissonRefiner,
|
|
863
967
|
ScreenedPoissonResult,
|
|
968
|
+
SelLayoutBackend,
|
|
864
969
|
SelLayoutSolver,
|
|
970
|
+
SelWeightMapping,
|
|
865
971
|
SeparationConstraint,
|
|
972
|
+
SfcCurveKind,
|
|
866
973
|
SfcLayout,
|
|
974
|
+
SgdScheduleKind,
|
|
975
|
+
SolverStatus,
|
|
867
976
|
Sparse12HopPairs,
|
|
868
977
|
SparseBarrierStats,
|
|
869
978
|
SparseProbabilities,
|
|
@@ -873,11 +982,18 @@ export {
|
|
|
873
982
|
SpectralEmbeddingResult,
|
|
874
983
|
SpectralMomentStats,
|
|
875
984
|
StressEvaluation,
|
|
985
|
+
StressMajorizationBackend,
|
|
986
|
+
SuggestedGeometry,
|
|
987
|
+
TargetKind,
|
|
876
988
|
TorusCrossing,
|
|
989
|
+
TsNetBackend,
|
|
877
990
|
TsNetStage,
|
|
878
991
|
TwinDeclutterer,
|
|
879
992
|
TwoHopCsr,
|
|
880
993
|
TwoHopKnnResult,
|
|
994
|
+
TwoHopSamplingMode,
|
|
995
|
+
UnifiedMetricAnchor,
|
|
996
|
+
WeightDtype,
|
|
881
997
|
adaptiveChebyshevDegree,
|
|
882
998
|
adaptiveChebyshevDegreeScaled,
|
|
883
999
|
adjustedPatchNig,
|
|
@@ -940,6 +1056,7 @@ export {
|
|
|
940
1056
|
dijkstraSingleSource,
|
|
941
1057
|
edgeAngle,
|
|
942
1058
|
extract1hop2hopCsr,
|
|
1059
|
+
extract1hopTetherWeights,
|
|
943
1060
|
extractQuadrilateralBackbone,
|
|
944
1061
|
extractSparse1hop2hopPairs,
|
|
945
1062
|
extractSparse1hop2hopPairsWithMode,
|
|
@@ -1011,6 +1128,7 @@ export {
|
|
|
1011
1128
|
setPanicHook,
|
|
1012
1129
|
shiftedNormalizedLaplacian,
|
|
1013
1130
|
smallestLaplacianEigenpairs,
|
|
1131
|
+
smallestSymLaplacianEigenpairsAmg,
|
|
1014
1132
|
spectralClustering,
|
|
1015
1133
|
spectralMomentStats,
|
|
1016
1134
|
sphericalCrossingNumber,
|