egraph 6.0.0-alpha.8 → 6.0.0-beta.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/pkg/index.js CHANGED
@@ -1,16 +1,19 @@
1
1
  /* @ts-self-types="./index.d.ts" */
2
2
  import init, {
3
- Layout2d as _Layout2d,
4
- LayoutNd as _LayoutNd,
3
+ AdjustedPatchNigDetail,
5
4
  AmgPcgBatchResult,
6
5
  AmgPcgSolveResult,
7
6
  AmgPcgSolver,
8
7
  AnisotropicLaplacianResult,
8
+ ArenaOctree3d as _ArenaOctree3d,
9
9
  BackboneResult,
10
10
  BackboneSolver,
11
+ ChebyshevDogKernel,
11
12
  ClassDensityResult,
13
+ ClassicalMds,
12
14
  ClusterAreaReport,
13
15
  ClusterRefineSolver,
16
+ CoarseBackbone,
14
17
  CoarseBackboneResult,
15
18
  CoarsenedGraphResult,
16
19
  CoarsenedHierarchyResult,
@@ -18,43 +21,60 @@ import init, {
18
21
  CrossingSummary,
19
22
  CsrGraph,
20
23
  CsrMatrix,
24
+ DatasetInfo,
21
25
  DelaunayResult,
26
+ DijkstraWorkspace,
22
27
  DogStats,
23
28
  DogVaradhanLandmarks,
29
+ DrGraphSolver as _DrGraphSolver,
30
+ DynamicKdTree as _DynamicKdTree,
31
+ EdgePolylines as _EdgePolylines,
24
32
  EffectiveResistanceResult,
25
33
  EigenResult,
26
34
  FdebSolver,
27
35
  FitFieldStats,
28
36
  ForbidOverlapRemoval,
29
- ForceAtlas2Solver,
30
- FruchtermanReingoldSolver,
37
+ ForceAtlas2Solver as _ForceAtlas2Solver,
38
+ FruchtermanReingoldSolver as _FruchtermanReingoldSolver,
31
39
  GTreeOverlapRemoval,
32
40
  GemSolver,
41
+ GraphCneSolver as _GraphCneSolver,
33
42
  GripSolver,
34
43
  GroupInABoxSolver,
35
- GuMapSolver,
44
+ GuMapSolver as _GuMapSolver,
45
+ Hde,
36
46
  HybridKnnResult,
37
47
  IbUmapSolver,
38
- KMeansResult,
39
- KamadaKawaiSolver,
48
+ KMeansResult as _KMeansResult,
49
+ KamadaKawaiSolver as _KamadaKawaiSolver,
40
50
  KnnGraph,
51
+ KorenSpectral,
52
+ LabelPropagationResult as _LabelPropagationResult,
53
+ LargeVisSolver as _LargeVisSolver,
41
54
  LargestConnectedComponentResult,
55
+ Layout2d as _Layout2d,
56
+ Layout3d as _Layout3d,
42
57
  LayoutDegeneracy,
43
- LeidenResult,
44
- LinLogSolver,
45
- LouvainResult,
46
- ManifoldLayout2d,
47
- MaxentStressSolver,
58
+ LayoutNd as _LayoutNd,
59
+ LeidenResult as _LeidenResult,
60
+ LinLogSolver as _LinLogSolver,
61
+ LouvainResult as _LouvainResult,
62
+ ManifoldLayout2d as _ManifoldLayout2d,
63
+ MaxentStressSolver as _MaxentStressSolver,
48
64
  MetricReport,
49
65
  MinimumAngleSummary,
50
66
  NorMetricsResult,
51
67
  PacmapBackboneResult,
68
+ PacmapGraphSolver as _PacmapGraphSolver,
52
69
  PartitionAgreementResult,
53
70
  PfsPrimeOverlapRemoval,
71
+ PivotMds,
54
72
  PrismDistortion,
55
73
  PrismOverlapRemoval,
74
+ RdMds,
56
75
  ResistanceCurvatureFlowResult,
57
76
  ResistanceCurvatureStep,
77
+ RhghLandmarks,
58
78
  RhghLandmarksResult,
59
79
  RtaEvaluation,
60
80
  ScreenedPoissonField2d,
@@ -62,50 +82,208 @@ import init, {
62
82
  ScreenedPoissonResult,
63
83
  SelLayoutSolver,
64
84
  SeparationConstraint,
65
- SfcLayoutSolver,
66
- SgdSolver,
85
+ SfcLayout,
86
+ Sgd2Solver as _Sgd2Solver,
87
+ SgdSolver as _SgdSolver,
88
+ SnapTFdpSolver as _SnapTFdpSolver,
67
89
  Sparse12HopPairs,
68
90
  SparseBarrierStats,
69
91
  SparseProbabilities,
70
92
  SpatialIntruderRefiner,
71
93
  SpatialRefinerRoundStats,
72
94
  SpatialRefinerStats,
95
+ SpectralClusteringResult as _SpectralClusteringResult,
73
96
  SpectralEmbeddingResult,
74
97
  SpectralMomentStats,
75
- StressMajorizationSolver,
76
- TFdpSolver,
98
+ StressEvaluation,
99
+ StressMajorizationSolver as _StressMajorizationSolver,
100
+ TFdpSolver as _TFdpSolver,
77
101
  TorusCrossing,
78
- TsNetSolver,
102
+ TsNetSolver as _TsNetSolver,
103
+ TsNetStage,
104
+ TwinDeclutterer,
79
105
  TwoHopCsr,
80
106
  TwoHopKnnResult,
81
- YifanHuSolver,
107
+ YifanHuSolver as _YifanHuSolver,
108
+ _calinskiHarabaszScore2d,
109
+ _calinskiHarabaszScore3d,
110
+ _calinskiHarabaszScoreManifold,
111
+ _calinskiHarabaszScoreNd,
112
+ _cqHac2d,
113
+ _cqHac3d,
114
+ _cqHacManifold,
115
+ _cqHacNd,
116
+ _cqKmeans2d,
117
+ _cqKmeans3d,
118
+ _cqKmeansManifold,
119
+ _cqKmeansNd,
120
+ _crossingEdgesTorus2d,
121
+ _crossingEdgesTorusManifold,
122
+ _daviesBouldinScore2d,
123
+ _daviesBouldinScore3d,
124
+ _daviesBouldinScoreManifold,
125
+ _daviesBouldinScoreNd,
126
+ _dggPreservation2d,
127
+ _dggPreservation3d,
128
+ _dggPreservationManifold,
129
+ _dggPreservationNd,
130
+ _distanceConsistency2d,
131
+ _distanceConsistency3d,
132
+ _distanceConsistencyManifold,
133
+ _distanceConsistencyNd,
134
+ _distributionConsistency2d,
135
+ _distributionConsistency3d,
136
+ _distributionConsistencyManifold,
137
+ _distributionConsistencyNd,
138
+ _drngPreservation2d,
139
+ _drngPreservation3d,
140
+ _drngPreservationManifold,
141
+ _drngPreservationNd,
142
+ _evaluateMetrics2d,
143
+ _evaluateMetrics2dWithOriginal,
144
+ _evaluateMetrics3d,
145
+ _evaluateMetricsManifold,
146
+ _evaluateMetricsNd,
147
+ _gabrielGraphEdges2d,
148
+ _gabrielGraphEdges3d,
149
+ _gabrielGraphEdgesManifold,
150
+ _gabrielGraphEdgesNd,
151
+ _gabrielGraphProperty2d,
152
+ _gabrielGraphProperty3d,
153
+ _gabrielGraphPropertyManifold,
154
+ _gabrielGraphPropertyNd,
155
+ _idealEdgeLengths2d,
156
+ _idealEdgeLengths3d,
157
+ _idealEdgeLengthsManifold,
158
+ _idealEdgeLengthsNd,
159
+ _idealEdgeLengthsWithUnit2d,
160
+ _idealEdgeLengthsWithUnit3d,
161
+ _idealEdgeLengthsWithUnitManifold,
162
+ _idealEdgeLengthsWithUnitNd,
163
+ _landmarkStratifiedRta2d,
164
+ _landmarkStratifiedRta3d,
165
+ _landmarkStratifiedRtaDetail2d,
166
+ _landmarkStratifiedRtaDetail3d,
167
+ _landmarkStratifiedRtaDetailManifold,
168
+ _landmarkStratifiedRtaDetailNd,
169
+ _landmarkStratifiedRtaFromLandmarks2d,
170
+ _landmarkStratifiedRtaFromLandmarks3d,
171
+ _landmarkStratifiedRtaFromLandmarksManifold,
172
+ _landmarkStratifiedRtaFromLandmarksNd,
173
+ _landmarkStratifiedRtaManifold,
174
+ _landmarkStratifiedRtaNd,
175
+ _layoutDegeneracy2d,
176
+ _layoutDegeneracy3d,
177
+ _layoutDegeneracyManifold,
178
+ _layoutDegeneracyNd,
179
+ _neighborhoodHit2d,
180
+ _neighborhoodHit3d,
181
+ _neighborhoodHitManifold,
182
+ _neighborhoodHitNd,
183
+ _neighborhoodPreservation1Hop2d,
184
+ _neighborhoodPreservation1Hop3d,
185
+ _neighborhoodPreservation1HopManifold,
186
+ _neighborhoodPreservation1HopNd,
187
+ _neighborhoodPreservation2Hop2d,
188
+ _neighborhoodPreservation2Hop3d,
189
+ _neighborhoodPreservation2HopManifold,
190
+ _neighborhoodPreservation2HopNd,
191
+ _nodeResolution2d,
192
+ _nodeResolution3d,
193
+ _nodeResolutionManifold,
194
+ _nodeResolutionNd,
195
+ _pairwiseDistanceOverlapError2d,
196
+ _pairwiseDistanceOverlapError3d,
197
+ _pairwiseDistanceOverlapErrorManifold,
198
+ _pairwiseDistanceOverlapErrorNd,
199
+ _relativeNeighborhoodEdges2d,
200
+ _relativeNeighborhoodEdges3d,
201
+ _relativeNeighborhoodEdgesManifold,
202
+ _relativeNeighborhoodEdgesNd,
203
+ _sampledNp12d,
204
+ _sampledNp13d,
205
+ _sampledNp1Manifold,
206
+ _sampledNp1Nd,
207
+ _sampledNp22d,
208
+ _sampledNp23d,
209
+ _sampledNp2Manifold,
210
+ _sampledNp2Nd,
211
+ _sampledScaleNormalizedStress2d,
212
+ _sampledScaleNormalizedStress3d,
213
+ _sampledScaleNormalizedStressManifold,
214
+ _sampledScaleNormalizedStressNd,
215
+ _scaleNormalizedStress2d,
216
+ _scaleNormalizedStress3d,
217
+ _scaleNormalizedStressDetail2d,
218
+ _scaleNormalizedStressDetail3d,
219
+ _scaleNormalizedStressDetailManifold,
220
+ _scaleNormalizedStressDetailNd,
221
+ _scaleNormalizedStressFromDistances2d,
222
+ _scaleNormalizedStressFromDistances3d,
223
+ _scaleNormalizedStressFromDistancesManifold,
224
+ _scaleNormalizedStressFromDistancesNd,
225
+ _scaleNormalizedStressManifold,
226
+ _scaleNormalizedStressNd,
227
+ _sepmeGab2d,
228
+ _sepmeGab3d,
229
+ _sepmeGabManifold,
230
+ _sepmeGabNd,
231
+ _sepmeGong2d,
232
+ _sepmeGong3d,
233
+ _sepmeGongManifold,
234
+ _sepmeGongNd,
235
+ _sepmeKnng2d,
236
+ _sepmeKnng3d,
237
+ _sepmeKnngManifold,
238
+ _sepmeKnngNd,
239
+ _sepmeRng2d,
240
+ _sepmeRng3d,
241
+ _sepmeRngManifold,
242
+ _sepmeRngNd,
243
+ _silhouetteScore2d,
244
+ _silhouetteScore3d,
245
+ _silhouetteScoreManifold,
246
+ _silhouetteScoreNd,
247
+ _torusCrossingNumber2d,
248
+ _torusCrossingNumberManifold,
249
+ _torusLayoutEdgeSegments2d,
250
+ _torusLayoutEdgeSegmentsManifold,
251
+ adaptiveChebyshevDegree,
252
+ adaptiveChebyshevDegreeScaled,
82
253
  adjustedPatchNig,
254
+ adjustedPatchNigDetail,
83
255
  adjustedPatchNigMultiscale,
84
256
  alignClusteredCentroids,
85
257
  allPairsBfs,
86
- angularResolutionV6,
258
+ allPairsDijkstra,
259
+ angularResolution,
87
260
  anisotropicLaplacian,
88
261
  applyRelativeDistanceFloor,
89
- aspectRatioV6,
262
+ aspectRatio,
90
263
  assignLayers,
91
264
  bfsSingleSource,
92
265
  buildCapped12hopKnn,
266
+ buildDogTerms,
93
267
  buildGumap12hopPriorityCsr,
94
268
  buildHybridAdaptiveKnn,
95
269
  buildPure2hopKnn,
270
+ buildRegularizedDogTerms,
96
271
  buildRerankKnn,
97
- calinskiHarabaszScore,
98
272
  chebyshevDogJlEmbedding,
99
273
  chebyshevDogJlEmbeddingMatrix,
100
274
  chebyshevHeatSpmv,
101
275
  chebyshevHeatSpmvMatrix,
102
276
  classDensityMeasure,
277
+ classicalMds,
103
278
  classicalMds2d,
279
+ classicalMdsFromDistances,
104
280
  clusterAreaFaithfulness,
105
281
  clusterAreaFaithfulnessDetail,
106
282
  coarseBackboneInit,
107
283
  coarsenGraph,
284
+ combinatorialLaplacian,
108
285
  compute2hopNeighborhoodSizes,
286
+ computeChebyshevBandpassCoefficients,
109
287
  computeDiffusionEmbedding,
110
288
  computeEffectiveResistances,
111
289
  computeFuzzySimplicialSet,
@@ -114,64 +292,71 @@ import init, {
114
292
  computeMedian2hopPerplexity,
115
293
  computeNodewise2hopPerplexities,
116
294
  computePivotedRhghLandmarks,
295
+ computePivotedRhghLandmarksResult,
117
296
  computeRegularizedDogVaradhanLandmarks,
118
297
  computeRegularizedDogVaradhanLandmarksFromMatrix,
119
298
  computeResistanceEmbedding,
120
- cqHac,
121
- cqKmeans,
122
299
  crossingEdges,
123
- crossingEdgesTorus,
300
+ crossingEdgesHyperbolic,
301
+ crossingEdgesSpherical,
124
302
  crossingSummary,
125
303
  crosslessness,
126
304
  cycleEdges,
127
- daviesBouldinScore,
305
+ datasetCatalog,
306
+ datasetInfo,
307
+ declutterTwins2d,
128
308
  delaunayToCsr,
129
309
  delaunayTriangulation,
130
- dggPreservation,
131
- distanceConsistency,
132
- distributionConsistency,
133
- drngPreservation,
310
+ dijkstraSingleSource,
134
311
  edgeAngle,
135
- evaluateMetrics,
136
312
  extract1hop2hopCsr,
137
313
  extractQuadrilateralBackbone,
138
314
  extractSparse1hop2hopPairs,
315
+ extractSparse1hop2hopPairsWithMode,
139
316
  findAbParams,
140
- gabrielGraphEdges,
141
- gabrielGraphPropertyV6,
317
+ generateHyperbolicTree,
142
318
  generateLayeredConstraints,
319
+ generateLayeredDag,
320
+ generateSbmGraph,
321
+ generateSphericalGrid,
322
+ generateSphericalIcosphere,
323
+ generateTorusGrid,
324
+ generateWeightedGraph,
325
+ geodesicDistortion,
143
326
  graph12hopRowNormalizedProbabilities,
327
+ graph12hopRowNormalizedProbabilitiesWithOptions,
144
328
  graphRowNormalizedProbabilities,
145
329
  hde,
146
330
  hdeNd,
147
- idealEdgeLengthsV6,
148
- idealEdgeLengthsWithUnit,
331
+ hyperbolicCrossingNumber,
149
332
  initSync,
150
333
  kmeansPlusPlus,
151
334
  korenSpectralInit,
152
335
  labelPropagation,
153
- landmarkStratifiedRta,
154
- landmarkStratifiedRtaDetail,
155
- landmarkStratifiedRtaFromLandmarks,
156
- layoutDegeneracy,
336
+ laplacian,
157
337
  leidenCommunities,
338
+ listDatasets,
339
+ lorentzDistance,
340
+ lorentzEinsteinMidpoint,
341
+ lorentzExpMap,
342
+ lorentzLogMap,
343
+ lorentzToPoincarePoint,
158
344
  louvainCoarsen,
159
345
  louvainCommunities,
160
346
  minimumAngle,
161
347
  minimumAngleSummary,
162
- neighborhoodHit,
163
- neighborhoodPreservation1Hop,
164
- neighborhoodPreservation2HopV6,
165
- nodeResolutionV6,
166
348
  norMetrics,
167
349
  norMetricsWithoutGraph,
168
350
  normalizeLayout2d,
169
- pairwiseDistanceOverlapError,
170
351
  parseCsrCsv,
171
352
  partialBfsKnn,
172
353
  partitionAgreement,
354
+ pivotMds,
355
+ pivotMdsFromDistances,
173
356
  pivotMdsInit,
357
+ pivotMdsWithPivots,
174
358
  poincareDistance,
359
+ poincareEinsteinMidpoint,
175
360
  poincareMobiusAdd,
176
361
  prismDistortion,
177
362
  prismDistortionWithEdges,
@@ -180,46 +365,49 @@ import init, {
180
365
  projectClusteredLayoutWithRadii,
181
366
  projectClusteredRectangleNoOverlap2d,
182
367
  projectLayoutAxis,
368
+ projectPsdSpectralFilter,
183
369
  projectRectangleNoOverlap2d,
370
+ randomWalkLaplacian,
184
371
  rdMds,
185
372
  rectangleOverlaps,
186
373
  refineClusterLayout,
187
- relativeNeighborhoodEdges,
188
374
  removeCycles,
189
375
  representativeMds,
190
376
  resistanceCurvatureFlow,
191
377
  robustNormalizeLayout2d,
192
378
  sampledCrossingNumber,
193
379
  sampledCrosslessness,
194
- sampledNp1,
195
- sampledNp2,
196
- sampledScaleNormalizedStress,
197
- scaleNormalizedStress,
198
- scaleNormalizedStressFromDistances,
199
380
  selectMaxminSpPivots,
200
- sepmeGab,
201
- sepmeGong,
202
- sepmeKnng,
203
- sepmeRng,
204
381
  setPanicHook,
205
- silhouetteScore,
382
+ shiftedNormalizedLaplacian,
206
383
  smallestLaplacianEigenpairs,
207
384
  spectralClustering,
208
385
  spectralMomentStats,
386
+ sphericalCrossingNumber,
209
387
  sphericalDistance,
210
388
  sprawlterNn,
211
389
  sprawlterNnRadii,
212
390
  squarifiedTreemap,
213
391
  sweepCrossingAngle,
214
392
  sweepCrossingNumber,
393
+ symmetricEigenJacobi,
394
+ symmetricNormalizedLaplacian,
215
395
  symmetrizeRowNormalized,
216
- torusCrossingNumber,
217
396
  torusDistance,
397
+ torusEdgeSegments,
398
+ torusSpectralPhaseInit,
399
+ transitiveReduction,
218
400
  wasmMemory,
219
401
  wasm_start,
220
402
  wrapTorusPoint,
221
403
  } from "./egraph_wasm.js";
222
404
 
405
+ function makeDispatchError(code, message) {
406
+ const err = new TypeError(message);
407
+ err.code = code;
408
+ return err;
409
+ }
410
+
223
411
  function attachCoordsView(LayoutClass) {
224
412
  if (typeof LayoutClass.prototype.coordsView !== "function") {
225
413
  LayoutClass.prototype.coordsView = function coordsView() {
@@ -241,10 +429,126 @@ function attachCoordsView(LayoutClass) {
241
429
  return LayoutClass;
242
430
  }
243
431
 
432
+ function attachTypedView(ResultClass, methodName, ptrFn, lenFn, TypedCtor, cacheKey) {
433
+ if (typeof ResultClass?.prototype?.[ptrFn] === "function") {
434
+ ResultClass.prototype[methodName] = function () {
435
+ const buf = wasmMemory().buffer;
436
+ const ptr = this[ptrFn]();
437
+ const len = this[lenFn]();
438
+ const bufKey = cacheKey + "Buf";
439
+ if (
440
+ !this[cacheKey] ||
441
+ this[bufKey] !== buf ||
442
+ this[cacheKey].byteOffset !== ptr ||
443
+ this[cacheKey].length !== len
444
+ ) {
445
+ this[cacheKey] = new TypedCtor(buf, ptr, len);
446
+ this[bufKey] = buf;
447
+ }
448
+ return this[cacheKey];
449
+ };
450
+ }
451
+ return ResultClass;
452
+ }
453
+
454
+ function attachSolverDispatch(
455
+ SolverClass,
456
+ { supports3d = false, supportsNd = false, supportsManifold = false } = {},
457
+ ) {
458
+ const proto = SolverClass.prototype;
459
+ proto.step = function step(layout) {
460
+ if (layout instanceof _Layout2d) return this._step2d(layout);
461
+ if (supports3d && layout instanceof _Layout3d) return this._step3d(layout);
462
+ if (supportsNd && layout instanceof _LayoutNd) return this._stepNd(layout);
463
+ if (supportsManifold && layout instanceof _ManifoldLayout2d) return this._stepManifold(layout);
464
+ throw makeDispatchError("UnsupportedOperation", `${SolverClass.name}.step: unsupported layout type`);
465
+ };
466
+ proto.runSteps = function runSteps(layout, steps) {
467
+ if (layout instanceof _Layout2d) return this._runSteps2d(layout, steps);
468
+ if (supports3d && layout instanceof _Layout3d) return this._runSteps3d(layout, steps);
469
+ if (supportsNd && layout instanceof _LayoutNd) return this._runStepsNd(layout, steps);
470
+ if (supportsManifold && layout instanceof _ManifoldLayout2d) {
471
+ return this._runStepsManifold(layout, steps);
472
+ }
473
+ throw makeDispatchError("UnsupportedOperation", `${SolverClass.name}.runSteps: unsupported layout type`);
474
+ };
475
+ proto.run = function run(layout) {
476
+ if (layout instanceof _Layout2d) return this._run2d(layout);
477
+ if (supports3d && layout instanceof _Layout3d) return this._run3d(layout);
478
+ if (supportsNd && layout instanceof _LayoutNd) return this._runNd(layout);
479
+ if (supportsManifold && layout instanceof _ManifoldLayout2d) return this._runManifold(layout);
480
+ throw makeDispatchError("UnsupportedOperation", `${SolverClass.name}.run: unsupported layout type`);
481
+ };
482
+ return SolverClass;
483
+ }
484
+
485
+ function attachScheduleWindow(SolverClass) {
486
+ SolverClass.prototype.runScheduleWindow = function runScheduleWindow(layout, startIter, count) {
487
+ if (layout instanceof _Layout2d) return this._runScheduleWindow2d(layout, startIter, count);
488
+ if (layout instanceof _Layout3d) return this._runScheduleWindow3d(layout, startIter, count);
489
+ if (layout instanceof _LayoutNd) return this._runScheduleWindowNd(layout, startIter, count);
490
+ if (layout instanceof _ManifoldLayout2d) {
491
+ return this._runScheduleWindowManifold(layout, startIter, count);
492
+ }
493
+ throw makeDispatchError(
494
+ "UnsupportedOperation",
495
+ `${SolverClass.name}.runScheduleWindow: unsupported layout type`,
496
+ );
497
+ };
498
+ return SolverClass;
499
+ }
500
+
501
+ function attachEdgePolylines(PolyClass) {
502
+ attachTypedView(PolyClass, "edgeOffsetsView", "edgeOffsetsPtr", "edgeOffsetsLen", Uint32Array, "_edgeOffsetsView");
503
+ attachTypedView(PolyClass, "pointsView", "pointsPtr", "pointsLen", Float32Array, "_pointsView");
504
+ PolyClass.straightLineFromGraph = function straightLineFromGraph(graph, layout) {
505
+ if (layout instanceof _Layout2d) return PolyClass._straightLineFromGraph2d(graph, layout);
506
+ if (layout instanceof _Layout3d) return PolyClass._straightLineFromGraph3d(graph, layout);
507
+ if (layout instanceof _LayoutNd) return PolyClass._straightLineFromGraphNd(graph, layout);
508
+ throw makeDispatchError(
509
+ "UnsupportedOperation",
510
+ "EdgePolylines.straightLineFromGraph: expected Layout2d, Layout3d, or LayoutNd",
511
+ );
512
+ };
513
+ PolyClass.fromParts = function fromParts(edgeOffsets, points) {
514
+ if (points instanceof _Layout2d) return PolyClass._fromParts2d(edgeOffsets, points);
515
+ if (points instanceof _Layout3d) return PolyClass._fromParts3d(edgeOffsets, points);
516
+ if (points instanceof _LayoutNd) return PolyClass._fromPartsNd(edgeOffsets, points);
517
+ throw makeDispatchError(
518
+ "UnsupportedOperation",
519
+ "EdgePolylines.fromParts: expected points to be Layout2d, Layout3d, or LayoutNd",
520
+ );
521
+ };
522
+ return PolyClass;
523
+ }
524
+
525
+ function dispatchLayout4(name, fn2d, fn3d, fnNd, fnManifold) {
526
+ return function (layout, ...args) {
527
+ if (layout instanceof _Layout2d) return fn2d(layout, ...args);
528
+ if (fn3d && layout instanceof _Layout3d) return fn3d(layout, ...args);
529
+ if (fnNd && layout instanceof _LayoutNd) return fnNd(layout, ...args);
530
+ if (fnManifold && layout instanceof _ManifoldLayout2d) return fnManifold(layout, ...args);
531
+ throw makeDispatchError("UnsupportedOperation", `${name}: unsupported layout type`);
532
+ };
533
+ }
534
+
535
+ function dispatchGraphLayout4(name, fn2d, fn3d, fnNd, fnManifold) {
536
+ return function (graph, layout, ...args) {
537
+ if (layout instanceof _Layout2d) return fn2d(graph, layout, ...args);
538
+ if (fn3d && layout instanceof _Layout3d) return fn3d(graph, layout, ...args);
539
+ if (fnNd && layout instanceof _LayoutNd) return fnNd(graph, layout, ...args);
540
+ if (fnManifold && layout instanceof _ManifoldLayout2d) return fnManifold(graph, layout, ...args);
541
+ throw makeDispatchError("UnsupportedOperation", `${name}: unsupported layout type`);
542
+ };
543
+ }
544
+
244
545
  /**
245
546
  * Runs a cooperative iterative solver progressively within a per-frame time budget,
246
547
  * yielding back to the browser event loop via `requestAnimationFrame` (or `setTimeout`
247
548
  * in Node.js) between batches.
549
+ *
550
+ * Accepts `Layout2d`, `Layout3d`, `LayoutNd`, `ManifoldLayout2d`, or `EdgePolylines`
551
+ * (for `FdebSolver`) polymorphically.
248
552
  */
249
553
  export function runProgressive(solver, layout, onFrame, options = {}) {
250
554
  const {
@@ -369,17 +673,148 @@ export function runProgressive(solver, layout, onFrame, options = {}) {
369
673
  }
370
674
 
371
675
  export const Layout2d = attachCoordsView(_Layout2d);
676
+ export const Layout3d = attachCoordsView(_Layout3d);
372
677
  export const LayoutNd = attachCoordsView(_LayoutNd);
678
+ export const ManifoldLayout2d = attachCoordsView(_ManifoldLayout2d);
679
+ export const EdgePolylines = attachEdgePolylines(_EdgePolylines);
680
+
681
+ export const LouvainResult = attachTypedView(_LouvainResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
682
+ export const LeidenResult = attachTypedView(_LeidenResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
683
+ export const LabelPropagationResult = attachTypedView(_LabelPropagationResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
684
+ export const SpectralClusteringResult = attachTypedView(_SpectralClusteringResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
685
+ export const KMeansResult = attachTypedView(
686
+ attachTypedView(_KMeansResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView"),
687
+ "centroidsView",
688
+ "centroidsPtr",
689
+ "centroidsLen",
690
+ Float64Array,
691
+ "_centroidsView",
692
+ );
693
+
694
+ const allTargetFlags = { supports3d: true, supportsNd: true, supportsManifold: true };
695
+ const euclideanTargetFlags = { supports3d: true, supportsNd: true };
696
+
697
+ export const SgdSolver = attachScheduleWindow(attachSolverDispatch(_SgdSolver, allTargetFlags));
698
+ export const Sgd2Solver = attachScheduleWindow(attachSolverDispatch(_Sgd2Solver, allTargetFlags));
699
+ export const PacmapGraphSolver = attachSolverDispatch(_PacmapGraphSolver, allTargetFlags);
700
+ export const LargeVisSolver = attachSolverDispatch(_LargeVisSolver, allTargetFlags);
701
+ export const DrGraphSolver = attachSolverDispatch(_DrGraphSolver, allTargetFlags);
702
+ export const GraphCneSolver = attachSolverDispatch(_GraphCneSolver, allTargetFlags);
703
+ export const SnapTFdpSolver = attachSolverDispatch(_SnapTFdpSolver, allTargetFlags);
704
+
705
+ export const TsNetSolver = attachSolverDispatch(_TsNetSolver, allTargetFlags);
706
+ export const GuMapSolver = attachSolverDispatch(_GuMapSolver, allTargetFlags);
707
+ export const FruchtermanReingoldSolver = attachSolverDispatch(_FruchtermanReingoldSolver, allTargetFlags);
708
+ export const KamadaKawaiSolver = attachSolverDispatch(_KamadaKawaiSolver, allTargetFlags);
709
+
710
+ export const StressMajorizationSolver = attachSolverDispatch(_StressMajorizationSolver, allTargetFlags);
711
+ StressMajorizationSolver.prototype.computeStress = function computeStress(layout) {
712
+ if (layout instanceof _Layout2d) return this._computeStress2d(layout);
713
+ if (layout instanceof _Layout3d) return this._computeStress3d(layout);
714
+ if (layout instanceof _LayoutNd) return this._computeStressNd(layout);
715
+ if (layout instanceof _ManifoldLayout2d) return this._computeStressManifold(layout);
716
+ throw makeDispatchError("UnsupportedOperation", "StressMajorizationSolver.computeStress: unsupported layout type");
717
+ };
718
+
719
+ export const LinLogSolver = attachSolverDispatch(_LinLogSolver, euclideanTargetFlags);
720
+ LinLogSolver.prototype.energy = function energy(layout) {
721
+ if (layout instanceof _Layout2d) return this._energy2d(layout);
722
+ if (layout instanceof _Layout3d) return this._energy3d(layout);
723
+ if (layout instanceof _LayoutNd) return this._energyNd(layout);
724
+ throw makeDispatchError("UnsupportedOperation", "LinLogSolver.energy: expected Layout2d, Layout3d, or LayoutNd");
725
+ };
726
+
727
+ export const ForceAtlas2Solver = attachSolverDispatch(_ForceAtlas2Solver, euclideanTargetFlags);
728
+ export const YifanHuSolver = attachSolverDispatch(_YifanHuSolver, euclideanTargetFlags);
729
+ export const MaxentStressSolver = attachSolverDispatch(_MaxentStressSolver, euclideanTargetFlags);
730
+ export const TFdpSolver = attachSolverDispatch(_TFdpSolver, euclideanTargetFlags);
731
+
732
+ export const ArenaOctree3d = _ArenaOctree3d;
733
+ ArenaOctree3d.prototype.build = function build(coordsOrLayout) {
734
+ if (coordsOrLayout instanceof _Layout3d) return this.build3d(coordsOrLayout);
735
+ if (coordsOrLayout instanceof _LayoutNd) return this.buildNd(coordsOrLayout);
736
+ return this._buildFlat(coordsOrLayout);
737
+ };
738
+ ArenaOctree3d.prototype.buildWeighted = function buildWeighted(coordsOrLayout, masses) {
739
+ if (coordsOrLayout instanceof _Layout3d) return this.buildWeighted3d(coordsOrLayout, masses);
740
+ if (coordsOrLayout instanceof _LayoutNd) return this.buildWeightedNd(coordsOrLayout, masses);
741
+ return this._buildWeightedFlat(coordsOrLayout, masses);
742
+ };
743
+
744
+ export const DynamicKdTree = new Proxy(_DynamicKdTree, {
745
+ construct(target, args) {
746
+ if (args.length === 1 && args[0] instanceof _LayoutNd) {
747
+ return target.fromLayoutNd(args[0]);
748
+ }
749
+ return Reflect.construct(target, args);
750
+ },
751
+ });
752
+
753
+ export function evaluateMetrics(graph, layout, targets, ...args) {
754
+ if (layout instanceof _Layout3d) return _evaluateMetrics3d(graph, layout, targets, ...args);
755
+ if (layout instanceof _LayoutNd) return _evaluateMetricsNd(graph, layout, targets, ...args);
756
+ if (layout instanceof _ManifoldLayout2d) return _evaluateMetricsManifold(graph, layout, targets, ...args);
757
+ if (layout instanceof _Layout2d) {
758
+ const opt = args.length === 1 && args[0] && typeof args[0] === "object" && !Array.isArray(args[0]) ? args[0] : null;
759
+ if (opt && opt.originalLayout != null) {
760
+ return _evaluateMetrics2dWithOriginal(graph, layout, targets, opt, opt.originalLayout);
761
+ }
762
+ return _evaluateMetrics2d(graph, layout, targets, ...args);
763
+ }
764
+ throw makeDispatchError("UnsupportedOperation", "evaluateMetrics: unsupported layout type");
765
+ }
766
+
767
+ export const scaleNormalizedStress = dispatchGraphLayout4("scaleNormalizedStress", _scaleNormalizedStress2d, _scaleNormalizedStress3d, _scaleNormalizedStressNd, _scaleNormalizedStressManifold);
768
+ export const scaleNormalizedStressDetail = dispatchGraphLayout4("scaleNormalizedStressDetail", _scaleNormalizedStressDetail2d, _scaleNormalizedStressDetail3d, _scaleNormalizedStressDetailNd, _scaleNormalizedStressDetailManifold);
769
+ export const sampledScaleNormalizedStress = dispatchGraphLayout4("sampledScaleNormalizedStress", _sampledScaleNormalizedStress2d, _sampledScaleNormalizedStress3d, _sampledScaleNormalizedStressNd, _sampledScaleNormalizedStressManifold);
770
+ export const scaleNormalizedStressFromDistances = dispatchLayout4("scaleNormalizedStressFromDistances", _scaleNormalizedStressFromDistances2d, _scaleNormalizedStressFromDistances3d, _scaleNormalizedStressFromDistancesNd, _scaleNormalizedStressFromDistancesManifold);
771
+ export const neighborhoodPreservation1Hop = dispatchGraphLayout4("neighborhoodPreservation1Hop", _neighborhoodPreservation1Hop2d, _neighborhoodPreservation1Hop3d, _neighborhoodPreservation1HopNd, _neighborhoodPreservation1HopManifold);
772
+ export const neighborhoodPreservation2Hop = dispatchGraphLayout4("neighborhoodPreservation2Hop", _neighborhoodPreservation2Hop2d, _neighborhoodPreservation2Hop3d, _neighborhoodPreservation2HopNd, _neighborhoodPreservation2HopManifold);
773
+ export const sampledNp1 = dispatchGraphLayout4("sampledNp1", _sampledNp12d, _sampledNp13d, _sampledNp1Nd, _sampledNp1Manifold);
774
+ export const sampledNp2 = dispatchGraphLayout4("sampledNp2", _sampledNp22d, _sampledNp23d, _sampledNp2Nd, _sampledNp2Manifold);
775
+ export const gabrielGraphProperty = dispatchGraphLayout4("gabrielGraphProperty", _gabrielGraphProperty2d, _gabrielGraphProperty3d, _gabrielGraphPropertyNd, _gabrielGraphPropertyManifold);
776
+ export const nodeResolution = dispatchLayout4("nodeResolution", _nodeResolution2d, _nodeResolution3d, _nodeResolutionNd, _nodeResolutionManifold);
777
+ export const drngPreservation = dispatchGraphLayout4("drngPreservation", _drngPreservation2d, _drngPreservation3d, _drngPreservationNd, _drngPreservationManifold);
778
+ export const dggPreservation = dispatchGraphLayout4("dggPreservation", _dggPreservation2d, _dggPreservation3d, _dggPreservationNd, _dggPreservationManifold);
779
+ export const idealEdgeLengths = dispatchGraphLayout4("idealEdgeLengths", _idealEdgeLengths2d, _idealEdgeLengths3d, _idealEdgeLengthsNd, _idealEdgeLengthsManifold);
780
+ export const idealEdgeLengthsWithUnit = dispatchGraphLayout4("idealEdgeLengthsWithUnit", _idealEdgeLengthsWithUnit2d, _idealEdgeLengthsWithUnit3d, _idealEdgeLengthsWithUnitNd, _idealEdgeLengthsWithUnitManifold);
781
+ export const layoutDegeneracy = dispatchGraphLayout4("layoutDegeneracy", _layoutDegeneracy2d, _layoutDegeneracy3d, _layoutDegeneracyNd, _layoutDegeneracyManifold);
782
+ export const gabrielGraphEdges = dispatchLayout4("gabrielGraphEdges", _gabrielGraphEdges2d, _gabrielGraphEdges3d, _gabrielGraphEdgesNd, _gabrielGraphEdgesManifold);
783
+ export const relativeNeighborhoodEdges = dispatchLayout4("relativeNeighborhoodEdges", _relativeNeighborhoodEdges2d, _relativeNeighborhoodEdges3d, _relativeNeighborhoodEdgesNd, _relativeNeighborhoodEdgesManifold);
784
+ export const landmarkStratifiedRta = dispatchGraphLayout4("landmarkStratifiedRta", _landmarkStratifiedRta2d, _landmarkStratifiedRta3d, _landmarkStratifiedRtaNd, _landmarkStratifiedRtaManifold);
785
+ export const landmarkStratifiedRtaDetail = dispatchGraphLayout4("landmarkStratifiedRtaDetail", _landmarkStratifiedRtaDetail2d, _landmarkStratifiedRtaDetail3d, _landmarkStratifiedRtaDetailNd, _landmarkStratifiedRtaDetailManifold);
786
+ export const landmarkStratifiedRtaFromLandmarks = dispatchLayout4("landmarkStratifiedRtaFromLandmarks", _landmarkStratifiedRtaFromLandmarks2d, _landmarkStratifiedRtaFromLandmarks3d, _landmarkStratifiedRtaFromLandmarksNd, _landmarkStratifiedRtaFromLandmarksManifold);
787
+ export const torusCrossingNumber = dispatchGraphLayout4("torusCrossingNumber", _torusCrossingNumber2d, null, null, _torusCrossingNumberManifold);
788
+ export const crossingEdgesTorus = dispatchGraphLayout4("crossingEdgesTorus", _crossingEdgesTorus2d, null, null, _crossingEdgesTorusManifold);
789
+ export const torusLayoutEdgeSegments = dispatchGraphLayout4("torusLayoutEdgeSegments", _torusLayoutEdgeSegments2d, null, null, _torusLayoutEdgeSegmentsManifold);
790
+ export const cqKmeans = dispatchLayout4("cqKmeans", _cqKmeans2d, _cqKmeans3d, _cqKmeansNd, _cqKmeansManifold);
791
+ export const cqHac = dispatchLayout4("cqHac", _cqHac2d, _cqHac3d, _cqHacNd, _cqHacManifold);
792
+ export const distanceConsistency = dispatchLayout4("distanceConsistency", _distanceConsistency2d, _distanceConsistency3d, _distanceConsistencyNd, _distanceConsistencyManifold);
793
+ export const distributionConsistency = dispatchLayout4("distributionConsistency", _distributionConsistency2d, _distributionConsistency3d, _distributionConsistencyNd, _distributionConsistencyManifold);
794
+ export const sepmeKnng = dispatchLayout4("sepmeKnng", _sepmeKnng2d, _sepmeKnng3d, _sepmeKnngNd, _sepmeKnngManifold);
795
+ export const sepmeRng = dispatchLayout4("sepmeRng", _sepmeRng2d, _sepmeRng3d, _sepmeRngNd, _sepmeRngManifold);
796
+ export const sepmeGab = dispatchLayout4("sepmeGab", _sepmeGab2d, _sepmeGab3d, _sepmeGabNd, _sepmeGabManifold);
797
+ export const sepmeGong = dispatchLayout4("sepmeGong", _sepmeGong2d, _sepmeGong3d, _sepmeGongNd, _sepmeGongManifold);
798
+ export const neighborhoodHit = dispatchLayout4("neighborhoodHit", _neighborhoodHit2d, _neighborhoodHit3d, _neighborhoodHitNd, _neighborhoodHitManifold);
799
+ export const silhouetteScore = dispatchLayout4("silhouetteScore", _silhouetteScore2d, _silhouetteScore3d, _silhouetteScoreNd, _silhouetteScoreManifold);
800
+ export const calinskiHarabaszScore = dispatchLayout4("calinskiHarabaszScore", _calinskiHarabaszScore2d, _calinskiHarabaszScore3d, _calinskiHarabaszScoreNd, _calinskiHarabaszScoreManifold);
801
+ export const daviesBouldinScore = dispatchLayout4("daviesBouldinScore", _daviesBouldinScore2d, _daviesBouldinScore3d, _daviesBouldinScoreNd, _daviesBouldinScoreManifold);
802
+ export const pairwiseDistanceOverlapError = dispatchLayout4("pairwiseDistanceOverlapError", _pairwiseDistanceOverlapError2d, _pairwiseDistanceOverlapError3d, _pairwiseDistanceOverlapErrorNd, _pairwiseDistanceOverlapErrorManifold);
803
+
373
804
  export {
805
+ AdjustedPatchNigDetail,
374
806
  AmgPcgBatchResult,
375
807
  AmgPcgSolveResult,
376
808
  AmgPcgSolver,
377
809
  AnisotropicLaplacianResult,
378
810
  BackboneResult,
379
811
  BackboneSolver,
812
+ ChebyshevDogKernel,
380
813
  ClassDensityResult,
814
+ ClassicalMds,
381
815
  ClusterAreaReport,
382
816
  ClusterRefineSolver,
817
+ CoarseBackbone,
383
818
  CoarseBackboneResult,
384
819
  CoarsenedGraphResult,
385
820
  CoarsenedHierarchyResult,
@@ -387,7 +822,9 @@ export {
387
822
  CrossingSummary,
388
823
  CsrGraph,
389
824
  CsrMatrix,
825
+ DatasetInfo,
390
826
  DelaunayResult,
827
+ DijkstraWorkspace,
391
828
  DogStats,
392
829
  DogVaradhanLandmarks,
393
830
  EffectiveResistanceResult,
@@ -395,35 +832,30 @@ export {
395
832
  FdebSolver,
396
833
  FitFieldStats,
397
834
  ForbidOverlapRemoval,
398
- ForceAtlas2Solver,
399
- FruchtermanReingoldSolver,
400
835
  GTreeOverlapRemoval,
401
836
  GemSolver,
402
837
  GripSolver,
403
838
  GroupInABoxSolver,
404
- GuMapSolver,
839
+ Hde,
405
840
  HybridKnnResult,
406
841
  IbUmapSolver,
407
- KMeansResult,
408
- KamadaKawaiSolver,
409
842
  KnnGraph,
843
+ KorenSpectral,
410
844
  LargestConnectedComponentResult,
411
845
  LayoutDegeneracy,
412
- LeidenResult,
413
- LinLogSolver,
414
- LouvainResult,
415
- ManifoldLayout2d,
416
- MaxentStressSolver,
417
846
  MetricReport,
418
847
  MinimumAngleSummary,
419
848
  NorMetricsResult,
420
849
  PacmapBackboneResult,
421
850
  PartitionAgreementResult,
422
851
  PfsPrimeOverlapRemoval,
852
+ PivotMds,
423
853
  PrismDistortion,
424
854
  PrismOverlapRemoval,
855
+ RdMds,
425
856
  ResistanceCurvatureFlowResult,
426
857
  ResistanceCurvatureStep,
858
+ RhghLandmarks,
427
859
  RhghLandmarksResult,
428
860
  RtaEvaluation,
429
861
  ScreenedPoissonField2d,
@@ -431,8 +863,7 @@ export {
431
863
  ScreenedPoissonResult,
432
864
  SelLayoutSolver,
433
865
  SeparationConstraint,
434
- SfcLayoutSolver,
435
- SgdSolver,
866
+ SfcLayout,
436
867
  Sparse12HopPairs,
437
868
  SparseBarrierStats,
438
869
  SparseProbabilities,
@@ -441,40 +872,48 @@ export {
441
872
  SpatialRefinerStats,
442
873
  SpectralEmbeddingResult,
443
874
  SpectralMomentStats,
444
- StressMajorizationSolver,
445
- TFdpSolver,
875
+ StressEvaluation,
446
876
  TorusCrossing,
447
- TsNetSolver,
877
+ TsNetStage,
878
+ TwinDeclutterer,
448
879
  TwoHopCsr,
449
880
  TwoHopKnnResult,
450
- YifanHuSolver,
881
+ adaptiveChebyshevDegree,
882
+ adaptiveChebyshevDegreeScaled,
451
883
  adjustedPatchNig,
884
+ adjustedPatchNigDetail,
452
885
  adjustedPatchNigMultiscale,
453
886
  alignClusteredCentroids,
454
887
  allPairsBfs,
455
- angularResolutionV6,
888
+ allPairsDijkstra,
889
+ angularResolution,
456
890
  anisotropicLaplacian,
457
891
  applyRelativeDistanceFloor,
458
- aspectRatioV6,
892
+ aspectRatio,
459
893
  assignLayers,
460
894
  bfsSingleSource,
461
895
  buildCapped12hopKnn,
896
+ buildDogTerms,
462
897
  buildGumap12hopPriorityCsr,
463
898
  buildHybridAdaptiveKnn,
464
899
  buildPure2hopKnn,
900
+ buildRegularizedDogTerms,
465
901
  buildRerankKnn,
466
- calinskiHarabaszScore,
467
902
  chebyshevDogJlEmbedding,
468
903
  chebyshevDogJlEmbeddingMatrix,
469
904
  chebyshevHeatSpmv,
470
905
  chebyshevHeatSpmvMatrix,
471
906
  classDensityMeasure,
907
+ classicalMds,
472
908
  classicalMds2d,
909
+ classicalMdsFromDistances,
473
910
  clusterAreaFaithfulness,
474
911
  clusterAreaFaithfulnessDetail,
475
912
  coarseBackboneInit,
476
913
  coarsenGraph,
914
+ combinatorialLaplacian,
477
915
  compute2hopNeighborhoodSizes,
916
+ computeChebyshevBandpassCoefficients,
478
917
  computeDiffusionEmbedding,
479
918
  computeEffectiveResistances,
480
919
  computeFuzzySimplicialSet,
@@ -483,64 +922,71 @@ export {
483
922
  computeMedian2hopPerplexity,
484
923
  computeNodewise2hopPerplexities,
485
924
  computePivotedRhghLandmarks,
925
+ computePivotedRhghLandmarksResult,
486
926
  computeRegularizedDogVaradhanLandmarks,
487
927
  computeRegularizedDogVaradhanLandmarksFromMatrix,
488
928
  computeResistanceEmbedding,
489
- cqHac,
490
- cqKmeans,
491
929
  crossingEdges,
492
- crossingEdgesTorus,
930
+ crossingEdgesHyperbolic,
931
+ crossingEdgesSpherical,
493
932
  crossingSummary,
494
933
  crosslessness,
495
934
  cycleEdges,
496
- daviesBouldinScore,
935
+ datasetCatalog,
936
+ datasetInfo,
937
+ declutterTwins2d,
497
938
  delaunayToCsr,
498
939
  delaunayTriangulation,
499
- dggPreservation,
500
- distanceConsistency,
501
- distributionConsistency,
502
- drngPreservation,
940
+ dijkstraSingleSource,
503
941
  edgeAngle,
504
- evaluateMetrics,
505
942
  extract1hop2hopCsr,
506
943
  extractQuadrilateralBackbone,
507
944
  extractSparse1hop2hopPairs,
945
+ extractSparse1hop2hopPairsWithMode,
508
946
  findAbParams,
509
- gabrielGraphEdges,
510
- gabrielGraphPropertyV6,
947
+ generateHyperbolicTree,
511
948
  generateLayeredConstraints,
949
+ generateLayeredDag,
950
+ generateSbmGraph,
951
+ generateSphericalGrid,
952
+ generateSphericalIcosphere,
953
+ generateTorusGrid,
954
+ generateWeightedGraph,
955
+ geodesicDistortion,
512
956
  graph12hopRowNormalizedProbabilities,
957
+ graph12hopRowNormalizedProbabilitiesWithOptions,
513
958
  graphRowNormalizedProbabilities,
514
959
  hde,
515
960
  hdeNd,
516
- idealEdgeLengthsV6,
517
- idealEdgeLengthsWithUnit,
961
+ hyperbolicCrossingNumber,
518
962
  initSync,
519
963
  kmeansPlusPlus,
520
964
  korenSpectralInit,
521
965
  labelPropagation,
522
- landmarkStratifiedRta,
523
- landmarkStratifiedRtaDetail,
524
- landmarkStratifiedRtaFromLandmarks,
525
- layoutDegeneracy,
966
+ laplacian,
526
967
  leidenCommunities,
968
+ listDatasets,
969
+ lorentzDistance,
970
+ lorentzEinsteinMidpoint,
971
+ lorentzExpMap,
972
+ lorentzLogMap,
973
+ lorentzToPoincarePoint,
527
974
  louvainCoarsen,
528
975
  louvainCommunities,
529
976
  minimumAngle,
530
977
  minimumAngleSummary,
531
- neighborhoodHit,
532
- neighborhoodPreservation1Hop,
533
- neighborhoodPreservation2HopV6,
534
- nodeResolutionV6,
535
978
  norMetrics,
536
979
  norMetricsWithoutGraph,
537
980
  normalizeLayout2d,
538
- pairwiseDistanceOverlapError,
539
981
  parseCsrCsv,
540
982
  partialBfsKnn,
541
983
  partitionAgreement,
984
+ pivotMds,
985
+ pivotMdsFromDistances,
542
986
  pivotMdsInit,
987
+ pivotMdsWithPivots,
543
988
  poincareDistance,
989
+ poincareEinsteinMidpoint,
544
990
  poincareMobiusAdd,
545
991
  prismDistortion,
546
992
  prismDistortionWithEdges,
@@ -549,41 +995,38 @@ export {
549
995
  projectClusteredLayoutWithRadii,
550
996
  projectClusteredRectangleNoOverlap2d,
551
997
  projectLayoutAxis,
998
+ projectPsdSpectralFilter,
552
999
  projectRectangleNoOverlap2d,
1000
+ randomWalkLaplacian,
553
1001
  rdMds,
554
1002
  rectangleOverlaps,
555
1003
  refineClusterLayout,
556
- relativeNeighborhoodEdges,
557
1004
  removeCycles,
558
1005
  representativeMds,
559
1006
  resistanceCurvatureFlow,
560
1007
  robustNormalizeLayout2d,
561
1008
  sampledCrossingNumber,
562
1009
  sampledCrosslessness,
563
- sampledNp1,
564
- sampledNp2,
565
- sampledScaleNormalizedStress,
566
- scaleNormalizedStress,
567
- scaleNormalizedStressFromDistances,
568
1010
  selectMaxminSpPivots,
569
- sepmeGab,
570
- sepmeGong,
571
- sepmeKnng,
572
- sepmeRng,
573
1011
  setPanicHook,
574
- silhouetteScore,
1012
+ shiftedNormalizedLaplacian,
575
1013
  smallestLaplacianEigenpairs,
576
1014
  spectralClustering,
577
1015
  spectralMomentStats,
1016
+ sphericalCrossingNumber,
578
1017
  sphericalDistance,
579
1018
  sprawlterNn,
580
1019
  sprawlterNnRadii,
581
1020
  squarifiedTreemap,
582
1021
  sweepCrossingAngle,
583
1022
  sweepCrossingNumber,
1023
+ symmetricEigenJacobi,
1024
+ symmetricNormalizedLaplacian,
584
1025
  symmetrizeRowNormalized,
585
- torusCrossingNumber,
586
1026
  torusDistance,
1027
+ torusEdgeSegments,
1028
+ torusSpectralPhaseInit,
1029
+ transitiveReduction,
587
1030
  wasmMemory,
588
1031
  wasm_start,
589
1032
  wrapTorusPoint,