egraph 6.0.0-alpha.7 → 6.0.0-alpha.9
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 +93 -17
- package/package.json +1 -1
- package/pkg/README.md +93 -17
- package/pkg/egraph_wasm.d.ts +4189 -1368
- package/pkg/egraph_wasm.js +18332 -6185
- package/pkg/egraph_wasm_bg.wasm +0 -0
- package/pkg/index.d.ts +4971 -1495
- package/pkg/index.js +494 -72
package/pkg/index.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/* @ts-self-types="./index.d.ts" */
|
|
2
2
|
import init, {
|
|
3
|
-
|
|
4
|
-
LayoutNd as _LayoutNd,
|
|
3
|
+
AdjustedPatchNigDetail,
|
|
5
4
|
AmgPcgBatchResult,
|
|
6
5
|
AmgPcgSolveResult,
|
|
7
6
|
AmgPcgSolver,
|
|
8
7
|
AnisotropicLaplacianResult,
|
|
8
|
+
ArenaOctree3d as _ArenaOctree3d,
|
|
9
|
+
BackboneResult,
|
|
10
|
+
BackboneSolver,
|
|
11
|
+
ChebyshevDogKernel,
|
|
12
|
+
ClassDensityResult,
|
|
13
|
+
ClusterAreaReport,
|
|
14
|
+
ClusterRefineSolver,
|
|
9
15
|
CoarseBackboneResult,
|
|
10
16
|
CoarsenedGraphResult,
|
|
11
17
|
CoarsenedHierarchyResult,
|
|
@@ -13,76 +19,223 @@ import init, {
|
|
|
13
19
|
CrossingSummary,
|
|
14
20
|
CsrGraph,
|
|
15
21
|
CsrMatrix,
|
|
22
|
+
DatasetInfo,
|
|
16
23
|
DelaunayResult,
|
|
24
|
+
DijkstraWorkspace,
|
|
17
25
|
DogStats,
|
|
18
26
|
DogVaradhanLandmarks,
|
|
27
|
+
DynamicKdTree as _DynamicKdTree,
|
|
19
28
|
EffectiveResistanceResult,
|
|
20
29
|
EigenResult,
|
|
21
|
-
FdebSolver,
|
|
30
|
+
FdebSolver as _FdebSolver,
|
|
22
31
|
FitFieldStats,
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
ForbidOverlapRemoval,
|
|
33
|
+
ForceAtlas2Solver as _ForceAtlas2Solver,
|
|
34
|
+
FruchtermanReingoldSolver as _FruchtermanReingoldSolver,
|
|
35
|
+
GTreeOverlapRemoval,
|
|
36
|
+
GemSolver,
|
|
37
|
+
GripSolver,
|
|
38
|
+
GroupInABoxSolver,
|
|
39
|
+
GuMapSolver as _GuMapSolver,
|
|
25
40
|
HybridKnnResult,
|
|
26
41
|
IbUmapSolver,
|
|
27
|
-
KMeansResult,
|
|
28
|
-
KamadaKawaiSolver,
|
|
42
|
+
KMeansResult as _KMeansResult,
|
|
43
|
+
KamadaKawaiSolver as _KamadaKawaiSolver,
|
|
29
44
|
KnnGraph,
|
|
45
|
+
LabelPropagationResult as _LabelPropagationResult,
|
|
30
46
|
LargestConnectedComponentResult,
|
|
47
|
+
Layout2d as _Layout2d,
|
|
31
48
|
LayoutDegeneracy,
|
|
32
|
-
|
|
33
|
-
|
|
49
|
+
LayoutNd as _LayoutNd,
|
|
50
|
+
LeidenResult as _LeidenResult,
|
|
51
|
+
LinLogSolver as _LinLogSolver,
|
|
52
|
+
LouvainResult as _LouvainResult,
|
|
53
|
+
ManifoldLayout2d as _ManifoldLayout2d,
|
|
54
|
+
MaxentStressSolver as _MaxentStressSolver,
|
|
34
55
|
MetricReport,
|
|
35
56
|
MinimumAngleSummary,
|
|
57
|
+
NorMetricsResult,
|
|
36
58
|
PacmapBackboneResult,
|
|
59
|
+
PartitionAgreementResult,
|
|
60
|
+
PfsPrimeOverlapRemoval,
|
|
37
61
|
PrismDistortion,
|
|
38
62
|
PrismOverlapRemoval,
|
|
39
63
|
ResistanceCurvatureFlowResult,
|
|
40
64
|
ResistanceCurvatureStep,
|
|
65
|
+
RhghLandmarks,
|
|
41
66
|
RhghLandmarksResult,
|
|
42
67
|
RtaEvaluation,
|
|
43
68
|
ScreenedPoissonField2d,
|
|
44
69
|
ScreenedPoissonRefiner,
|
|
45
70
|
ScreenedPoissonResult,
|
|
71
|
+
SelLayoutSolver,
|
|
46
72
|
SeparationConstraint,
|
|
47
|
-
|
|
73
|
+
SfcLayoutSolver,
|
|
74
|
+
SgdSolver as _SgdSolver,
|
|
48
75
|
Sparse12HopPairs,
|
|
49
76
|
SparseBarrierStats,
|
|
50
77
|
SparseProbabilities,
|
|
51
78
|
SpatialIntruderRefiner,
|
|
52
79
|
SpatialRefinerRoundStats,
|
|
53
80
|
SpatialRefinerStats,
|
|
81
|
+
SpectralClusteringResult as _SpectralClusteringResult,
|
|
54
82
|
SpectralEmbeddingResult,
|
|
55
83
|
SpectralMomentStats,
|
|
56
|
-
|
|
84
|
+
StressEvaluation,
|
|
85
|
+
StressMajorizationSolver as _StressMajorizationSolver,
|
|
57
86
|
TFdpSolver,
|
|
58
87
|
TorusCrossing,
|
|
59
|
-
TsNetSolver,
|
|
88
|
+
TsNetSolver as _TsNetSolver,
|
|
89
|
+
TsNetStage,
|
|
90
|
+
TwinDeclutterer,
|
|
60
91
|
TwoHopCsr,
|
|
61
92
|
TwoHopKnnResult,
|
|
62
|
-
YifanHuSolver,
|
|
93
|
+
YifanHuSolver as _YifanHuSolver,
|
|
94
|
+
_calinskiHarabaszScore2d,
|
|
95
|
+
_calinskiHarabaszScoreManifold,
|
|
96
|
+
_calinskiHarabaszScoreNd,
|
|
97
|
+
_cqHac2d,
|
|
98
|
+
_cqHacManifold,
|
|
99
|
+
_cqHacNd,
|
|
100
|
+
_cqKmeans2d,
|
|
101
|
+
_cqKmeansManifold,
|
|
102
|
+
_cqKmeansNd,
|
|
103
|
+
_crossingEdgesTorus2d,
|
|
104
|
+
_crossingEdgesTorusManifold,
|
|
105
|
+
_daviesBouldinScore2d,
|
|
106
|
+
_daviesBouldinScoreManifold,
|
|
107
|
+
_daviesBouldinScoreNd,
|
|
108
|
+
_dggPreservation2d,
|
|
109
|
+
_dggPreservationManifold,
|
|
110
|
+
_dggPreservationNd,
|
|
111
|
+
_distanceConsistency2d,
|
|
112
|
+
_distanceConsistencyManifold,
|
|
113
|
+
_distanceConsistencyNd,
|
|
114
|
+
_distributionConsistency2d,
|
|
115
|
+
_distributionConsistencyManifold,
|
|
116
|
+
_distributionConsistencyNd,
|
|
117
|
+
_drngPreservation2d,
|
|
118
|
+
_drngPreservationManifold,
|
|
119
|
+
_drngPreservationNd,
|
|
120
|
+
_evaluateMetrics2d,
|
|
121
|
+
_evaluateMetrics2dWithOriginal,
|
|
122
|
+
_evaluateMetricsManifold,
|
|
123
|
+
_evaluateMetricsNd,
|
|
124
|
+
_gabrielGraphEdges2d,
|
|
125
|
+
_gabrielGraphEdgesManifold,
|
|
126
|
+
_gabrielGraphEdgesNd,
|
|
127
|
+
_gabrielGraphProperty2d,
|
|
128
|
+
_gabrielGraphPropertyManifold,
|
|
129
|
+
_gabrielGraphPropertyNd,
|
|
130
|
+
_idealEdgeLengths2d,
|
|
131
|
+
_idealEdgeLengthsManifold,
|
|
132
|
+
_idealEdgeLengthsNd,
|
|
133
|
+
_idealEdgeLengthsWithUnit2d,
|
|
134
|
+
_idealEdgeLengthsWithUnitManifold,
|
|
135
|
+
_idealEdgeLengthsWithUnitNd,
|
|
136
|
+
_landmarkStratifiedRta2d,
|
|
137
|
+
_landmarkStratifiedRtaDetail2d,
|
|
138
|
+
_landmarkStratifiedRtaDetailManifold,
|
|
139
|
+
_landmarkStratifiedRtaDetailNd,
|
|
140
|
+
_landmarkStratifiedRtaFromLandmarks2d,
|
|
141
|
+
_landmarkStratifiedRtaFromLandmarksManifold,
|
|
142
|
+
_landmarkStratifiedRtaFromLandmarksNd,
|
|
143
|
+
_landmarkStratifiedRtaManifold,
|
|
144
|
+
_landmarkStratifiedRtaNd,
|
|
145
|
+
_layoutDegeneracy2d,
|
|
146
|
+
_layoutDegeneracyManifold,
|
|
147
|
+
_layoutDegeneracyNd,
|
|
148
|
+
_neighborhoodHit2d,
|
|
149
|
+
_neighborhoodHitManifold,
|
|
150
|
+
_neighborhoodHitNd,
|
|
151
|
+
_neighborhoodPreservation1Hop2d,
|
|
152
|
+
_neighborhoodPreservation1HopManifold,
|
|
153
|
+
_neighborhoodPreservation1HopNd,
|
|
154
|
+
_neighborhoodPreservation2Hop2d,
|
|
155
|
+
_neighborhoodPreservation2HopManifold,
|
|
156
|
+
_neighborhoodPreservation2HopNd,
|
|
157
|
+
_nodeResolution2d,
|
|
158
|
+
_nodeResolutionManifold,
|
|
159
|
+
_nodeResolutionNd,
|
|
160
|
+
_pairwiseDistanceOverlapError2d,
|
|
161
|
+
_pairwiseDistanceOverlapErrorManifold,
|
|
162
|
+
_pairwiseDistanceOverlapErrorNd,
|
|
163
|
+
_relativeNeighborhoodEdges2d,
|
|
164
|
+
_relativeNeighborhoodEdgesManifold,
|
|
165
|
+
_relativeNeighborhoodEdgesNd,
|
|
166
|
+
_sampledNp12d,
|
|
167
|
+
_sampledNp1Manifold,
|
|
168
|
+
_sampledNp1Nd,
|
|
169
|
+
_sampledNp22d,
|
|
170
|
+
_sampledNp2Manifold,
|
|
171
|
+
_sampledNp2Nd,
|
|
172
|
+
_sampledScaleNormalizedStress2d,
|
|
173
|
+
_sampledScaleNormalizedStressManifold,
|
|
174
|
+
_sampledScaleNormalizedStressNd,
|
|
175
|
+
_scaleNormalizedStress2d,
|
|
176
|
+
_scaleNormalizedStressDetail2d,
|
|
177
|
+
_scaleNormalizedStressDetailManifold,
|
|
178
|
+
_scaleNormalizedStressDetailNd,
|
|
179
|
+
_scaleNormalizedStressFromDistances2d,
|
|
180
|
+
_scaleNormalizedStressFromDistancesManifold,
|
|
181
|
+
_scaleNormalizedStressFromDistancesNd,
|
|
182
|
+
_scaleNormalizedStressManifold,
|
|
183
|
+
_scaleNormalizedStressNd,
|
|
184
|
+
_sepmeGab2d,
|
|
185
|
+
_sepmeGabManifold,
|
|
186
|
+
_sepmeGabNd,
|
|
187
|
+
_sepmeGong2d,
|
|
188
|
+
_sepmeGongManifold,
|
|
189
|
+
_sepmeGongNd,
|
|
190
|
+
_sepmeKnng2d,
|
|
191
|
+
_sepmeKnngManifold,
|
|
192
|
+
_sepmeKnngNd,
|
|
193
|
+
_sepmeRng2d,
|
|
194
|
+
_sepmeRngManifold,
|
|
195
|
+
_sepmeRngNd,
|
|
196
|
+
_silhouetteScore2d,
|
|
197
|
+
_silhouetteScoreManifold,
|
|
198
|
+
_silhouetteScoreNd,
|
|
199
|
+
_torusCrossingNumber2d,
|
|
200
|
+
_torusCrossingNumberManifold,
|
|
201
|
+
_torusLayoutEdgeSegments2d,
|
|
202
|
+
_torusLayoutEdgeSegmentsManifold,
|
|
203
|
+
adaptiveChebyshevDegree,
|
|
204
|
+
adaptiveChebyshevDegreeScaled,
|
|
63
205
|
adjustedPatchNig,
|
|
206
|
+
adjustedPatchNigDetail,
|
|
64
207
|
adjustedPatchNigMultiscale,
|
|
65
208
|
alignClusteredCentroids,
|
|
66
209
|
allPairsBfs,
|
|
67
|
-
|
|
210
|
+
allPairsDijkstra,
|
|
211
|
+
angularResolution,
|
|
68
212
|
anisotropicLaplacian,
|
|
69
213
|
applyRelativeDistanceFloor,
|
|
70
|
-
|
|
214
|
+
aspectRatio,
|
|
71
215
|
assignLayers,
|
|
72
216
|
bfsSingleSource,
|
|
73
217
|
buildCapped12hopKnn,
|
|
218
|
+
buildDogTerms,
|
|
74
219
|
buildGumap12hopPriorityCsr,
|
|
75
220
|
buildHybridAdaptiveKnn,
|
|
76
221
|
buildPure2hopKnn,
|
|
222
|
+
buildRegularizedDogTerms,
|
|
77
223
|
buildRerankKnn,
|
|
78
224
|
chebyshevDogJlEmbedding,
|
|
79
225
|
chebyshevDogJlEmbeddingMatrix,
|
|
80
226
|
chebyshevHeatSpmv,
|
|
81
227
|
chebyshevHeatSpmvMatrix,
|
|
228
|
+
classDensityMeasure,
|
|
229
|
+
classicalMds,
|
|
82
230
|
classicalMds2d,
|
|
231
|
+
classicalMdsFromDistances,
|
|
232
|
+
clusterAreaFaithfulness,
|
|
233
|
+
clusterAreaFaithfulnessDetail,
|
|
83
234
|
coarseBackboneInit,
|
|
84
235
|
coarsenGraph,
|
|
236
|
+
combinatorialLaplacian,
|
|
85
237
|
compute2hopNeighborhoodSizes,
|
|
238
|
+
computeChebyshevBandpassCoefficients,
|
|
86
239
|
computeDiffusionEmbedding,
|
|
87
240
|
computeEffectiveResistances,
|
|
88
241
|
computeFuzzySimplicialSet,
|
|
@@ -91,50 +244,71 @@ import init, {
|
|
|
91
244
|
computeMedian2hopPerplexity,
|
|
92
245
|
computeNodewise2hopPerplexities,
|
|
93
246
|
computePivotedRhghLandmarks,
|
|
247
|
+
computePivotedRhghLandmarksResult,
|
|
94
248
|
computeRegularizedDogVaradhanLandmarks,
|
|
95
249
|
computeRegularizedDogVaradhanLandmarksFromMatrix,
|
|
96
250
|
computeResistanceEmbedding,
|
|
97
251
|
crossingEdges,
|
|
98
|
-
|
|
252
|
+
crossingEdgesHyperbolic,
|
|
253
|
+
crossingEdgesSpherical,
|
|
99
254
|
crossingSummary,
|
|
100
255
|
crosslessness,
|
|
101
256
|
cycleEdges,
|
|
257
|
+
datasetCatalog,
|
|
258
|
+
datasetInfo,
|
|
259
|
+
declutterTwins2d,
|
|
102
260
|
delaunayToCsr,
|
|
103
261
|
delaunayTriangulation,
|
|
104
|
-
|
|
105
|
-
drngPreservation,
|
|
262
|
+
dijkstraSingleSource,
|
|
106
263
|
edgeAngle,
|
|
107
|
-
evaluateMetrics,
|
|
108
264
|
extract1hop2hopCsr,
|
|
265
|
+
extractQuadrilateralBackbone,
|
|
109
266
|
extractSparse1hop2hopPairs,
|
|
267
|
+
extractSparse1hop2hopPairsWithMode,
|
|
110
268
|
findAbParams,
|
|
111
|
-
|
|
112
|
-
gabrielGraphPropertyV6,
|
|
269
|
+
generateHyperbolicTree,
|
|
113
270
|
generateLayeredConstraints,
|
|
271
|
+
generateLayeredDag,
|
|
272
|
+
generateSbmGraph,
|
|
273
|
+
generateSphericalGrid,
|
|
274
|
+
generateSphericalIcosphere,
|
|
275
|
+
generateTorusGrid,
|
|
276
|
+
generateWeightedGraph,
|
|
277
|
+
geodesicDistortion,
|
|
114
278
|
graph12hopRowNormalizedProbabilities,
|
|
279
|
+
graph12hopRowNormalizedProbabilitiesWithOptions,
|
|
115
280
|
graphRowNormalizedProbabilities,
|
|
116
|
-
|
|
117
|
-
|
|
281
|
+
hde,
|
|
282
|
+
hdeNd,
|
|
283
|
+
hyperbolicCrossingNumber,
|
|
118
284
|
initSync,
|
|
119
285
|
kmeansPlusPlus,
|
|
120
286
|
korenSpectralInit,
|
|
121
287
|
labelPropagation,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
288
|
+
laplacian,
|
|
289
|
+
leidenCommunities,
|
|
290
|
+
listDatasets,
|
|
291
|
+
lorentzDistance,
|
|
292
|
+
lorentzEinsteinMidpoint,
|
|
293
|
+
lorentzExpMap,
|
|
294
|
+
lorentzLogMap,
|
|
295
|
+
lorentzToPoincarePoint,
|
|
126
296
|
louvainCoarsen,
|
|
127
297
|
louvainCommunities,
|
|
128
298
|
minimumAngle,
|
|
129
299
|
minimumAngleSummary,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
nodeResolutionV6,
|
|
300
|
+
norMetrics,
|
|
301
|
+
norMetricsWithoutGraph,
|
|
133
302
|
normalizeLayout2d,
|
|
134
303
|
parseCsrCsv,
|
|
135
304
|
partialBfsKnn,
|
|
305
|
+
partitionAgreement,
|
|
306
|
+
pivotMds,
|
|
307
|
+
pivotMdsFromDistances,
|
|
136
308
|
pivotMdsInit,
|
|
309
|
+
pivotMdsWithPivots,
|
|
137
310
|
poincareDistance,
|
|
311
|
+
poincareEinsteinMidpoint,
|
|
138
312
|
poincareMobiusAdd,
|
|
139
313
|
prismDistortion,
|
|
140
314
|
prismDistortionWithEdges,
|
|
@@ -143,32 +317,38 @@ import init, {
|
|
|
143
317
|
projectClusteredLayoutWithRadii,
|
|
144
318
|
projectClusteredRectangleNoOverlap2d,
|
|
145
319
|
projectLayoutAxis,
|
|
320
|
+
projectPsdSpectralFilter,
|
|
146
321
|
projectRectangleNoOverlap2d,
|
|
322
|
+
randomWalkLaplacian,
|
|
147
323
|
rdMds,
|
|
148
324
|
rectangleOverlaps,
|
|
149
|
-
|
|
325
|
+
refineClusterLayout,
|
|
150
326
|
removeCycles,
|
|
151
327
|
representativeMds,
|
|
152
328
|
resistanceCurvatureFlow,
|
|
153
329
|
robustNormalizeLayout2d,
|
|
154
330
|
sampledCrossingNumber,
|
|
155
331
|
sampledCrosslessness,
|
|
156
|
-
sampledNp1,
|
|
157
|
-
sampledNp2,
|
|
158
|
-
sampledScaleNormalizedStress,
|
|
159
|
-
scaleNormalizedStress,
|
|
160
|
-
scaleNormalizedStressFromDistances,
|
|
161
332
|
selectMaxminSpPivots,
|
|
162
333
|
setPanicHook,
|
|
334
|
+
shiftedNormalizedLaplacian,
|
|
163
335
|
smallestLaplacianEigenpairs,
|
|
164
336
|
spectralClustering,
|
|
165
337
|
spectralMomentStats,
|
|
338
|
+
sphericalCrossingNumber,
|
|
166
339
|
sphericalDistance,
|
|
340
|
+
sprawlterNn,
|
|
341
|
+
sprawlterNnRadii,
|
|
342
|
+
squarifiedTreemap,
|
|
167
343
|
sweepCrossingAngle,
|
|
168
344
|
sweepCrossingNumber,
|
|
345
|
+
symmetricEigenJacobi,
|
|
346
|
+
symmetricNormalizedLaplacian,
|
|
169
347
|
symmetrizeRowNormalized,
|
|
170
|
-
torusCrossingNumber,
|
|
171
348
|
torusDistance,
|
|
349
|
+
torusEdgeSegments,
|
|
350
|
+
torusSpectralPhaseInit,
|
|
351
|
+
transitiveReduction,
|
|
172
352
|
wasmMemory,
|
|
173
353
|
wasm_start,
|
|
174
354
|
wrapTorusPoint,
|
|
@@ -195,10 +375,77 @@ function attachCoordsView(LayoutClass) {
|
|
|
195
375
|
return LayoutClass;
|
|
196
376
|
}
|
|
197
377
|
|
|
378
|
+
function attachTypedView(ResultClass, methodName, ptrFn, lenFn, TypedCtor, cacheKey) {
|
|
379
|
+
if (typeof ResultClass?.prototype?.[ptrFn] === "function") {
|
|
380
|
+
ResultClass.prototype[methodName] = function () {
|
|
381
|
+
const buf = wasmMemory().buffer;
|
|
382
|
+
const ptr = this[ptrFn]();
|
|
383
|
+
const len = this[lenFn]();
|
|
384
|
+
const bufKey = cacheKey + "Buf";
|
|
385
|
+
if (
|
|
386
|
+
!this[cacheKey] ||
|
|
387
|
+
this[bufKey] !== buf ||
|
|
388
|
+
this[cacheKey].byteOffset !== ptr ||
|
|
389
|
+
this[cacheKey].length !== len
|
|
390
|
+
) {
|
|
391
|
+
this[cacheKey] = new TypedCtor(buf, ptr, len);
|
|
392
|
+
this[bufKey] = buf;
|
|
393
|
+
}
|
|
394
|
+
return this[cacheKey];
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
return ResultClass;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function attachSolverDispatch(SolverClass, { supportsNd = false, supportsManifold = false } = {}) {
|
|
401
|
+
const proto = SolverClass.prototype;
|
|
402
|
+
proto.step = function step(layout) {
|
|
403
|
+
if (layout instanceof _Layout2d) return this._step2d(layout);
|
|
404
|
+
if (supportsNd && layout instanceof _LayoutNd) return this._stepNd(layout);
|
|
405
|
+
if (supportsManifold && layout instanceof _ManifoldLayout2d) return this._stepManifold(layout);
|
|
406
|
+
throw new TypeError(`${SolverClass.name}.step: unsupported layout type`);
|
|
407
|
+
};
|
|
408
|
+
proto.runSteps = function runSteps(layout, steps) {
|
|
409
|
+
if (layout instanceof _Layout2d) return this._runSteps2d(layout, steps);
|
|
410
|
+
if (supportsNd && layout instanceof _LayoutNd) return this._runStepsNd(layout, steps);
|
|
411
|
+
if (supportsManifold && layout instanceof _ManifoldLayout2d) {
|
|
412
|
+
return this._runStepsManifold(layout, steps);
|
|
413
|
+
}
|
|
414
|
+
throw new TypeError(`${SolverClass.name}.runSteps: unsupported layout type`);
|
|
415
|
+
};
|
|
416
|
+
proto.run = function run(layout) {
|
|
417
|
+
if (layout instanceof _Layout2d) return this._run2d(layout);
|
|
418
|
+
if (supportsNd && layout instanceof _LayoutNd) return this._runNd(layout);
|
|
419
|
+
if (supportsManifold && layout instanceof _ManifoldLayout2d) return this._runManifold(layout);
|
|
420
|
+
throw new TypeError(`${SolverClass.name}.run: unsupported layout type`);
|
|
421
|
+
};
|
|
422
|
+
return SolverClass;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
function dispatchLayout3(name, fn2d, fnNd, fnManifold) {
|
|
426
|
+
return function (layout, ...args) {
|
|
427
|
+
if (layout instanceof _Layout2d) return fn2d(layout, ...args);
|
|
428
|
+
if (fnNd && layout instanceof _LayoutNd) return fnNd(layout, ...args);
|
|
429
|
+
if (fnManifold && layout instanceof _ManifoldLayout2d) return fnManifold(layout, ...args);
|
|
430
|
+
throw new TypeError(`${name}: unsupported layout type`);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
function dispatchGraphLayout3(name, fn2d, fnNd, fnManifold) {
|
|
435
|
+
return function (graph, layout, ...args) {
|
|
436
|
+
if (layout instanceof _Layout2d) return fn2d(graph, layout, ...args);
|
|
437
|
+
if (fnNd && layout instanceof _LayoutNd) return fnNd(graph, layout, ...args);
|
|
438
|
+
if (fnManifold && layout instanceof _ManifoldLayout2d) return fnManifold(graph, layout, ...args);
|
|
439
|
+
throw new TypeError(`${name}: unsupported layout type`);
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
|
|
198
443
|
/**
|
|
199
444
|
* Runs a cooperative iterative solver progressively within a per-frame time budget,
|
|
200
445
|
* yielding back to the browser event loop via `requestAnimationFrame` (or `setTimeout`
|
|
201
446
|
* in Node.js) between batches.
|
|
447
|
+
*
|
|
448
|
+
* Accepts `Layout2d`, `LayoutNd`, or `ManifoldLayout2d` polymorphically.
|
|
202
449
|
*/
|
|
203
450
|
export function runProgressive(solver, layout, onFrame, options = {}) {
|
|
204
451
|
const {
|
|
@@ -324,11 +571,141 @@ export function runProgressive(solver, layout, onFrame, options = {}) {
|
|
|
324
571
|
|
|
325
572
|
export const Layout2d = attachCoordsView(_Layout2d);
|
|
326
573
|
export const LayoutNd = attachCoordsView(_LayoutNd);
|
|
574
|
+
export const ManifoldLayout2d = attachCoordsView(_ManifoldLayout2d);
|
|
575
|
+
|
|
576
|
+
export const LouvainResult = attachTypedView(_LouvainResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
|
|
577
|
+
export const LeidenResult = attachTypedView(_LeidenResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
|
|
578
|
+
export const LabelPropagationResult = attachTypedView(_LabelPropagationResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
|
|
579
|
+
export const SpectralClusteringResult = attachTypedView(_SpectralClusteringResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView");
|
|
580
|
+
export const KMeansResult = attachTypedView(
|
|
581
|
+
attachTypedView(_KMeansResult, "labelsView", "labelsPtr", "labelsLen", Uint32Array, "_labelsView"),
|
|
582
|
+
"centroidsView",
|
|
583
|
+
"centroidsPtr",
|
|
584
|
+
"centroidsLen",
|
|
585
|
+
Float64Array,
|
|
586
|
+
"_centroidsView",
|
|
587
|
+
);
|
|
588
|
+
|
|
589
|
+
export const SgdSolver = attachSolverDispatch(_SgdSolver, { supportsNd: true, supportsManifold: true });
|
|
590
|
+
SgdSolver.prototype.runScheduleWindow = function runScheduleWindow(layout, startIter, count) {
|
|
591
|
+
if (layout instanceof _Layout2d) return this._runScheduleWindow2d(layout, startIter, count);
|
|
592
|
+
if (layout instanceof _ManifoldLayout2d) return this._runScheduleWindowManifold(layout, startIter, count);
|
|
593
|
+
throw new TypeError("SgdSolver.runScheduleWindow: expected Layout2d or ManifoldLayout2d");
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
export const TsNetSolver = attachSolverDispatch(_TsNetSolver, { supportsNd: true, supportsManifold: true });
|
|
597
|
+
export const GuMapSolver = attachSolverDispatch(_GuMapSolver, { supportsNd: true, supportsManifold: true });
|
|
598
|
+
export const FruchtermanReingoldSolver = attachSolverDispatch(_FruchtermanReingoldSolver, { supportsNd: true, supportsManifold: true });
|
|
599
|
+
|
|
600
|
+
export const StressMajorizationSolver = attachSolverDispatch(_StressMajorizationSolver, { supportsNd: true, supportsManifold: true });
|
|
601
|
+
StressMajorizationSolver.prototype.computeStress = function computeStress(layout) {
|
|
602
|
+
if (layout instanceof _Layout2d) return this._computeStress2d(layout);
|
|
603
|
+
if (layout instanceof _LayoutNd) return this._computeStressNd(layout);
|
|
604
|
+
if (layout instanceof _ManifoldLayout2d) return this._computeStressManifold(layout);
|
|
605
|
+
throw new TypeError("StressMajorizationSolver.computeStress: unsupported layout type");
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
export const KamadaKawaiSolver = attachSolverDispatch(_KamadaKawaiSolver, { supportsNd: true, supportsManifold: true });
|
|
609
|
+
KamadaKawaiSolver.prototype.computeStress = function computeStress(layout) {
|
|
610
|
+
if (layout instanceof _Layout2d) return this._computeStress2d(layout);
|
|
611
|
+
if (layout instanceof _LayoutNd) return this._computeStressNd(layout);
|
|
612
|
+
if (layout instanceof _ManifoldLayout2d) return this._computeStressManifold(layout);
|
|
613
|
+
throw new TypeError("KamadaKawaiSolver.computeStress: unsupported layout type");
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
export const LinLogSolver = attachSolverDispatch(_LinLogSolver, { supportsNd: true });
|
|
617
|
+
LinLogSolver.prototype.energy = function energy(layout) {
|
|
618
|
+
if (layout instanceof _Layout2d) return this._energy2d(layout);
|
|
619
|
+
if (layout instanceof _LayoutNd) return this._energyNd(layout);
|
|
620
|
+
throw new TypeError("LinLogSolver.energy: expected Layout2d or LayoutNd");
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
export const ForceAtlas2Solver = attachSolverDispatch(_ForceAtlas2Solver, { supportsNd: true });
|
|
624
|
+
export const YifanHuSolver = attachSolverDispatch(_YifanHuSolver, { supportsNd: true });
|
|
625
|
+
export const MaxentStressSolver = attachSolverDispatch(_MaxentStressSolver, { supportsNd: true });
|
|
626
|
+
export const FdebSolver = attachSolverDispatch(_FdebSolver, { supportsNd: true });
|
|
627
|
+
|
|
628
|
+
export const ArenaOctree3d = _ArenaOctree3d;
|
|
629
|
+
ArenaOctree3d.prototype.build = function build(coordsOrLayout) {
|
|
630
|
+
if (coordsOrLayout instanceof _LayoutNd) return this.buildNd(coordsOrLayout);
|
|
631
|
+
return this._buildFlat(coordsOrLayout);
|
|
632
|
+
};
|
|
633
|
+
ArenaOctree3d.prototype.buildWeighted = function buildWeighted(coordsOrLayout, masses) {
|
|
634
|
+
if (coordsOrLayout instanceof _LayoutNd) return this.buildWeightedNd(coordsOrLayout, masses);
|
|
635
|
+
return this._buildWeightedFlat(coordsOrLayout, masses);
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
export const DynamicKdTree = new Proxy(_DynamicKdTree, {
|
|
639
|
+
construct(target, args) {
|
|
640
|
+
if (args.length === 1 && args[0] instanceof _LayoutNd) {
|
|
641
|
+
return target.fromLayoutNd(args[0]);
|
|
642
|
+
}
|
|
643
|
+
return Reflect.construct(target, args);
|
|
644
|
+
},
|
|
645
|
+
});
|
|
646
|
+
|
|
647
|
+
export function evaluateMetrics(graph, layout, targets, ...args) {
|
|
648
|
+
if (layout instanceof _LayoutNd) return _evaluateMetricsNd(graph, layout, targets, ...args);
|
|
649
|
+
if (layout instanceof _ManifoldLayout2d) return _evaluateMetricsManifold(graph, layout, targets, ...args);
|
|
650
|
+
if (layout instanceof _Layout2d) {
|
|
651
|
+
const opt = args.length === 1 && args[0] && typeof args[0] === "object" && !Array.isArray(args[0]) ? args[0] : null;
|
|
652
|
+
if (opt && opt.originalLayout != null) {
|
|
653
|
+
return _evaluateMetrics2dWithOriginal(graph, layout, targets, opt, opt.originalLayout);
|
|
654
|
+
}
|
|
655
|
+
return _evaluateMetrics2d(graph, layout, targets, ...args);
|
|
656
|
+
}
|
|
657
|
+
throw new TypeError("evaluateMetrics: unsupported layout type");
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
export const scaleNormalizedStress = dispatchGraphLayout3("scaleNormalizedStress", _scaleNormalizedStress2d, _scaleNormalizedStressNd, _scaleNormalizedStressManifold);
|
|
661
|
+
export const scaleNormalizedStressDetail = dispatchGraphLayout3("scaleNormalizedStressDetail", _scaleNormalizedStressDetail2d, _scaleNormalizedStressDetailNd, _scaleNormalizedStressDetailManifold);
|
|
662
|
+
export const sampledScaleNormalizedStress = dispatchGraphLayout3("sampledScaleNormalizedStress", _sampledScaleNormalizedStress2d, _sampledScaleNormalizedStressNd, _sampledScaleNormalizedStressManifold);
|
|
663
|
+
export const scaleNormalizedStressFromDistances = dispatchLayout3("scaleNormalizedStressFromDistances", _scaleNormalizedStressFromDistances2d, _scaleNormalizedStressFromDistancesNd, _scaleNormalizedStressFromDistancesManifold);
|
|
664
|
+
export const neighborhoodPreservation1Hop = dispatchGraphLayout3("neighborhoodPreservation1Hop", _neighborhoodPreservation1Hop2d, _neighborhoodPreservation1HopNd, _neighborhoodPreservation1HopManifold);
|
|
665
|
+
export const neighborhoodPreservation2Hop = dispatchGraphLayout3("neighborhoodPreservation2Hop", _neighborhoodPreservation2Hop2d, _neighborhoodPreservation2HopNd, _neighborhoodPreservation2HopManifold);
|
|
666
|
+
export const sampledNp1 = dispatchGraphLayout3("sampledNp1", _sampledNp12d, _sampledNp1Nd, _sampledNp1Manifold);
|
|
667
|
+
export const sampledNp2 = dispatchGraphLayout3("sampledNp2", _sampledNp22d, _sampledNp2Nd, _sampledNp2Manifold);
|
|
668
|
+
export const gabrielGraphProperty = dispatchGraphLayout3("gabrielGraphProperty", _gabrielGraphProperty2d, _gabrielGraphPropertyNd, _gabrielGraphPropertyManifold);
|
|
669
|
+
export const nodeResolution = dispatchLayout3("nodeResolution", _nodeResolution2d, _nodeResolutionNd, _nodeResolutionManifold);
|
|
670
|
+
export const drngPreservation = dispatchGraphLayout3("drngPreservation", _drngPreservation2d, _drngPreservationNd, _drngPreservationManifold);
|
|
671
|
+
export const dggPreservation = dispatchGraphLayout3("dggPreservation", _dggPreservation2d, _dggPreservationNd, _dggPreservationManifold);
|
|
672
|
+
export const idealEdgeLengths = dispatchGraphLayout3("idealEdgeLengths", _idealEdgeLengths2d, _idealEdgeLengthsNd, _idealEdgeLengthsManifold);
|
|
673
|
+
export const idealEdgeLengthsWithUnit = dispatchGraphLayout3("idealEdgeLengthsWithUnit", _idealEdgeLengthsWithUnit2d, _idealEdgeLengthsWithUnitNd, _idealEdgeLengthsWithUnitManifold);
|
|
674
|
+
export const layoutDegeneracy = dispatchGraphLayout3("layoutDegeneracy", _layoutDegeneracy2d, _layoutDegeneracyNd, _layoutDegeneracyManifold);
|
|
675
|
+
export const gabrielGraphEdges = dispatchLayout3("gabrielGraphEdges", _gabrielGraphEdges2d, _gabrielGraphEdgesNd, _gabrielGraphEdgesManifold);
|
|
676
|
+
export const relativeNeighborhoodEdges = dispatchLayout3("relativeNeighborhoodEdges", _relativeNeighborhoodEdges2d, _relativeNeighborhoodEdgesNd, _relativeNeighborhoodEdgesManifold);
|
|
677
|
+
export const landmarkStratifiedRta = dispatchGraphLayout3("landmarkStratifiedRta", _landmarkStratifiedRta2d, _landmarkStratifiedRtaNd, _landmarkStratifiedRtaManifold);
|
|
678
|
+
export const landmarkStratifiedRtaDetail = dispatchGraphLayout3("landmarkStratifiedRtaDetail", _landmarkStratifiedRtaDetail2d, _landmarkStratifiedRtaDetailNd, _landmarkStratifiedRtaDetailManifold);
|
|
679
|
+
export const landmarkStratifiedRtaFromLandmarks = dispatchLayout3("landmarkStratifiedRtaFromLandmarks", _landmarkStratifiedRtaFromLandmarks2d, _landmarkStratifiedRtaFromLandmarksNd, _landmarkStratifiedRtaFromLandmarksManifold);
|
|
680
|
+
export const torusCrossingNumber = dispatchGraphLayout3("torusCrossingNumber", _torusCrossingNumber2d, null, _torusCrossingNumberManifold);
|
|
681
|
+
export const crossingEdgesTorus = dispatchGraphLayout3("crossingEdgesTorus", _crossingEdgesTorus2d, null, _crossingEdgesTorusManifold);
|
|
682
|
+
export const torusLayoutEdgeSegments = dispatchGraphLayout3("torusLayoutEdgeSegments", _torusLayoutEdgeSegments2d, null, _torusLayoutEdgeSegmentsManifold);
|
|
683
|
+
export const cqKmeans = dispatchLayout3("cqKmeans", _cqKmeans2d, _cqKmeansNd, _cqKmeansManifold);
|
|
684
|
+
export const cqHac = dispatchLayout3("cqHac", _cqHac2d, _cqHacNd, _cqHacManifold);
|
|
685
|
+
export const distanceConsistency = dispatchLayout3("distanceConsistency", _distanceConsistency2d, _distanceConsistencyNd, _distanceConsistencyManifold);
|
|
686
|
+
export const distributionConsistency = dispatchLayout3("distributionConsistency", _distributionConsistency2d, _distributionConsistencyNd, _distributionConsistencyManifold);
|
|
687
|
+
export const sepmeKnng = dispatchLayout3("sepmeKnng", _sepmeKnng2d, _sepmeKnngNd, _sepmeKnngManifold);
|
|
688
|
+
export const sepmeRng = dispatchLayout3("sepmeRng", _sepmeRng2d, _sepmeRngNd, _sepmeRngManifold);
|
|
689
|
+
export const sepmeGab = dispatchLayout3("sepmeGab", _sepmeGab2d, _sepmeGabNd, _sepmeGabManifold);
|
|
690
|
+
export const sepmeGong = dispatchLayout3("sepmeGong", _sepmeGong2d, _sepmeGongNd, _sepmeGongManifold);
|
|
691
|
+
export const neighborhoodHit = dispatchLayout3("neighborhoodHit", _neighborhoodHit2d, _neighborhoodHitNd, _neighborhoodHitManifold);
|
|
692
|
+
export const silhouetteScore = dispatchLayout3("silhouetteScore", _silhouetteScore2d, _silhouetteScoreNd, _silhouetteScoreManifold);
|
|
693
|
+
export const calinskiHarabaszScore = dispatchLayout3("calinskiHarabaszScore", _calinskiHarabaszScore2d, _calinskiHarabaszScoreNd, _calinskiHarabaszScoreManifold);
|
|
694
|
+
export const daviesBouldinScore = dispatchLayout3("daviesBouldinScore", _daviesBouldinScore2d, _daviesBouldinScoreNd, _daviesBouldinScoreManifold);
|
|
695
|
+
export const pairwiseDistanceOverlapError = dispatchLayout3("pairwiseDistanceOverlapError", _pairwiseDistanceOverlapError2d, _pairwiseDistanceOverlapErrorNd, _pairwiseDistanceOverlapErrorManifold);
|
|
696
|
+
|
|
327
697
|
export {
|
|
698
|
+
AdjustedPatchNigDetail,
|
|
328
699
|
AmgPcgBatchResult,
|
|
329
700
|
AmgPcgSolveResult,
|
|
330
701
|
AmgPcgSolver,
|
|
331
702
|
AnisotropicLaplacianResult,
|
|
703
|
+
BackboneResult,
|
|
704
|
+
BackboneSolver,
|
|
705
|
+
ChebyshevDogKernel,
|
|
706
|
+
ClassDensityResult,
|
|
707
|
+
ClusterAreaReport,
|
|
708
|
+
ClusterRefineSolver,
|
|
332
709
|
CoarseBackboneResult,
|
|
333
710
|
CoarsenedGraphResult,
|
|
334
711
|
CoarsenedHierarchyResult,
|
|
@@ -336,38 +713,43 @@ export {
|
|
|
336
713
|
CrossingSummary,
|
|
337
714
|
CsrGraph,
|
|
338
715
|
CsrMatrix,
|
|
716
|
+
DatasetInfo,
|
|
339
717
|
DelaunayResult,
|
|
718
|
+
DijkstraWorkspace,
|
|
340
719
|
DogStats,
|
|
341
720
|
DogVaradhanLandmarks,
|
|
342
721
|
EffectiveResistanceResult,
|
|
343
722
|
EigenResult,
|
|
344
|
-
FdebSolver,
|
|
345
723
|
FitFieldStats,
|
|
346
|
-
|
|
347
|
-
|
|
724
|
+
ForbidOverlapRemoval,
|
|
725
|
+
GTreeOverlapRemoval,
|
|
726
|
+
GemSolver,
|
|
727
|
+
GripSolver,
|
|
728
|
+
GroupInABoxSolver,
|
|
348
729
|
HybridKnnResult,
|
|
349
730
|
IbUmapSolver,
|
|
350
|
-
KMeansResult,
|
|
351
|
-
KamadaKawaiSolver,
|
|
352
731
|
KnnGraph,
|
|
353
732
|
LargestConnectedComponentResult,
|
|
354
733
|
LayoutDegeneracy,
|
|
355
|
-
LouvainResult,
|
|
356
|
-
ManifoldLayout2d,
|
|
357
734
|
MetricReport,
|
|
358
735
|
MinimumAngleSummary,
|
|
736
|
+
NorMetricsResult,
|
|
359
737
|
PacmapBackboneResult,
|
|
738
|
+
PartitionAgreementResult,
|
|
739
|
+
PfsPrimeOverlapRemoval,
|
|
360
740
|
PrismDistortion,
|
|
361
741
|
PrismOverlapRemoval,
|
|
362
742
|
ResistanceCurvatureFlowResult,
|
|
363
743
|
ResistanceCurvatureStep,
|
|
744
|
+
RhghLandmarks,
|
|
364
745
|
RhghLandmarksResult,
|
|
365
746
|
RtaEvaluation,
|
|
366
747
|
ScreenedPoissonField2d,
|
|
367
748
|
ScreenedPoissonRefiner,
|
|
368
749
|
ScreenedPoissonResult,
|
|
750
|
+
SelLayoutSolver,
|
|
369
751
|
SeparationConstraint,
|
|
370
|
-
|
|
752
|
+
SfcLayoutSolver,
|
|
371
753
|
Sparse12HopPairs,
|
|
372
754
|
SparseBarrierStats,
|
|
373
755
|
SparseProbabilities,
|
|
@@ -376,36 +758,49 @@ export {
|
|
|
376
758
|
SpatialRefinerStats,
|
|
377
759
|
SpectralEmbeddingResult,
|
|
378
760
|
SpectralMomentStats,
|
|
379
|
-
|
|
761
|
+
StressEvaluation,
|
|
380
762
|
TFdpSolver,
|
|
381
763
|
TorusCrossing,
|
|
382
|
-
|
|
764
|
+
TsNetStage,
|
|
765
|
+
TwinDeclutterer,
|
|
383
766
|
TwoHopCsr,
|
|
384
767
|
TwoHopKnnResult,
|
|
385
|
-
|
|
768
|
+
adaptiveChebyshevDegree,
|
|
769
|
+
adaptiveChebyshevDegreeScaled,
|
|
386
770
|
adjustedPatchNig,
|
|
771
|
+
adjustedPatchNigDetail,
|
|
387
772
|
adjustedPatchNigMultiscale,
|
|
388
773
|
alignClusteredCentroids,
|
|
389
774
|
allPairsBfs,
|
|
390
|
-
|
|
775
|
+
allPairsDijkstra,
|
|
776
|
+
angularResolution,
|
|
391
777
|
anisotropicLaplacian,
|
|
392
778
|
applyRelativeDistanceFloor,
|
|
393
|
-
|
|
779
|
+
aspectRatio,
|
|
394
780
|
assignLayers,
|
|
395
781
|
bfsSingleSource,
|
|
396
782
|
buildCapped12hopKnn,
|
|
783
|
+
buildDogTerms,
|
|
397
784
|
buildGumap12hopPriorityCsr,
|
|
398
785
|
buildHybridAdaptiveKnn,
|
|
399
786
|
buildPure2hopKnn,
|
|
787
|
+
buildRegularizedDogTerms,
|
|
400
788
|
buildRerankKnn,
|
|
401
789
|
chebyshevDogJlEmbedding,
|
|
402
790
|
chebyshevDogJlEmbeddingMatrix,
|
|
403
791
|
chebyshevHeatSpmv,
|
|
404
792
|
chebyshevHeatSpmvMatrix,
|
|
793
|
+
classDensityMeasure,
|
|
794
|
+
classicalMds,
|
|
405
795
|
classicalMds2d,
|
|
796
|
+
classicalMdsFromDistances,
|
|
797
|
+
clusterAreaFaithfulness,
|
|
798
|
+
clusterAreaFaithfulnessDetail,
|
|
406
799
|
coarseBackboneInit,
|
|
407
800
|
coarsenGraph,
|
|
801
|
+
combinatorialLaplacian,
|
|
408
802
|
compute2hopNeighborhoodSizes,
|
|
803
|
+
computeChebyshevBandpassCoefficients,
|
|
409
804
|
computeDiffusionEmbedding,
|
|
410
805
|
computeEffectiveResistances,
|
|
411
806
|
computeFuzzySimplicialSet,
|
|
@@ -414,50 +809,71 @@ export {
|
|
|
414
809
|
computeMedian2hopPerplexity,
|
|
415
810
|
computeNodewise2hopPerplexities,
|
|
416
811
|
computePivotedRhghLandmarks,
|
|
812
|
+
computePivotedRhghLandmarksResult,
|
|
417
813
|
computeRegularizedDogVaradhanLandmarks,
|
|
418
814
|
computeRegularizedDogVaradhanLandmarksFromMatrix,
|
|
419
815
|
computeResistanceEmbedding,
|
|
420
816
|
crossingEdges,
|
|
421
|
-
|
|
817
|
+
crossingEdgesHyperbolic,
|
|
818
|
+
crossingEdgesSpherical,
|
|
422
819
|
crossingSummary,
|
|
423
820
|
crosslessness,
|
|
424
821
|
cycleEdges,
|
|
822
|
+
datasetCatalog,
|
|
823
|
+
datasetInfo,
|
|
824
|
+
declutterTwins2d,
|
|
425
825
|
delaunayToCsr,
|
|
426
826
|
delaunayTriangulation,
|
|
427
|
-
|
|
428
|
-
drngPreservation,
|
|
827
|
+
dijkstraSingleSource,
|
|
429
828
|
edgeAngle,
|
|
430
|
-
evaluateMetrics,
|
|
431
829
|
extract1hop2hopCsr,
|
|
830
|
+
extractQuadrilateralBackbone,
|
|
432
831
|
extractSparse1hop2hopPairs,
|
|
832
|
+
extractSparse1hop2hopPairsWithMode,
|
|
433
833
|
findAbParams,
|
|
434
|
-
|
|
435
|
-
gabrielGraphPropertyV6,
|
|
834
|
+
generateHyperbolicTree,
|
|
436
835
|
generateLayeredConstraints,
|
|
836
|
+
generateLayeredDag,
|
|
837
|
+
generateSbmGraph,
|
|
838
|
+
generateSphericalGrid,
|
|
839
|
+
generateSphericalIcosphere,
|
|
840
|
+
generateTorusGrid,
|
|
841
|
+
generateWeightedGraph,
|
|
842
|
+
geodesicDistortion,
|
|
437
843
|
graph12hopRowNormalizedProbabilities,
|
|
844
|
+
graph12hopRowNormalizedProbabilitiesWithOptions,
|
|
438
845
|
graphRowNormalizedProbabilities,
|
|
439
|
-
|
|
440
|
-
|
|
846
|
+
hde,
|
|
847
|
+
hdeNd,
|
|
848
|
+
hyperbolicCrossingNumber,
|
|
441
849
|
initSync,
|
|
442
850
|
kmeansPlusPlus,
|
|
443
851
|
korenSpectralInit,
|
|
444
852
|
labelPropagation,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
853
|
+
laplacian,
|
|
854
|
+
leidenCommunities,
|
|
855
|
+
listDatasets,
|
|
856
|
+
lorentzDistance,
|
|
857
|
+
lorentzEinsteinMidpoint,
|
|
858
|
+
lorentzExpMap,
|
|
859
|
+
lorentzLogMap,
|
|
860
|
+
lorentzToPoincarePoint,
|
|
449
861
|
louvainCoarsen,
|
|
450
862
|
louvainCommunities,
|
|
451
863
|
minimumAngle,
|
|
452
864
|
minimumAngleSummary,
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
nodeResolutionV6,
|
|
865
|
+
norMetrics,
|
|
866
|
+
norMetricsWithoutGraph,
|
|
456
867
|
normalizeLayout2d,
|
|
457
868
|
parseCsrCsv,
|
|
458
869
|
partialBfsKnn,
|
|
870
|
+
partitionAgreement,
|
|
871
|
+
pivotMds,
|
|
872
|
+
pivotMdsFromDistances,
|
|
459
873
|
pivotMdsInit,
|
|
874
|
+
pivotMdsWithPivots,
|
|
460
875
|
poincareDistance,
|
|
876
|
+
poincareEinsteinMidpoint,
|
|
461
877
|
poincareMobiusAdd,
|
|
462
878
|
prismDistortion,
|
|
463
879
|
prismDistortionWithEdges,
|
|
@@ -466,32 +882,38 @@ export {
|
|
|
466
882
|
projectClusteredLayoutWithRadii,
|
|
467
883
|
projectClusteredRectangleNoOverlap2d,
|
|
468
884
|
projectLayoutAxis,
|
|
885
|
+
projectPsdSpectralFilter,
|
|
469
886
|
projectRectangleNoOverlap2d,
|
|
887
|
+
randomWalkLaplacian,
|
|
470
888
|
rdMds,
|
|
471
889
|
rectangleOverlaps,
|
|
472
|
-
|
|
890
|
+
refineClusterLayout,
|
|
473
891
|
removeCycles,
|
|
474
892
|
representativeMds,
|
|
475
893
|
resistanceCurvatureFlow,
|
|
476
894
|
robustNormalizeLayout2d,
|
|
477
895
|
sampledCrossingNumber,
|
|
478
896
|
sampledCrosslessness,
|
|
479
|
-
sampledNp1,
|
|
480
|
-
sampledNp2,
|
|
481
|
-
sampledScaleNormalizedStress,
|
|
482
|
-
scaleNormalizedStress,
|
|
483
|
-
scaleNormalizedStressFromDistances,
|
|
484
897
|
selectMaxminSpPivots,
|
|
485
898
|
setPanicHook,
|
|
899
|
+
shiftedNormalizedLaplacian,
|
|
486
900
|
smallestLaplacianEigenpairs,
|
|
487
901
|
spectralClustering,
|
|
488
902
|
spectralMomentStats,
|
|
903
|
+
sphericalCrossingNumber,
|
|
489
904
|
sphericalDistance,
|
|
905
|
+
sprawlterNn,
|
|
906
|
+
sprawlterNnRadii,
|
|
907
|
+
squarifiedTreemap,
|
|
490
908
|
sweepCrossingAngle,
|
|
491
909
|
sweepCrossingNumber,
|
|
910
|
+
symmetricEigenJacobi,
|
|
911
|
+
symmetricNormalizedLaplacian,
|
|
492
912
|
symmetrizeRowNormalized,
|
|
493
|
-
torusCrossingNumber,
|
|
494
913
|
torusDistance,
|
|
914
|
+
torusEdgeSegments,
|
|
915
|
+
torusSpectralPhaseInit,
|
|
916
|
+
transitiveReduction,
|
|
495
917
|
wasmMemory,
|
|
496
918
|
wasm_start,
|
|
497
919
|
wrapTorusPoint,
|