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/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,
@@ -40,6 +39,7 @@ import init, {
40
39
  EigenResult,
41
40
  FdebSolver,
42
41
  FieldRepulsionBackend,
42
+ FieldRepulsionKernel,
43
43
  FitFieldStats,
44
44
  ForbidOverlapRemoval,
45
45
  ForbidVariant,
@@ -51,6 +51,7 @@ import init, {
51
51
  GemSolver,
52
52
  GibBoxLayoutMode,
53
53
  GibIntraLayoutMode,
54
+ Graph,
54
55
  GraphCneObjective,
55
56
  GraphCneSolver as _GraphCneSolver,
56
57
  GripSolver,
@@ -58,6 +59,7 @@ import init, {
58
59
  GuMapSolver as _GuMapSolver,
59
60
  Hde,
60
61
  HybridKnnResult,
62
+ IbUmapHubDamping,
61
63
  IbUmapSolver,
62
64
  InterpolationOrder,
63
65
  KMeansResult as _KMeansResult,
@@ -82,6 +84,7 @@ import init, {
82
84
  ManifoldKind,
83
85
  ManifoldLayout2d as _ManifoldLayout2d,
84
86
  MaxentStressSolver as _MaxentStressSolver,
87
+ MetricAnchorWeighting,
85
88
  MetricReport,
86
89
  MetricTarget,
87
90
  MinimumAngleSummary,
@@ -91,7 +94,9 @@ import init, {
91
94
  PacmapGraphSolver as _PacmapGraphSolver,
92
95
  PartitionAgreementResult,
93
96
  PfsPrimeOverlapRemoval,
94
- PivotMds,
97
+ PivotMds as _PivotMds,
98
+ PivotMdsReport,
99
+ PivotMdsReportResult,
95
100
  PrismDistortion,
96
101
  PrismOverlapRemoval,
97
102
  RdMds,
@@ -137,6 +142,7 @@ import init, {
137
142
  TwoHopCsr,
138
143
  TwoHopKnnResult,
139
144
  TwoHopSamplingMode,
145
+ UnifiedMetricAnchor,
140
146
  WeightDtype,
141
147
  YifanHuSolver as _YifanHuSolver,
142
148
  _calinskiHarabaszScore2d,
@@ -344,6 +350,7 @@ import init, {
344
350
  dijkstraSingleSource,
345
351
  edgeAngle,
346
352
  extract1hop2hopCsr,
353
+ extract1hopTetherWeights,
347
354
  extractQuadrilateralBackbone,
348
355
  extractSparse1hop2hopPairs,
349
356
  extractSparse1hop2hopPairsWithMode,
@@ -415,6 +422,7 @@ import init, {
415
422
  setPanicHook,
416
423
  shiftedNormalizedLaplacian,
417
424
  smallestLaplacianEigenpairs,
425
+ smallestSymLaplacianEigenpairsAmg,
418
426
  spectralClustering,
419
427
  spectralMomentStats,
420
428
  sphericalCrossingNumber,
@@ -737,6 +745,41 @@ export const GraphCneSolver = attachSolverDispatch(_GraphCneSolver, allTargetFla
737
745
  export const SnapTFdpSolver = attachSolverDispatch(_SnapTFdpSolver, allTargetFlags);
738
746
 
739
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
+ };
740
783
  export const GuMapSolver = attachSolverDispatch(_GuMapSolver, allTargetFlags);
741
784
  export const FruchtermanReingoldSolver = attachSolverDispatch(_FruchtermanReingoldSolver, allTargetFlags);
742
785
  export const KamadaKawaiSolver = attachSolverDispatch(_KamadaKawaiSolver, allTargetFlags);
@@ -777,8 +820,8 @@ ArenaOctree3d.prototype.buildWeighted = function buildWeighted(coordsOrLayout, m
777
820
 
778
821
  export const DynamicKdTree = new Proxy(_DynamicKdTree, {
779
822
  construct(target, args) {
780
- if (args.length === 1 && args[0] instanceof _LayoutNd) {
781
- 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]);
782
825
  }
783
826
  return Reflect.construct(target, args);
784
827
  },
@@ -860,7 +903,6 @@ export {
860
903
  CoarsenedHierarchyResult,
861
904
  CrossingPair,
862
905
  CrossingSummary,
863
- CsrGraph,
864
906
  CsrMatrix,
865
907
  DatasetInfo,
866
908
  DelaunayResult,
@@ -872,6 +914,7 @@ export {
872
914
  EigenResult,
873
915
  FdebSolver,
874
916
  FieldRepulsionBackend,
917
+ FieldRepulsionKernel,
875
918
  FitFieldStats,
876
919
  ForbidOverlapRemoval,
877
920
  ForbidVariant,
@@ -881,11 +924,13 @@ export {
881
924
  GemSolver,
882
925
  GibBoxLayoutMode,
883
926
  GibIntraLayoutMode,
927
+ Graph,
884
928
  GraphCneObjective,
885
929
  GripSolver,
886
930
  GroupInABoxSolver,
887
931
  Hde,
888
932
  HybridKnnResult,
933
+ IbUmapHubDamping,
889
934
  IbUmapSolver,
890
935
  InterpolationOrder,
891
936
  KnnGraph,
@@ -898,6 +943,7 @@ export {
898
943
  LeidenObjective,
899
944
  LinLogRepulsion,
900
945
  ManifoldKind,
946
+ MetricAnchorWeighting,
901
947
  MetricReport,
902
948
  MetricTarget,
903
949
  MinimumAngleSummary,
@@ -906,7 +952,8 @@ export {
906
952
  PacmapBackboneResult,
907
953
  PartitionAgreementResult,
908
954
  PfsPrimeOverlapRemoval,
909
- PivotMds,
955
+ PivotMdsReport,
956
+ PivotMdsReportResult,
910
957
  PrismDistortion,
911
958
  PrismOverlapRemoval,
912
959
  RdMds,
@@ -945,6 +992,7 @@ export {
945
992
  TwoHopCsr,
946
993
  TwoHopKnnResult,
947
994
  TwoHopSamplingMode,
995
+ UnifiedMetricAnchor,
948
996
  WeightDtype,
949
997
  adaptiveChebyshevDegree,
950
998
  adaptiveChebyshevDegreeScaled,
@@ -1008,6 +1056,7 @@ export {
1008
1056
  dijkstraSingleSource,
1009
1057
  edgeAngle,
1010
1058
  extract1hop2hopCsr,
1059
+ extract1hopTetherWeights,
1011
1060
  extractQuadrilateralBackbone,
1012
1061
  extractSparse1hop2hopPairs,
1013
1062
  extractSparse1hop2hopPairsWithMode,
@@ -1079,6 +1128,7 @@ export {
1079
1128
  setPanicHook,
1080
1129
  shiftedNormalizedLaplacian,
1081
1130
  smallestLaplacianEigenpairs,
1131
+ smallestSymLaplacianEigenpairsAmg,
1082
1132
  spectralClustering,
1083
1133
  spectralMomentStats,
1084
1134
  sphericalCrossingNumber,