egraph 6.0.0-beta.4 → 6.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -13
- package/package.json +1 -1
- package/pkg/README.md +16 -13
- package/pkg/egraph_wasm.d.ts +792 -412
- package/pkg/egraph_wasm.js +2572 -1197
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +1130 -465
- package/pkg/index.js +69 -8
package/pkg/index.js
CHANGED
|
@@ -25,7 +25,6 @@ import init, {
|
|
|
25
25
|
CoarsenedHierarchyResult,
|
|
26
26
|
CrossingPair,
|
|
27
27
|
CrossingSummary,
|
|
28
|
-
CsrGraph,
|
|
29
28
|
CsrMatrix,
|
|
30
29
|
DatasetInfo,
|
|
31
30
|
DelaunayResult,
|
|
@@ -39,7 +38,9 @@ import init, {
|
|
|
39
38
|
EffectiveResistanceResult,
|
|
40
39
|
EigenResult,
|
|
41
40
|
FdebSolver,
|
|
41
|
+
FieldFftStats,
|
|
42
42
|
FieldRepulsionBackend,
|
|
43
|
+
FieldRepulsionKernel,
|
|
43
44
|
FitFieldStats,
|
|
44
45
|
ForbidOverlapRemoval,
|
|
45
46
|
ForbidVariant,
|
|
@@ -51,6 +52,7 @@ import init, {
|
|
|
51
52
|
GemSolver,
|
|
52
53
|
GibBoxLayoutMode,
|
|
53
54
|
GibIntraLayoutMode,
|
|
55
|
+
Graph,
|
|
54
56
|
GraphCneObjective,
|
|
55
57
|
GraphCneSolver as _GraphCneSolver,
|
|
56
58
|
GripSolver,
|
|
@@ -58,6 +60,7 @@ import init, {
|
|
|
58
60
|
GuMapSolver as _GuMapSolver,
|
|
59
61
|
Hde,
|
|
60
62
|
HybridKnnResult,
|
|
63
|
+
IbUmapHubDamping,
|
|
61
64
|
IbUmapSolver,
|
|
62
65
|
InterpolationOrder,
|
|
63
66
|
KMeansResult as _KMeansResult,
|
|
@@ -82,6 +85,7 @@ import init, {
|
|
|
82
85
|
ManifoldKind,
|
|
83
86
|
ManifoldLayout2d as _ManifoldLayout2d,
|
|
84
87
|
MaxentStressSolver as _MaxentStressSolver,
|
|
88
|
+
MetricAnchorWeighting,
|
|
85
89
|
MetricReport,
|
|
86
90
|
MetricTarget,
|
|
87
91
|
MinimumAngleSummary,
|
|
@@ -91,10 +95,12 @@ import init, {
|
|
|
91
95
|
PacmapGraphSolver as _PacmapGraphSolver,
|
|
92
96
|
PartitionAgreementResult,
|
|
93
97
|
PfsPrimeOverlapRemoval,
|
|
94
|
-
PivotMds,
|
|
98
|
+
PivotMds as _PivotMds,
|
|
99
|
+
PivotMdsReport,
|
|
100
|
+
PivotMdsReportResult,
|
|
95
101
|
PrismDistortion,
|
|
96
102
|
PrismOverlapRemoval,
|
|
97
|
-
RdMds,
|
|
103
|
+
RdMds as _RdMds,
|
|
98
104
|
ResistanceCurvatureFlowResult,
|
|
99
105
|
ResistanceCurvatureStep,
|
|
100
106
|
RhghLandmarks,
|
|
@@ -137,6 +143,7 @@ import init, {
|
|
|
137
143
|
TwoHopCsr,
|
|
138
144
|
TwoHopKnnResult,
|
|
139
145
|
TwoHopSamplingMode,
|
|
146
|
+
UnifiedMetricAnchor,
|
|
140
147
|
WeightDtype,
|
|
141
148
|
YifanHuSolver as _YifanHuSolver,
|
|
142
149
|
_calinskiHarabaszScore2d,
|
|
@@ -344,6 +351,7 @@ import init, {
|
|
|
344
351
|
dijkstraSingleSource,
|
|
345
352
|
edgeAngle,
|
|
346
353
|
extract1hop2hopCsr,
|
|
354
|
+
extract1hopTetherWeights,
|
|
347
355
|
extractQuadrilateralBackbone,
|
|
348
356
|
extractSparse1hop2hopPairs,
|
|
349
357
|
extractSparse1hop2hopPairsWithMode,
|
|
@@ -415,6 +423,7 @@ import init, {
|
|
|
415
423
|
setPanicHook,
|
|
416
424
|
shiftedNormalizedLaplacian,
|
|
417
425
|
smallestLaplacianEigenpairs,
|
|
426
|
+
smallestSymLaplacianEigenpairsAmg,
|
|
418
427
|
spectralClustering,
|
|
419
428
|
spectralMomentStats,
|
|
420
429
|
sphericalCrossingNumber,
|
|
@@ -737,6 +746,51 @@ export const GraphCneSolver = attachSolverDispatch(_GraphCneSolver, allTargetFla
|
|
|
737
746
|
export const SnapTFdpSolver = attachSolverDispatch(_SnapTFdpSolver, allTargetFlags);
|
|
738
747
|
|
|
739
748
|
export const TsNetSolver = attachSolverDispatch(_TsNetSolver, allTargetFlags);
|
|
749
|
+
TsNetSolver.fromProbabilitiesWithConformal = function fromProbabilitiesWithConformal(
|
|
750
|
+
probs,
|
|
751
|
+
stages,
|
|
752
|
+
edgeTether = null,
|
|
753
|
+
metricAnchor = null,
|
|
754
|
+
options = undefined,
|
|
755
|
+
) {
|
|
756
|
+
if (metricAnchor != null) {
|
|
757
|
+
if (!(metricAnchor instanceof UnifiedMetricAnchor)) {
|
|
758
|
+
throw makeDispatchError("InvalidInput", "metricAnchor must be a UnifiedMetricAnchor instance or null");
|
|
759
|
+
}
|
|
760
|
+
return _TsNetSolver._fromProbabilitiesWithConformalWithAnchor(probs, stages, edgeTether, metricAnchor, options);
|
|
761
|
+
}
|
|
762
|
+
return _TsNetSolver._fromProbabilitiesWithConformalNoAnchor(probs, stages, edgeTether, options);
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
export const PivotMds = _PivotMds;
|
|
766
|
+
PivotMds.prototype.generate = function generate(graph) {
|
|
767
|
+
if (graph != null) {
|
|
768
|
+
if (!(graph instanceof Graph)) {
|
|
769
|
+
throw makeDispatchError("InvalidInput", "PivotMds.generate(graph): expected a Graph instance");
|
|
770
|
+
}
|
|
771
|
+
return this._generateGraph(graph);
|
|
772
|
+
}
|
|
773
|
+
return this._generateDist();
|
|
774
|
+
};
|
|
775
|
+
PivotMds.prototype.generateWithReport = function generateWithReport(graph) {
|
|
776
|
+
if (graph != null) {
|
|
777
|
+
if (!(graph instanceof Graph)) {
|
|
778
|
+
throw makeDispatchError("InvalidInput", "PivotMds.generateWithReport(graph): expected a Graph instance");
|
|
779
|
+
}
|
|
780
|
+
return this._generateWithReportGraph(graph);
|
|
781
|
+
}
|
|
782
|
+
return this._generateWithReportDist();
|
|
783
|
+
};
|
|
784
|
+
export const RdMds = _RdMds;
|
|
785
|
+
RdMds.prototype.generate = function generate(graph) {
|
|
786
|
+
if (graph != null) {
|
|
787
|
+
if (!(graph instanceof Graph)) {
|
|
788
|
+
throw makeDispatchError("InvalidInput", "RdMds.generate(graph): expected a Graph instance");
|
|
789
|
+
}
|
|
790
|
+
return this._generateGraph(graph);
|
|
791
|
+
}
|
|
792
|
+
return this._generateEigenpairs();
|
|
793
|
+
};
|
|
740
794
|
export const GuMapSolver = attachSolverDispatch(_GuMapSolver, allTargetFlags);
|
|
741
795
|
export const FruchtermanReingoldSolver = attachSolverDispatch(_FruchtermanReingoldSolver, allTargetFlags);
|
|
742
796
|
export const KamadaKawaiSolver = attachSolverDispatch(_KamadaKawaiSolver, allTargetFlags);
|
|
@@ -777,8 +831,8 @@ ArenaOctree3d.prototype.buildWeighted = function buildWeighted(coordsOrLayout, m
|
|
|
777
831
|
|
|
778
832
|
export const DynamicKdTree = new Proxy(_DynamicKdTree, {
|
|
779
833
|
construct(target, args) {
|
|
780
|
-
if (args.length === 1 && args[0] instanceof _LayoutNd) {
|
|
781
|
-
return target.fromLayoutNd(args[0]);
|
|
834
|
+
if ((args.length === 1 || args.length === 2) && args[0] instanceof _LayoutNd) {
|
|
835
|
+
return target.fromLayoutNd(args[0], args[1]);
|
|
782
836
|
}
|
|
783
837
|
return Reflect.construct(target, args);
|
|
784
838
|
},
|
|
@@ -860,7 +914,6 @@ export {
|
|
|
860
914
|
CoarsenedHierarchyResult,
|
|
861
915
|
CrossingPair,
|
|
862
916
|
CrossingSummary,
|
|
863
|
-
CsrGraph,
|
|
864
917
|
CsrMatrix,
|
|
865
918
|
DatasetInfo,
|
|
866
919
|
DelaunayResult,
|
|
@@ -871,7 +924,9 @@ export {
|
|
|
871
924
|
EffectiveResistanceResult,
|
|
872
925
|
EigenResult,
|
|
873
926
|
FdebSolver,
|
|
927
|
+
FieldFftStats,
|
|
874
928
|
FieldRepulsionBackend,
|
|
929
|
+
FieldRepulsionKernel,
|
|
875
930
|
FitFieldStats,
|
|
876
931
|
ForbidOverlapRemoval,
|
|
877
932
|
ForbidVariant,
|
|
@@ -881,11 +936,13 @@ export {
|
|
|
881
936
|
GemSolver,
|
|
882
937
|
GibBoxLayoutMode,
|
|
883
938
|
GibIntraLayoutMode,
|
|
939
|
+
Graph,
|
|
884
940
|
GraphCneObjective,
|
|
885
941
|
GripSolver,
|
|
886
942
|
GroupInABoxSolver,
|
|
887
943
|
Hde,
|
|
888
944
|
HybridKnnResult,
|
|
945
|
+
IbUmapHubDamping,
|
|
889
946
|
IbUmapSolver,
|
|
890
947
|
InterpolationOrder,
|
|
891
948
|
KnnGraph,
|
|
@@ -898,6 +955,7 @@ export {
|
|
|
898
955
|
LeidenObjective,
|
|
899
956
|
LinLogRepulsion,
|
|
900
957
|
ManifoldKind,
|
|
958
|
+
MetricAnchorWeighting,
|
|
901
959
|
MetricReport,
|
|
902
960
|
MetricTarget,
|
|
903
961
|
MinimumAngleSummary,
|
|
@@ -906,10 +964,10 @@ export {
|
|
|
906
964
|
PacmapBackboneResult,
|
|
907
965
|
PartitionAgreementResult,
|
|
908
966
|
PfsPrimeOverlapRemoval,
|
|
909
|
-
|
|
967
|
+
PivotMdsReport,
|
|
968
|
+
PivotMdsReportResult,
|
|
910
969
|
PrismDistortion,
|
|
911
970
|
PrismOverlapRemoval,
|
|
912
|
-
RdMds,
|
|
913
971
|
ResistanceCurvatureFlowResult,
|
|
914
972
|
ResistanceCurvatureStep,
|
|
915
973
|
RhghLandmarks,
|
|
@@ -945,6 +1003,7 @@ export {
|
|
|
945
1003
|
TwoHopCsr,
|
|
946
1004
|
TwoHopKnnResult,
|
|
947
1005
|
TwoHopSamplingMode,
|
|
1006
|
+
UnifiedMetricAnchor,
|
|
948
1007
|
WeightDtype,
|
|
949
1008
|
adaptiveChebyshevDegree,
|
|
950
1009
|
adaptiveChebyshevDegreeScaled,
|
|
@@ -1008,6 +1067,7 @@ export {
|
|
|
1008
1067
|
dijkstraSingleSource,
|
|
1009
1068
|
edgeAngle,
|
|
1010
1069
|
extract1hop2hopCsr,
|
|
1070
|
+
extract1hopTetherWeights,
|
|
1011
1071
|
extractQuadrilateralBackbone,
|
|
1012
1072
|
extractSparse1hop2hopPairs,
|
|
1013
1073
|
extractSparse1hop2hopPairsWithMode,
|
|
@@ -1079,6 +1139,7 @@ export {
|
|
|
1079
1139
|
setPanicHook,
|
|
1080
1140
|
shiftedNormalizedLaplacian,
|
|
1081
1141
|
smallestLaplacianEigenpairs,
|
|
1142
|
+
smallestSymLaplacianEigenpairsAmg,
|
|
1082
1143
|
spectralClustering,
|
|
1083
1144
|
spectralMomentStats,
|
|
1084
1145
|
sphericalCrossingNumber,
|