@ladybugmem/icebug 0.1.0 → 0.1.2
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/binding.gyp +32 -10
- package/lib/index.js +23 -11
- package/package.json +9 -15
- package/prebuilds/darwin-arm64/icebug.node +0 -0
- package/{vendor/lib → prebuilds/darwin-arm64}/libnetworkit.dylib +0 -0
- package/prebuilds/linux-x64/icebug.node +0 -0
- package/prebuilds/linux-x64/libnetworkit.so +0 -0
- package/scripts/download-icebug.sh +92 -0
- package/build/Release/.deps/Release/icebug.node.d +0 -1
- package/build/Release/.deps/Release/obj.target/icebug/src/addon.o.d +0 -291
- package/build/Release/icebug.node +0 -0
- package/build/Release/obj.target/icebug/src/addon.o +0 -0
- package/vendor/include/networkit/GlobalState.hpp +0 -86
- package/vendor/include/networkit/Globals.hpp +0 -41
- package/vendor/include/networkit/algebraic/AlgebraicGlobals.hpp +0 -27
- package/vendor/include/networkit/algebraic/CSRGeneralMatrix.hpp +0 -1292
- package/vendor/include/networkit/algebraic/CSRMatrix.hpp +0 -11
- package/vendor/include/networkit/algebraic/DenseMatrix.hpp +0 -537
- package/vendor/include/networkit/algebraic/DynamicMatrix.hpp +0 -514
- package/vendor/include/networkit/algebraic/GraphBLAS.hpp +0 -323
- package/vendor/include/networkit/algebraic/MatrixTools.hpp +0 -156
- package/vendor/include/networkit/algebraic/Semirings.hpp +0 -171
- package/vendor/include/networkit/algebraic/SparseAccumulator.hpp +0 -111
- package/vendor/include/networkit/algebraic/Vector.hpp +0 -371
- package/vendor/include/networkit/algebraic/algorithms/AlgebraicBFS.hpp +0 -72
- package/vendor/include/networkit/algebraic/algorithms/AlgebraicBellmanFord.hpp +0 -88
- package/vendor/include/networkit/algebraic/algorithms/AlgebraicMatchingCoarsening.hpp +0 -96
- package/vendor/include/networkit/algebraic/algorithms/AlgebraicPageRank.hpp +0 -145
- package/vendor/include/networkit/algebraic/algorithms/AlgebraicSpanningEdgeCentrality.hpp +0 -122
- package/vendor/include/networkit/algebraic/algorithms/AlgebraicTriangleCounting.hpp +0 -76
- package/vendor/include/networkit/auxiliary/AlignedAllocator.hpp +0 -113
- package/vendor/include/networkit/auxiliary/ArrayTools.hpp +0 -85
- package/vendor/include/networkit/auxiliary/BloomFilter.hpp +0 -70
- package/vendor/include/networkit/auxiliary/BucketPQ.hpp +0 -142
- package/vendor/include/networkit/auxiliary/Enforce.hpp +0 -117
- package/vendor/include/networkit/auxiliary/FunctionTraits.hpp +0 -74
- package/vendor/include/networkit/auxiliary/HashUtils.hpp +0 -28
- package/vendor/include/networkit/auxiliary/IncrementalUniformRandomSelector.hpp +0 -52
- package/vendor/include/networkit/auxiliary/Log.hpp +0 -119
- package/vendor/include/networkit/auxiliary/MissingMath.hpp +0 -48
- package/vendor/include/networkit/auxiliary/Multiprecision.hpp +0 -17
- package/vendor/include/networkit/auxiliary/NumberParsing.hpp +0 -307
- package/vendor/include/networkit/auxiliary/NumericTools.hpp +0 -57
- package/vendor/include/networkit/auxiliary/Parallel.hpp +0 -56
- package/vendor/include/networkit/auxiliary/Parallelism.hpp +0 -33
- package/vendor/include/networkit/auxiliary/PrioQueue.hpp +0 -252
- package/vendor/include/networkit/auxiliary/Random.hpp +0 -122
- package/vendor/include/networkit/auxiliary/SetIntersector.hpp +0 -72
- package/vendor/include/networkit/auxiliary/SignalHandling.hpp +0 -39
- package/vendor/include/networkit/auxiliary/SortedList.hpp +0 -128
- package/vendor/include/networkit/auxiliary/SparseVector.hpp +0 -215
- package/vendor/include/networkit/auxiliary/SpinLock.hpp +0 -23
- package/vendor/include/networkit/auxiliary/StringBuilder.hpp +0 -322
- package/vendor/include/networkit/auxiliary/StringTools.hpp +0 -76
- package/vendor/include/networkit/auxiliary/TemplateUtils.hpp +0 -76
- package/vendor/include/networkit/auxiliary/Timer.hpp +0 -145
- package/vendor/include/networkit/auxiliary/VectorComparator.hpp +0 -32
- package/vendor/include/networkit/base/Algorithm.hpp +0 -41
- package/vendor/include/networkit/base/DynAlgorithm.hpp +0 -31
- package/vendor/include/networkit/centrality/ApproxBetweenness.hpp +0 -62
- package/vendor/include/networkit/centrality/ApproxCloseness.hpp +0 -136
- package/vendor/include/networkit/centrality/ApproxElectricalCloseness.hpp +0 -156
- package/vendor/include/networkit/centrality/ApproxGroupBetweenness.hpp +0 -124
- package/vendor/include/networkit/centrality/ApproxSpanningEdge.hpp +0 -84
- package/vendor/include/networkit/centrality/Betweenness.hpp +0 -47
- package/vendor/include/networkit/centrality/Centrality.hpp +0 -98
- package/vendor/include/networkit/centrality/Closeness.hpp +0 -107
- package/vendor/include/networkit/centrality/ComplexPaths.hpp +0 -113
- package/vendor/include/networkit/centrality/CoreDecomposition.hpp +0 -161
- package/vendor/include/networkit/centrality/DegreeCentrality.hpp +0 -55
- package/vendor/include/networkit/centrality/DynApproxBetweenness.hpp +0 -95
- package/vendor/include/networkit/centrality/DynBetweenness.hpp +0 -99
- package/vendor/include/networkit/centrality/DynBetweennessOneNode.hpp +0 -98
- package/vendor/include/networkit/centrality/DynKatzCentrality.hpp +0 -115
- package/vendor/include/networkit/centrality/DynTopHarmonicCloseness.hpp +0 -223
- package/vendor/include/networkit/centrality/EigenvectorCentrality.hpp +0 -41
- package/vendor/include/networkit/centrality/EstimateBetweenness.hpp +0 -51
- package/vendor/include/networkit/centrality/ForestCentrality.hpp +0 -112
- package/vendor/include/networkit/centrality/GedWalk.hpp +0 -225
- package/vendor/include/networkit/centrality/GroupCloseness.hpp +0 -115
- package/vendor/include/networkit/centrality/GroupClosenessGrowShrink.hpp +0 -78
- package/vendor/include/networkit/centrality/GroupClosenessLocalSearch.hpp +0 -77
- package/vendor/include/networkit/centrality/GroupClosenessLocalSwaps.hpp +0 -106
- package/vendor/include/networkit/centrality/GroupDegree.hpp +0 -155
- package/vendor/include/networkit/centrality/GroupHarmonicCloseness.hpp +0 -83
- package/vendor/include/networkit/centrality/HarmonicCloseness.hpp +0 -48
- package/vendor/include/networkit/centrality/KPathCentrality.hpp +0 -52
- package/vendor/include/networkit/centrality/KadabraBetweenness.hpp +0 -242
- package/vendor/include/networkit/centrality/KatzCentrality.hpp +0 -62
- package/vendor/include/networkit/centrality/LaplacianCentrality.hpp +0 -44
- package/vendor/include/networkit/centrality/LocalClusteringCoefficient.hpp +0 -60
- package/vendor/include/networkit/centrality/LocalPartitionCoverage.hpp +0 -43
- package/vendor/include/networkit/centrality/LocalSquareClusteringCoefficient.hpp +0 -42
- package/vendor/include/networkit/centrality/PageRank.hpp +0 -101
- package/vendor/include/networkit/centrality/PermanenceCentrality.hpp +0 -48
- package/vendor/include/networkit/centrality/Sfigality.hpp +0 -45
- package/vendor/include/networkit/centrality/SpanningEdgeCentrality.hpp +0 -86
- package/vendor/include/networkit/centrality/TopCloseness.hpp +0 -136
- package/vendor/include/networkit/centrality/TopHarmonicCloseness.hpp +0 -151
- package/vendor/include/networkit/clique/MaximalCliques.hpp +0 -83
- package/vendor/include/networkit/coarsening/ClusteringProjector.hpp +0 -59
- package/vendor/include/networkit/coarsening/CoarsenedGraphView.hpp +0 -156
- package/vendor/include/networkit/coarsening/GraphCoarsening.hpp +0 -57
- package/vendor/include/networkit/coarsening/MatchingCoarsening.hpp +0 -43
- package/vendor/include/networkit/coarsening/ParallelPartitionCoarsening.hpp +0 -33
- package/vendor/include/networkit/coarsening/ParallelPartitionCoarseningView.hpp +0 -62
- package/vendor/include/networkit/community/AdjustedRandMeasure.hpp +0 -31
- package/vendor/include/networkit/community/ClusteringGenerator.hpp +0 -75
- package/vendor/include/networkit/community/CommunityDetectionAlgorithm.hpp +0 -58
- package/vendor/include/networkit/community/Conductance.hpp +0 -32
- package/vendor/include/networkit/community/CoverF1Similarity.hpp +0 -53
- package/vendor/include/networkit/community/CoverHubDominance.hpp +0 -38
- package/vendor/include/networkit/community/Coverage.hpp +0 -25
- package/vendor/include/networkit/community/CutClustering.hpp +0 -62
- package/vendor/include/networkit/community/DissimilarityMeasure.hpp +0 -31
- package/vendor/include/networkit/community/DynamicNMIDistance.hpp +0 -44
- package/vendor/include/networkit/community/EdgeCut.hpp +0 -24
- package/vendor/include/networkit/community/GraphClusteringTools.hpp +0 -103
- package/vendor/include/networkit/community/GraphStructuralRandMeasure.hpp +0 -28
- package/vendor/include/networkit/community/HubDominance.hpp +0 -46
- package/vendor/include/networkit/community/IntrapartitionDensity.hpp +0 -44
- package/vendor/include/networkit/community/IsolatedInterpartitionConductance.hpp +0 -40
- package/vendor/include/networkit/community/IsolatedInterpartitionExpansion.hpp +0 -40
- package/vendor/include/networkit/community/JaccardMeasure.hpp +0 -25
- package/vendor/include/networkit/community/LFM.hpp +0 -49
- package/vendor/include/networkit/community/LPDegreeOrdered.hpp +0 -48
- package/vendor/include/networkit/community/LocalCommunityEvaluation.hpp +0 -100
- package/vendor/include/networkit/community/LocalCoverEvaluation.hpp +0 -31
- package/vendor/include/networkit/community/LocalPartitionEvaluation.hpp +0 -31
- package/vendor/include/networkit/community/LouvainMapEquation.hpp +0 -135
- package/vendor/include/networkit/community/Modularity.hpp +0 -54
- package/vendor/include/networkit/community/NMIDistance.hpp +0 -28
- package/vendor/include/networkit/community/NodeStructuralRandMeasure.hpp +0 -27
- package/vendor/include/networkit/community/OverlappingCommunityDetectionAlgorithm.hpp +0 -51
- package/vendor/include/networkit/community/OverlappingNMIDistance.hpp +0 -175
- package/vendor/include/networkit/community/PLM.hpp +0 -89
- package/vendor/include/networkit/community/PLP.hpp +0 -83
- package/vendor/include/networkit/community/ParallelAgglomerativeClusterer.hpp +0 -37
- package/vendor/include/networkit/community/ParallelLeiden.hpp +0 -96
- package/vendor/include/networkit/community/ParallelLeidenView.hpp +0 -138
- package/vendor/include/networkit/community/PartitionFragmentation.hpp +0 -30
- package/vendor/include/networkit/community/PartitionHubDominance.hpp +0 -37
- package/vendor/include/networkit/community/PartitionIntersection.hpp +0 -25
- package/vendor/include/networkit/community/QualityMeasure.hpp +0 -27
- package/vendor/include/networkit/community/SampledGraphStructuralRandMeasure.hpp +0 -40
- package/vendor/include/networkit/community/SampledNodeStructuralRandMeasure.hpp +0 -40
- package/vendor/include/networkit/community/StablePartitionNodes.hpp +0 -48
- package/vendor/include/networkit/components/BiconnectedComponents.hpp +0 -116
- package/vendor/include/networkit/components/ComponentDecomposition.hpp +0 -72
- package/vendor/include/networkit/components/ConnectedComponents.hpp +0 -55
- package/vendor/include/networkit/components/DynConnectedComponents.hpp +0 -71
- package/vendor/include/networkit/components/DynWeaklyConnectedComponents.hpp +0 -73
- package/vendor/include/networkit/components/ParallelConnectedComponents.hpp +0 -44
- package/vendor/include/networkit/components/RandomSpanningForest.hpp +0 -36
- package/vendor/include/networkit/components/StronglyConnectedComponents.hpp +0 -50
- package/vendor/include/networkit/components/WeaklyConnectedComponents.hpp +0 -59
- package/vendor/include/networkit/correlation/Assortativity.hpp +0 -64
- package/vendor/include/networkit/distance/APSP.hpp +0 -70
- package/vendor/include/networkit/distance/AStar.hpp +0 -68
- package/vendor/include/networkit/distance/AStarGeneral.hpp +0 -110
- package/vendor/include/networkit/distance/AdamicAdarDistance.hpp +0 -52
- package/vendor/include/networkit/distance/AffectedNodes.hpp +0 -130
- package/vendor/include/networkit/distance/AlgebraicDistance.hpp +0 -63
- package/vendor/include/networkit/distance/BFS.hpp +0 -43
- package/vendor/include/networkit/distance/BidirectionalBFS.hpp +0 -51
- package/vendor/include/networkit/distance/BidirectionalDijkstra.hpp +0 -69
- package/vendor/include/networkit/distance/CommuteTimeDistance.hpp +0 -89
- package/vendor/include/networkit/distance/Diameter.hpp +0 -97
- package/vendor/include/networkit/distance/Dijkstra.hpp +0 -50
- package/vendor/include/networkit/distance/DynAPSP.hpp +0 -67
- package/vendor/include/networkit/distance/DynBFS.hpp +0 -56
- package/vendor/include/networkit/distance/DynDijkstra.hpp +0 -57
- package/vendor/include/networkit/distance/DynPrunedLandmarkLabeling.hpp +0 -67
- package/vendor/include/networkit/distance/DynSSSP.hpp +0 -87
- package/vendor/include/networkit/distance/Eccentricity.hpp +0 -32
- package/vendor/include/networkit/distance/EffectiveDiameter.hpp +0 -47
- package/vendor/include/networkit/distance/EffectiveDiameterApproximation.hpp +0 -57
- package/vendor/include/networkit/distance/FloydWarshall.hpp +0 -93
- package/vendor/include/networkit/distance/GraphDistance.hpp +0 -49
- package/vendor/include/networkit/distance/HopPlotApproximation.hpp +0 -62
- package/vendor/include/networkit/distance/IncompleteDijkstra.hpp +0 -66
- package/vendor/include/networkit/distance/IncompleteSSSP.hpp +0 -41
- package/vendor/include/networkit/distance/JaccardDistance.hpp +0 -57
- package/vendor/include/networkit/distance/MultiTargetBFS.hpp +0 -32
- package/vendor/include/networkit/distance/MultiTargetDijkstra.hpp +0 -40
- package/vendor/include/networkit/distance/NeighborhoodFunction.hpp +0 -47
- package/vendor/include/networkit/distance/NeighborhoodFunctionApproximation.hpp +0 -56
- package/vendor/include/networkit/distance/NeighborhoodFunctionHeuristic.hpp +0 -56
- package/vendor/include/networkit/distance/NodeDistance.hpp +0 -54
- package/vendor/include/networkit/distance/PrunedLandmarkLabeling.hpp +0 -76
- package/vendor/include/networkit/distance/ReverseBFS.hpp +0 -46
- package/vendor/include/networkit/distance/SPSP.hpp +0 -143
- package/vendor/include/networkit/distance/SSSP.hpp +0 -216
- package/vendor/include/networkit/distance/STSP.hpp +0 -193
- package/vendor/include/networkit/distance/Volume.hpp +0 -66
- package/vendor/include/networkit/dynamics/DGSStreamParser.hpp +0 -40
- package/vendor/include/networkit/dynamics/DGSWriter.hpp +0 -30
- package/vendor/include/networkit/dynamics/GraphDifference.hpp +0 -110
- package/vendor/include/networkit/dynamics/GraphEvent.hpp +0 -55
- package/vendor/include/networkit/dynamics/GraphEventHandler.hpp +0 -39
- package/vendor/include/networkit/dynamics/GraphEventProxy.hpp +0 -55
- package/vendor/include/networkit/dynamics/GraphUpdater.hpp +0 -38
- package/vendor/include/networkit/edgescores/ChibaNishizekiQuadrangleEdgeScore.hpp +0 -26
- package/vendor/include/networkit/edgescores/ChibaNishizekiTriangleEdgeScore.hpp +0 -33
- package/vendor/include/networkit/edgescores/EdgeScore.hpp +0 -50
- package/vendor/include/networkit/edgescores/EdgeScoreAsWeight.hpp +0 -33
- package/vendor/include/networkit/edgescores/EdgeScoreBlender.hpp +0 -33
- package/vendor/include/networkit/edgescores/EdgeScoreLinearizer.hpp +0 -32
- package/vendor/include/networkit/edgescores/EdgeScoreNormalizer.hpp +0 -35
- package/vendor/include/networkit/edgescores/GeometricMeanScore.hpp +0 -29
- package/vendor/include/networkit/edgescores/PrefixJaccardScore.hpp +0 -23
- package/vendor/include/networkit/edgescores/TriangleEdgeScore.hpp +0 -39
- package/vendor/include/networkit/embedding/Node2Vec.hpp +0 -83
- package/vendor/include/networkit/flow/EdmondsKarp.hpp +0 -112
- package/vendor/include/networkit/generators/BarabasiAlbertGenerator.hpp +0 -87
- package/vendor/include/networkit/generators/ChungLuGenerator.hpp +0 -46
- package/vendor/include/networkit/generators/ChungLuGeneratorAlamEtAl.hpp +0 -63
- package/vendor/include/networkit/generators/ClusteredRandomGraphGenerator.hpp +0 -56
- package/vendor/include/networkit/generators/ConfigurationModel.hpp +0 -36
- package/vendor/include/networkit/generators/DorogovtsevMendesGenerator.hpp +0 -33
- package/vendor/include/networkit/generators/DynamicBarabasiAlbertGenerator.hpp +0 -33
- package/vendor/include/networkit/generators/DynamicDGSParser.hpp +0 -51
- package/vendor/include/networkit/generators/DynamicDorogovtsevMendesGenerator.hpp +0 -34
- package/vendor/include/networkit/generators/DynamicForestFireGenerator.hpp +0 -55
- package/vendor/include/networkit/generators/DynamicGraphGenerator.hpp +0 -40
- package/vendor/include/networkit/generators/DynamicGraphSource.hpp +0 -79
- package/vendor/include/networkit/generators/DynamicHyperbolicGenerator.hpp +0 -143
- package/vendor/include/networkit/generators/DynamicPathGenerator.hpp +0 -26
- package/vendor/include/networkit/generators/DynamicPubWebGenerator.hpp +0 -54
- package/vendor/include/networkit/generators/EdgeSwitchingMarkovChainGenerator.hpp +0 -65
- package/vendor/include/networkit/generators/ErdosRenyiEnumerator.hpp +0 -318
- package/vendor/include/networkit/generators/ErdosRenyiGenerator.hpp +0 -56
- package/vendor/include/networkit/generators/HavelHakimiGenerator.hpp +0 -48
- package/vendor/include/networkit/generators/HyperbolicGenerator.hpp +0 -236
- package/vendor/include/networkit/generators/LFRGenerator.hpp +0 -175
- package/vendor/include/networkit/generators/MocnikGenerator.hpp +0 -147
- package/vendor/include/networkit/generators/MocnikGeneratorBasic.hpp +0 -58
- package/vendor/include/networkit/generators/PowerlawDegreeSequence.hpp +0 -128
- package/vendor/include/networkit/generators/PubWebGenerator.hpp +0 -94
- package/vendor/include/networkit/generators/RegularRingLatticeGenerator.hpp +0 -37
- package/vendor/include/networkit/generators/RmatGenerator.hpp +0 -67
- package/vendor/include/networkit/generators/StaticDegreeSequenceGenerator.hpp +0 -42
- package/vendor/include/networkit/generators/StaticGraphGenerator.hpp +0 -30
- package/vendor/include/networkit/generators/StochasticBlockmodel.hpp +0 -41
- package/vendor/include/networkit/generators/WattsStrogatzGenerator.hpp +0 -43
- package/vendor/include/networkit/generators/quadtree/QuadNode.hpp +0 -857
- package/vendor/include/networkit/generators/quadtree/QuadNodeCartesianEuclid.hpp +0 -587
- package/vendor/include/networkit/generators/quadtree/QuadNodePolarEuclid.hpp +0 -726
- package/vendor/include/networkit/generators/quadtree/Quadtree.hpp +0 -232
- package/vendor/include/networkit/generators/quadtree/QuadtreeCartesianEuclid.hpp +0 -149
- package/vendor/include/networkit/generators/quadtree/QuadtreePolarEuclid.hpp +0 -143
- package/vendor/include/networkit/geometric/HyperbolicSpace.hpp +0 -248
- package/vendor/include/networkit/geometric/Point2DWithIndex.hpp +0 -145
- package/vendor/include/networkit/global/ClusteringCoefficient.hpp +0 -42
- package/vendor/include/networkit/global/GlobalClusteringCoefficient.hpp +0 -24
- package/vendor/include/networkit/graph/Attributes.hpp +0 -568
- package/vendor/include/networkit/graph/BFS.hpp +0 -111
- package/vendor/include/networkit/graph/DFS.hpp +0 -71
- package/vendor/include/networkit/graph/Dijkstra.hpp +0 -83
- package/vendor/include/networkit/graph/EdgeIterators.hpp +0 -171
- package/vendor/include/networkit/graph/Graph.hpp +0 -2083
- package/vendor/include/networkit/graph/GraphBuilder.hpp +0 -289
- package/vendor/include/networkit/graph/GraphR.hpp +0 -133
- package/vendor/include/networkit/graph/GraphTools.hpp +0 -589
- package/vendor/include/networkit/graph/GraphW.hpp +0 -1236
- package/vendor/include/networkit/graph/KruskalMSF.hpp +0 -50
- package/vendor/include/networkit/graph/NeighborIterators.hpp +0 -163
- package/vendor/include/networkit/graph/NodeIterators.hpp +0 -127
- package/vendor/include/networkit/graph/PrimMSF.hpp +0 -66
- package/vendor/include/networkit/graph/RandomMaximumSpanningForest.hpp +0 -133
- package/vendor/include/networkit/graph/SpanningForest.hpp +0 -41
- package/vendor/include/networkit/graph/TopologicalSort.hpp +0 -87
- package/vendor/include/networkit/graph/UnionMaximumSpanningForest.hpp +0 -126
- package/vendor/include/networkit/graph/test/GraphBuilderBenchmark.hpp +0 -68
- package/vendor/include/networkit/independentset/IndependentSetFinder.hpp +0 -44
- package/vendor/include/networkit/independentset/Luby.hpp +0 -27
- package/vendor/include/networkit/io/BinaryEdgeListPartitionReader.hpp +0 -45
- package/vendor/include/networkit/io/BinaryEdgeListPartitionWriter.hpp +0 -47
- package/vendor/include/networkit/io/BinaryPartitionReader.hpp +0 -41
- package/vendor/include/networkit/io/BinaryPartitionWriter.hpp +0 -44
- package/vendor/include/networkit/io/CoverReader.hpp +0 -27
- package/vendor/include/networkit/io/CoverWriter.hpp +0 -21
- package/vendor/include/networkit/io/DGSReader.hpp +0 -39
- package/vendor/include/networkit/io/DibapGraphReader.hpp +0 -43
- package/vendor/include/networkit/io/DotGraphWriter.hpp +0 -39
- package/vendor/include/networkit/io/DotPartitionWriter.hpp +0 -23
- package/vendor/include/networkit/io/DynamicGraphReader.hpp +0 -29
- package/vendor/include/networkit/io/EdgeListCoverReader.hpp +0 -35
- package/vendor/include/networkit/io/EdgeListPartitionReader.hpp +0 -43
- package/vendor/include/networkit/io/EdgeListReader.hpp +0 -61
- package/vendor/include/networkit/io/EdgeListWriter.hpp +0 -48
- package/vendor/include/networkit/io/GMLGraphReader.hpp +0 -33
- package/vendor/include/networkit/io/GMLGraphWriter.hpp +0 -33
- package/vendor/include/networkit/io/GraphIO.hpp +0 -52
- package/vendor/include/networkit/io/GraphReader.hpp +0 -40
- package/vendor/include/networkit/io/GraphToolBinaryReader.hpp +0 -71
- package/vendor/include/networkit/io/GraphToolBinaryWriter.hpp +0 -61
- package/vendor/include/networkit/io/GraphWriter.hpp +0 -27
- package/vendor/include/networkit/io/KONECTGraphReader.hpp +0 -44
- package/vendor/include/networkit/io/LineFileReader.hpp +0 -42
- package/vendor/include/networkit/io/METISGraphReader.hpp +0 -36
- package/vendor/include/networkit/io/METISGraphWriter.hpp +0 -29
- package/vendor/include/networkit/io/METISParser.hpp +0 -63
- package/vendor/include/networkit/io/MTXGraphReader.hpp +0 -31
- package/vendor/include/networkit/io/MTXParser.hpp +0 -87
- package/vendor/include/networkit/io/MatrixMarketReader.hpp +0 -33
- package/vendor/include/networkit/io/MatrixReader.hpp +0 -33
- package/vendor/include/networkit/io/MemoryMappedFile.hpp +0 -80
- package/vendor/include/networkit/io/NetworkitBinaryGraph.hpp +0 -144
- package/vendor/include/networkit/io/NetworkitBinaryReader.hpp +0 -50
- package/vendor/include/networkit/io/NetworkitBinaryWriter.hpp +0 -71
- package/vendor/include/networkit/io/PartitionReader.hpp +0 -34
- package/vendor/include/networkit/io/PartitionWriter.hpp +0 -31
- package/vendor/include/networkit/io/RBGraphReader.hpp +0 -37
- package/vendor/include/networkit/io/RBMatrixReader.hpp +0 -49
- package/vendor/include/networkit/io/RasterReader.hpp +0 -40
- package/vendor/include/networkit/io/SNAPEdgeListPartitionReader.hpp +0 -28
- package/vendor/include/networkit/io/SNAPGraphReader.hpp +0 -53
- package/vendor/include/networkit/io/SNAPGraphWriter.hpp +0 -53
- package/vendor/include/networkit/io/ThrillGraphBinaryReader.hpp +0 -44
- package/vendor/include/networkit/io/ThrillGraphBinaryWriter.hpp +0 -27
- package/vendor/include/networkit/layout/LayoutAlgorithm.hpp +0 -39
- package/vendor/include/networkit/linkprediction/AdamicAdarIndex.hpp +0 -37
- package/vendor/include/networkit/linkprediction/AdjustedRandIndex.hpp +0 -36
- package/vendor/include/networkit/linkprediction/AlgebraicDistanceIndex.hpp +0 -70
- package/vendor/include/networkit/linkprediction/CommonNeighborsIndex.hpp +0 -39
- package/vendor/include/networkit/linkprediction/EvaluationMetric.hpp +0 -135
- package/vendor/include/networkit/linkprediction/JaccardIndex.hpp +0 -44
- package/vendor/include/networkit/linkprediction/KatzIndex.hpp +0 -84
- package/vendor/include/networkit/linkprediction/LinkPredictor.hpp +0 -98
- package/vendor/include/networkit/linkprediction/LinkThresholder.hpp +0 -56
- package/vendor/include/networkit/linkprediction/MissingLinksFinder.hpp +0 -60
- package/vendor/include/networkit/linkprediction/NeighborhoodDistanceIndex.hpp +0 -42
- package/vendor/include/networkit/linkprediction/NeighborhoodUtility.hpp +0 -54
- package/vendor/include/networkit/linkprediction/NeighborsMeasureIndex.hpp +0 -48
- package/vendor/include/networkit/linkprediction/PrecisionRecallMetric.hpp +0 -40
- package/vendor/include/networkit/linkprediction/PredictionsSorter.hpp +0 -66
- package/vendor/include/networkit/linkprediction/PreferentialAttachmentIndex.hpp +0 -37
- package/vendor/include/networkit/linkprediction/ROCMetric.hpp +0 -39
- package/vendor/include/networkit/linkprediction/RandomLinkSampler.hpp +0 -47
- package/vendor/include/networkit/linkprediction/ResourceAllocationIndex.hpp +0 -38
- package/vendor/include/networkit/linkprediction/SameCommunityIndex.hpp +0 -50
- package/vendor/include/networkit/linkprediction/TotalNeighborsIndex.hpp +0 -39
- package/vendor/include/networkit/linkprediction/UDegreeIndex.hpp +0 -35
- package/vendor/include/networkit/linkprediction/VDegreeIndex.hpp +0 -35
- package/vendor/include/networkit/matching/BMatcher.hpp +0 -52
- package/vendor/include/networkit/matching/BMatching.hpp +0 -115
- package/vendor/include/networkit/matching/BSuitorMatcher.hpp +0 -170
- package/vendor/include/networkit/matching/DynamicBSuitorMatcher.hpp +0 -78
- package/vendor/include/networkit/matching/LocalMaxMatcher.hpp +0 -35
- package/vendor/include/networkit/matching/Matcher.hpp +0 -55
- package/vendor/include/networkit/matching/Matching.hpp +0 -111
- package/vendor/include/networkit/matching/PathGrowingMatcher.hpp +0 -46
- package/vendor/include/networkit/matching/SuitorMatcher.hpp +0 -62
- package/vendor/include/networkit/numerics/ConjugateGradient.hpp +0 -163
- package/vendor/include/networkit/numerics/GaussSeidelRelaxation.hpp +0 -99
- package/vendor/include/networkit/numerics/LAMG/LAMGSettings.hpp +0 -70
- package/vendor/include/networkit/numerics/LAMG/Lamg.hpp +0 -460
- package/vendor/include/networkit/numerics/LAMG/Level/EliminationStage.hpp +0 -47
- package/vendor/include/networkit/numerics/LAMG/Level/Level.hpp +0 -56
- package/vendor/include/networkit/numerics/LAMG/Level/LevelAggregation.hpp +0 -52
- package/vendor/include/networkit/numerics/LAMG/Level/LevelElimination.hpp +0 -133
- package/vendor/include/networkit/numerics/LAMG/Level/LevelFinest.hpp +0 -28
- package/vendor/include/networkit/numerics/LAMG/LevelHierarchy.hpp +0 -165
- package/vendor/include/networkit/numerics/LAMG/MultiLevelSetup.hpp +0 -1090
- package/vendor/include/networkit/numerics/LAMG/SolverLamg.hpp +0 -316
- package/vendor/include/networkit/numerics/LinearSolver.hpp +0 -151
- package/vendor/include/networkit/numerics/Preconditioner/DiagonalPreconditioner.hpp +0 -61
- package/vendor/include/networkit/numerics/Preconditioner/IdentityPreconditioner.hpp +0 -36
- package/vendor/include/networkit/numerics/Smoother.hpp +0 -37
- package/vendor/include/networkit/overlap/HashingOverlapper.hpp +0 -28
- package/vendor/include/networkit/overlap/Overlapper.hpp +0 -27
- package/vendor/include/networkit/planarity/LeftRightPlanarityCheck.hpp +0 -113
- package/vendor/include/networkit/randomization/Curveball.hpp +0 -49
- package/vendor/include/networkit/randomization/CurveballGlobalTradeGenerator.hpp +0 -39
- package/vendor/include/networkit/randomization/CurveballUniformTradeGenerator.hpp +0 -39
- package/vendor/include/networkit/randomization/DegreePreservingShuffle.hpp +0 -82
- package/vendor/include/networkit/randomization/EdgeSwitching.hpp +0 -157
- package/vendor/include/networkit/randomization/GlobalCurveball.hpp +0 -69
- package/vendor/include/networkit/randomization/GlobalTradeSequence.hpp +0 -303
- package/vendor/include/networkit/reachability/AllSimplePaths.hpp +0 -122
- package/vendor/include/networkit/reachability/ReachableNodes.hpp +0 -83
- package/vendor/include/networkit/scd/ApproximatePageRank.hpp +0 -51
- package/vendor/include/networkit/scd/CliqueDetect.hpp +0 -55
- package/vendor/include/networkit/scd/CombinedSCD.hpp +0 -51
- package/vendor/include/networkit/scd/GCE.hpp +0 -42
- package/vendor/include/networkit/scd/LFMLocal.hpp +0 -54
- package/vendor/include/networkit/scd/LocalT.hpp +0 -40
- package/vendor/include/networkit/scd/LocalTightnessExpansion.hpp +0 -46
- package/vendor/include/networkit/scd/PageRankNibble.hpp +0 -55
- package/vendor/include/networkit/scd/RandomBFS.hpp +0 -33
- package/vendor/include/networkit/scd/SCDGroundTruthComparison.hpp +0 -121
- package/vendor/include/networkit/scd/SelectiveCommunityDetector.hpp +0 -76
- package/vendor/include/networkit/scd/SetConductance.hpp +0 -47
- package/vendor/include/networkit/scd/TCE.hpp +0 -41
- package/vendor/include/networkit/scd/TwoPhaseL.hpp +0 -40
- package/vendor/include/networkit/scoring/EdgeScoring.hpp +0 -44
- package/vendor/include/networkit/scoring/ModularityScoring.hpp +0 -79
- package/vendor/include/networkit/simulation/EpidemicSimulationSEIR.hpp +0 -59
- package/vendor/include/networkit/sparsification/ChanceCorrectedTriangleScore.hpp +0 -28
- package/vendor/include/networkit/sparsification/ForestFireScore.hpp +0 -34
- package/vendor/include/networkit/sparsification/GlobalThresholdFilter.hpp +0 -40
- package/vendor/include/networkit/sparsification/LocalDegreeScore.hpp +0 -30
- package/vendor/include/networkit/sparsification/LocalFilterScore.hpp +0 -124
- package/vendor/include/networkit/sparsification/LocalSimilarityScore.hpp +0 -63
- package/vendor/include/networkit/sparsification/MultiscaleScore.hpp +0 -38
- package/vendor/include/networkit/sparsification/RandomEdgeScore.hpp +0 -33
- package/vendor/include/networkit/sparsification/RandomNodeEdgeScore.hpp +0 -29
- package/vendor/include/networkit/sparsification/SCANStructuralSimilarityScore.hpp +0 -23
- package/vendor/include/networkit/sparsification/SimmelianOverlapScore.hpp +0 -35
- package/vendor/include/networkit/sparsification/SimmelianScore.hpp +0 -92
- package/vendor/include/networkit/sparsification/Sparsifiers.hpp +0 -166
- package/vendor/include/networkit/structures/Cover.hpp +0 -248
- package/vendor/include/networkit/structures/LocalCommunity.hpp +0 -363
- package/vendor/include/networkit/structures/Partition.hpp +0 -335
- package/vendor/include/networkit/structures/UnionFind.hpp +0 -66
- package/vendor/include/networkit/viz/GraphLayoutAlgorithm.hpp +0 -157
- package/vendor/include/networkit/viz/MaxentStress.hpp +0 -346
- package/vendor/include/networkit/viz/Octree.hpp +0 -428
- package/vendor/include/networkit/viz/PivotMDS.hpp +0 -63
- package/vendor/include/networkit/viz/Point.hpp +0 -415
- package/vendor/include/networkit/viz/PostscriptWriter.hpp +0 -78
- package/vendor/include/tlx/algorithm/exclusive_scan.hpp +0 -56
- package/vendor/include/tlx/algorithm/is_sorted_cmp.hpp +0 -56
- package/vendor/include/tlx/algorithm/merge_advance.hpp +0 -177
- package/vendor/include/tlx/algorithm/merge_combine.hpp +0 -76
- package/vendor/include/tlx/algorithm/multisequence_partition.hpp +0 -346
- package/vendor/include/tlx/algorithm/multisequence_selection.hpp +0 -351
- package/vendor/include/tlx/algorithm/multiway_merge.hpp +0 -1385
- package/vendor/include/tlx/algorithm/multiway_merge_splitting.hpp +0 -257
- package/vendor/include/tlx/algorithm/parallel_multiway_merge.hpp +0 -408
- package/vendor/include/tlx/algorithm/random_bipartition_shuffle.hpp +0 -116
- package/vendor/include/tlx/algorithm.hpp +0 -36
- package/vendor/include/tlx/allocator_base.hpp +0 -100
- package/vendor/include/tlx/backtrace.hpp +0 -54
- package/vendor/include/tlx/cmdline_parser.hpp +0 -498
- package/vendor/include/tlx/container/btree.hpp +0 -3977
- package/vendor/include/tlx/container/btree_map.hpp +0 -634
- package/vendor/include/tlx/container/btree_multimap.hpp +0 -627
- package/vendor/include/tlx/container/btree_multiset.hpp +0 -612
- package/vendor/include/tlx/container/btree_set.hpp +0 -612
- package/vendor/include/tlx/container/d_ary_addressable_int_heap.hpp +0 -416
- package/vendor/include/tlx/container/d_ary_heap.hpp +0 -311
- package/vendor/include/tlx/container/loser_tree.hpp +0 -1009
- package/vendor/include/tlx/container/lru_cache.hpp +0 -319
- package/vendor/include/tlx/container/radix_heap.hpp +0 -735
- package/vendor/include/tlx/container/ring_buffer.hpp +0 -428
- package/vendor/include/tlx/container/simple_vector.hpp +0 -304
- package/vendor/include/tlx/container/splay_tree.hpp +0 -399
- package/vendor/include/tlx/container/string_view.hpp +0 -805
- package/vendor/include/tlx/container.hpp +0 -40
- package/vendor/include/tlx/counting_ptr.hpp +0 -522
- package/vendor/include/tlx/define/attribute_always_inline.hpp +0 -34
- package/vendor/include/tlx/define/attribute_fallthrough.hpp +0 -36
- package/vendor/include/tlx/define/attribute_format_printf.hpp +0 -34
- package/vendor/include/tlx/define/attribute_packed.hpp +0 -34
- package/vendor/include/tlx/define/attribute_warn_unused_result.hpp +0 -34
- package/vendor/include/tlx/define/constexpr.hpp +0 -31
- package/vendor/include/tlx/define/deprecated.hpp +0 -39
- package/vendor/include/tlx/define/endian.hpp +0 -49
- package/vendor/include/tlx/define/likely.hpp +0 -33
- package/vendor/include/tlx/define/visibility_hidden.hpp +0 -34
- package/vendor/include/tlx/define.hpp +0 -36
- package/vendor/include/tlx/delegate.hpp +0 -524
- package/vendor/include/tlx/die/core.hpp +0 -311
- package/vendor/include/tlx/die.hpp +0 -106
- package/vendor/include/tlx/digest/md5.hpp +0 -81
- package/vendor/include/tlx/digest/sha1.hpp +0 -81
- package/vendor/include/tlx/digest/sha256.hpp +0 -81
- package/vendor/include/tlx/digest/sha512.hpp +0 -81
- package/vendor/include/tlx/digest.hpp +0 -30
- package/vendor/include/tlx/logger/all.hpp +0 -33
- package/vendor/include/tlx/logger/array.hpp +0 -43
- package/vendor/include/tlx/logger/core.hpp +0 -287
- package/vendor/include/tlx/logger/deque.hpp +0 -42
- package/vendor/include/tlx/logger/map.hpp +0 -65
- package/vendor/include/tlx/logger/set.hpp +0 -60
- package/vendor/include/tlx/logger/tuple.hpp +0 -66
- package/vendor/include/tlx/logger/unordered_map.hpp +0 -68
- package/vendor/include/tlx/logger/unordered_set.hpp +0 -64
- package/vendor/include/tlx/logger/wrap_unprintable.hpp +0 -75
- package/vendor/include/tlx/logger.hpp +0 -44
- package/vendor/include/tlx/math/abs_diff.hpp +0 -35
- package/vendor/include/tlx/math/aggregate.hpp +0 -231
- package/vendor/include/tlx/math/aggregate_min_max.hpp +0 -116
- package/vendor/include/tlx/math/bswap.hpp +0 -148
- package/vendor/include/tlx/math/bswap_be.hpp +0 -79
- package/vendor/include/tlx/math/bswap_le.hpp +0 -79
- package/vendor/include/tlx/math/clz.hpp +0 -174
- package/vendor/include/tlx/math/ctz.hpp +0 -174
- package/vendor/include/tlx/math/div_ceil.hpp +0 -36
- package/vendor/include/tlx/math/ffs.hpp +0 -123
- package/vendor/include/tlx/math/integer_log2.hpp +0 -189
- package/vendor/include/tlx/math/is_power_of_two.hpp +0 -74
- package/vendor/include/tlx/math/polynomial_regression.hpp +0 -243
- package/vendor/include/tlx/math/popcount.hpp +0 -173
- package/vendor/include/tlx/math/power_to_the.hpp +0 -44
- package/vendor/include/tlx/math/rol.hpp +0 -112
- package/vendor/include/tlx/math/ror.hpp +0 -112
- package/vendor/include/tlx/math/round_to_power_of_two.hpp +0 -121
- package/vendor/include/tlx/math/round_up.hpp +0 -36
- package/vendor/include/tlx/math/sgn.hpp +0 -38
- package/vendor/include/tlx/math.hpp +0 -46
- package/vendor/include/tlx/meta/apply_tuple.hpp +0 -55
- package/vendor/include/tlx/meta/call_for_range.hpp +0 -78
- package/vendor/include/tlx/meta/call_foreach.hpp +0 -60
- package/vendor/include/tlx/meta/call_foreach_tuple.hpp +0 -60
- package/vendor/include/tlx/meta/call_foreach_tuple_with_index.hpp +0 -61
- package/vendor/include/tlx/meta/call_foreach_with_index.hpp +0 -64
- package/vendor/include/tlx/meta/enable_if.hpp +0 -37
- package/vendor/include/tlx/meta/fold_left.hpp +0 -63
- package/vendor/include/tlx/meta/fold_left_tuple.hpp +0 -60
- package/vendor/include/tlx/meta/fold_right.hpp +0 -63
- package/vendor/include/tlx/meta/fold_right_tuple.hpp +0 -60
- package/vendor/include/tlx/meta/function_chain.hpp +0 -197
- package/vendor/include/tlx/meta/function_stack.hpp +0 -189
- package/vendor/include/tlx/meta/has_member.hpp +0 -80
- package/vendor/include/tlx/meta/has_method.hpp +0 -117
- package/vendor/include/tlx/meta/index_sequence.hpp +0 -66
- package/vendor/include/tlx/meta/is_std_array.hpp +0 -40
- package/vendor/include/tlx/meta/is_std_pair.hpp +0 -39
- package/vendor/include/tlx/meta/is_std_tuple.hpp +0 -39
- package/vendor/include/tlx/meta/is_std_vector.hpp +0 -39
- package/vendor/include/tlx/meta/log2.hpp +0 -101
- package/vendor/include/tlx/meta/no_operation.hpp +0 -55
- package/vendor/include/tlx/meta/static_index.hpp +0 -42
- package/vendor/include/tlx/meta/vexpand.hpp +0 -34
- package/vendor/include/tlx/meta/vmap_for_range.hpp +0 -84
- package/vendor/include/tlx/meta/vmap_foreach.hpp +0 -63
- package/vendor/include/tlx/meta/vmap_foreach_tuple.hpp +0 -59
- package/vendor/include/tlx/meta/vmap_foreach_tuple_with_index.hpp +0 -62
- package/vendor/include/tlx/meta/vmap_foreach_with_index.hpp +0 -70
- package/vendor/include/tlx/meta.hpp +0 -55
- package/vendor/include/tlx/multi_timer.hpp +0 -148
- package/vendor/include/tlx/port/setenv.hpp +0 -31
- package/vendor/include/tlx/port.hpp +0 -27
- package/vendor/include/tlx/semaphore.hpp +0 -119
- package/vendor/include/tlx/simple_vector.hpp +0 -20
- package/vendor/include/tlx/siphash.hpp +0 -282
- package/vendor/include/tlx/sort/networks/best.hpp +0 -611
- package/vendor/include/tlx/sort/networks/bose_nelson.hpp +0 -412
- package/vendor/include/tlx/sort/networks/bose_nelson_parameter.hpp +0 -507
- package/vendor/include/tlx/sort/networks/cswap.hpp +0 -60
- package/vendor/include/tlx/sort/parallel_mergesort.hpp +0 -398
- package/vendor/include/tlx/sort/strings/insertion_sort.hpp +0 -232
- package/vendor/include/tlx/sort/strings/multikey_quicksort.hpp +0 -185
- package/vendor/include/tlx/sort/strings/parallel_sample_sort.hpp +0 -1647
- package/vendor/include/tlx/sort/strings/radix_sort.hpp +0 -934
- package/vendor/include/tlx/sort/strings/sample_sort_tools.hpp +0 -756
- package/vendor/include/tlx/sort/strings/string_ptr.hpp +0 -426
- package/vendor/include/tlx/sort/strings/string_set.hpp +0 -800
- package/vendor/include/tlx/sort/strings.hpp +0 -329
- package/vendor/include/tlx/sort/strings_parallel.hpp +0 -325
- package/vendor/include/tlx/sort.hpp +0 -29
- package/vendor/include/tlx/stack_allocator.hpp +0 -226
- package/vendor/include/tlx/string/appendline.hpp +0 -35
- package/vendor/include/tlx/string/base64.hpp +0 -87
- package/vendor/include/tlx/string/bitdump.hpp +0 -139
- package/vendor/include/tlx/string/compare_icase.hpp +0 -42
- package/vendor/include/tlx/string/contains.hpp +0 -36
- package/vendor/include/tlx/string/contains_word.hpp +0 -42
- package/vendor/include/tlx/string/ends_with.hpp +0 -79
- package/vendor/include/tlx/string/equal_icase.hpp +0 -42
- package/vendor/include/tlx/string/erase_all.hpp +0 -70
- package/vendor/include/tlx/string/escape_html.hpp +0 -34
- package/vendor/include/tlx/string/escape_uri.hpp +0 -34
- package/vendor/include/tlx/string/expand_environment_variables.hpp +0 -49
- package/vendor/include/tlx/string/extract_between.hpp +0 -40
- package/vendor/include/tlx/string/format_iec_units.hpp +0 -32
- package/vendor/include/tlx/string/format_si_iec_units.hpp +0 -19
- package/vendor/include/tlx/string/format_si_units.hpp +0 -32
- package/vendor/include/tlx/string/hash_djb2.hpp +0 -87
- package/vendor/include/tlx/string/hash_sdbm.hpp +0 -86
- package/vendor/include/tlx/string/hexdump.hpp +0 -154
- package/vendor/include/tlx/string/index_of.hpp +0 -56
- package/vendor/include/tlx/string/join.hpp +0 -65
- package/vendor/include/tlx/string/join_generic.hpp +0 -89
- package/vendor/include/tlx/string/join_quoted.hpp +0 -46
- package/vendor/include/tlx/string/less_icase.hpp +0 -64
- package/vendor/include/tlx/string/levenshtein.hpp +0 -193
- package/vendor/include/tlx/string/pad.hpp +0 -39
- package/vendor/include/tlx/string/parse_si_iec_units.hpp +0 -46
- package/vendor/include/tlx/string/parse_uri.hpp +0 -66
- package/vendor/include/tlx/string/parse_uri_form_data.hpp +0 -136
- package/vendor/include/tlx/string/replace.hpp +0 -141
- package/vendor/include/tlx/string/split.hpp +0 -170
- package/vendor/include/tlx/string/split_quoted.hpp +0 -49
- package/vendor/include/tlx/string/split_view.hpp +0 -218
- package/vendor/include/tlx/string/split_words.hpp +0 -53
- package/vendor/include/tlx/string/ssprintf.hpp +0 -45
- package/vendor/include/tlx/string/ssprintf_generic.hpp +0 -95
- package/vendor/include/tlx/string/starts_with.hpp +0 -44
- package/vendor/include/tlx/string/to_lower.hpp +0 -47
- package/vendor/include/tlx/string/to_upper.hpp +0 -47
- package/vendor/include/tlx/string/trim.hpp +0 -298
- package/vendor/include/tlx/string/union_words.hpp +0 -33
- package/vendor/include/tlx/string/word_wrap.hpp +0 -35
- package/vendor/include/tlx/string.hpp +0 -68
- package/vendor/include/tlx/thread_barrier_mutex.hpp +0 -109
- package/vendor/include/tlx/thread_barrier_spin.hpp +0 -127
- package/vendor/include/tlx/thread_pool.hpp +0 -151
- package/vendor/include/tlx/timestamp.hpp +0 -23
- package/vendor/include/tlx/unused.hpp +0 -28
- package/vendor/include/tlx/vector_free.hpp +0 -30
- package/vendor/include/tlx/version.hpp +0 -49
- package/vendor/include/ttmath/ttmath.h +0 -2881
- package/vendor/include/ttmath/ttmathbig.h +0 -6111
- package/vendor/include/ttmath/ttmathdec.h +0 -419
- package/vendor/include/ttmath/ttmathint.h +0 -1923
- package/vendor/include/ttmath/ttmathmisc.h +0 -250
- package/vendor/include/ttmath/ttmathobjects.h +0 -812
- package/vendor/include/ttmath/ttmathparser.h +0 -2791
- package/vendor/include/ttmath/ttmaththreads.h +0 -252
- package/vendor/include/ttmath/ttmathtypes.h +0 -707
- package/vendor/include/ttmath/ttmathuint.h +0 -4190
- package/vendor/include/ttmath/ttmathuint_noasm.h +0 -1038
- package/vendor/include/ttmath/ttmathuint_x86.h +0 -1620
- package/vendor/include/ttmath/ttmathuint_x86_64.h +0 -1177
- package/vendor/lib/cmake/tlx/tlx-config.cmake +0 -51
- package/vendor/lib/cmake/tlx/tlx-targets-release.cmake +0 -19
- package/vendor/lib/cmake/tlx/tlx-targets.cmake +0 -106
- package/vendor/lib/cmake/tlx/tlx-version.cmake +0 -11
- package/vendor/lib/libtlx.a +0 -0
- package/vendor/lib/pkgconfig/networkit.pc +0 -11
- package/vendor/lib/pkgconfig/tlx.pc +0 -11
|
@@ -1,587 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* QuadNodePolarEuclid.hpp
|
|
3
|
-
*
|
|
4
|
-
* Created on: 21.05.2014
|
|
5
|
-
* Author: Moritz v. Looz
|
|
6
|
-
*
|
|
7
|
-
* Note: This is similar enough to QuadNode.hpp that one could merge these two classes.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
#ifndef NETWORKIT_GENERATORS_QUADTREE_QUAD_NODE_CARTESIAN_EUCLID_HPP_
|
|
11
|
-
#define NETWORKIT_GENERATORS_QUADTREE_QUAD_NODE_CARTESIAN_EUCLID_HPP_
|
|
12
|
-
|
|
13
|
-
#include <algorithm>
|
|
14
|
-
#include <cassert>
|
|
15
|
-
#include <functional>
|
|
16
|
-
#include <vector>
|
|
17
|
-
|
|
18
|
-
#include <networkit/auxiliary/Log.hpp>
|
|
19
|
-
#include <networkit/geometric/HyperbolicSpace.hpp>
|
|
20
|
-
|
|
21
|
-
namespace NetworKit {
|
|
22
|
-
|
|
23
|
-
template <class T>
|
|
24
|
-
class QuadNodeCartesianEuclid final {
|
|
25
|
-
friend class QuadTreeGTest;
|
|
26
|
-
|
|
27
|
-
Point<double> minPoint;
|
|
28
|
-
Point<double> maxPoint;
|
|
29
|
-
count dimension;
|
|
30
|
-
unsigned capacity;
|
|
31
|
-
static const unsigned coarsenLimit = 4;
|
|
32
|
-
count subTreeSize;
|
|
33
|
-
std::vector<T> content;
|
|
34
|
-
std::vector<Point<double>> positions;
|
|
35
|
-
bool isLeaf;
|
|
36
|
-
bool splitTheoretical;
|
|
37
|
-
index ID;
|
|
38
|
-
double lowerBoundR;
|
|
39
|
-
|
|
40
|
-
public:
|
|
41
|
-
std::vector<QuadNodeCartesianEuclid> children;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Construct a QuadNode for polar coordinates.
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* @param lower Minimal coordinates of region
|
|
48
|
-
* @param upper Maximal coordinates of region (excluded)
|
|
49
|
-
* @param capacity Number of points a leaf cell can store before splitting
|
|
50
|
-
* @param splitTheoretical Whether to split in a theoretically optimal way or in a way to
|
|
51
|
-
* decrease measured running times
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
QuadNodeCartesianEuclid(const Point<double> &lower = Point<double>(0.0, 0.0),
|
|
55
|
-
const Point<double> &upper = Point<double>(1.0, 1.0),
|
|
56
|
-
unsigned capacity = 1000, bool splitTheoretical = false) {
|
|
57
|
-
this->minPoint = lower;
|
|
58
|
-
this->maxPoint = upper;
|
|
59
|
-
this->dimension = minPoint.getDimensions();
|
|
60
|
-
assert(maxPoint.getDimensions() == dimension);
|
|
61
|
-
this->capacity = capacity;
|
|
62
|
-
this->splitTheoretical = splitTheoretical;
|
|
63
|
-
this->ID = 0;
|
|
64
|
-
isLeaf = true;
|
|
65
|
-
subTreeSize = 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
void split() {
|
|
69
|
-
assert(isLeaf);
|
|
70
|
-
assert(children.size() == 0);
|
|
71
|
-
vector<double> middle(dimension);
|
|
72
|
-
if (splitTheoretical) {
|
|
73
|
-
// Euclidean space is distributed equally
|
|
74
|
-
for (index d = 0; d < dimension; d++) {
|
|
75
|
-
middle[d] = (minPoint[d] + maxPoint[d]) / 2;
|
|
76
|
-
}
|
|
77
|
-
} else {
|
|
78
|
-
// median of points
|
|
79
|
-
const count numPoints = positions.size();
|
|
80
|
-
assert(numPoints > 0); // otherwise, why split?
|
|
81
|
-
vector<vector<double>> sorted(dimension);
|
|
82
|
-
for (index d = 0; d < dimension; d++) {
|
|
83
|
-
sorted[d].resize(numPoints);
|
|
84
|
-
for (index i = 0; i < numPoints; i++) {
|
|
85
|
-
sorted[d][i] = positions[i][d];
|
|
86
|
-
}
|
|
87
|
-
std::sort(sorted[d].begin(), sorted[d].end());
|
|
88
|
-
middle[d] = sorted[d][numPoints / 2]; // this will crash if no points are there!
|
|
89
|
-
assert(middle[d] <= maxPoint[d]);
|
|
90
|
-
assert(middle[d] >= minPoint[d]);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
count childCount = std::pow(2, dimension);
|
|
94
|
-
for (index i = 0; i < childCount; i++) {
|
|
95
|
-
vector<double> lowerValues(dimension);
|
|
96
|
-
vector<double> upperValues(dimension);
|
|
97
|
-
index bitCopy = i;
|
|
98
|
-
for (index d = 0; d < dimension; d++) {
|
|
99
|
-
if (bitCopy & 1) {
|
|
100
|
-
lowerValues[d] = middle[d];
|
|
101
|
-
upperValues[d] = maxPoint[d];
|
|
102
|
-
} else {
|
|
103
|
-
lowerValues[d] = minPoint[d];
|
|
104
|
-
upperValues[d] = middle[d];
|
|
105
|
-
}
|
|
106
|
-
bitCopy = bitCopy >> 1;
|
|
107
|
-
}
|
|
108
|
-
QuadNodeCartesianEuclid child(Point<double>(lowerValues), Point<double>(upperValues),
|
|
109
|
-
capacity, splitTheoretical);
|
|
110
|
-
assert(child.isLeaf);
|
|
111
|
-
children.push_back(child);
|
|
112
|
-
}
|
|
113
|
-
isLeaf = false;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Add a point at polar coordinates (angle, R) with content input. May split node if capacity is
|
|
118
|
-
* full
|
|
119
|
-
*
|
|
120
|
-
* @param input arbitrary content, in our case an index
|
|
121
|
-
* @param angle angular coordinate of point, between 0 and 2 pi.
|
|
122
|
-
* @param R radial coordinate of point, between 0 and 1.
|
|
123
|
-
*/
|
|
124
|
-
void addContent(T input, Point<double> pos) {
|
|
125
|
-
assert(content.size() == positions.size());
|
|
126
|
-
assert(this->responsible(pos));
|
|
127
|
-
if (isLeaf) {
|
|
128
|
-
if (content.size() + 1 < capacity) {
|
|
129
|
-
content.push_back(input);
|
|
130
|
-
positions.push_back(pos);
|
|
131
|
-
} else {
|
|
132
|
-
split();
|
|
133
|
-
|
|
134
|
-
for (index i = 0; i < content.size(); i++) {
|
|
135
|
-
this->addContent(content[i], positions[i]);
|
|
136
|
-
}
|
|
137
|
-
assert(subTreeSize == content.size()); // we have added everything twice
|
|
138
|
-
subTreeSize = content.size();
|
|
139
|
-
content.clear();
|
|
140
|
-
positions.clear();
|
|
141
|
-
this->addContent(input, pos);
|
|
142
|
-
}
|
|
143
|
-
} else {
|
|
144
|
-
assert(children.size() > 0);
|
|
145
|
-
bool foundResponsibleChild = false;
|
|
146
|
-
for (index i = 0; i < children.size(); i++) {
|
|
147
|
-
if (children[i].responsible(pos)) {
|
|
148
|
-
foundResponsibleChild = true;
|
|
149
|
-
children[i].addContent(input, pos);
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
assert(foundResponsibleChild);
|
|
154
|
-
(void)foundResponsibleChild;
|
|
155
|
-
subTreeSize++;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Remove content at coordinate pos. May cause coarsening of the quadtree
|
|
161
|
-
*
|
|
162
|
-
* @param input Content to be removed
|
|
163
|
-
* @param pos Coordinate of content
|
|
164
|
-
*
|
|
165
|
-
* @return True if content was found and removed, false otherwise
|
|
166
|
-
*/
|
|
167
|
-
bool removeContent(T input, Point<double> pos) {
|
|
168
|
-
if (!responsible(pos))
|
|
169
|
-
return false;
|
|
170
|
-
if (isLeaf) {
|
|
171
|
-
index i = 0;
|
|
172
|
-
for (; i < content.size(); i++) {
|
|
173
|
-
if (content[i] == input)
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
if (i < content.size()) {
|
|
177
|
-
assert(positions[i].distance(pos) == 0);
|
|
178
|
-
// remove element
|
|
179
|
-
content.erase(content.begin() + i);
|
|
180
|
-
positions.erase(positions.begin() + i);
|
|
181
|
-
return true;
|
|
182
|
-
} else {
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
} else {
|
|
186
|
-
bool removed = false;
|
|
187
|
-
bool allLeaves = true;
|
|
188
|
-
assert(children.size() > 0);
|
|
189
|
-
for (index i = 0; i < children.size(); i++) {
|
|
190
|
-
if (!children[i].isLeaf)
|
|
191
|
-
allLeaves = false;
|
|
192
|
-
if (children[i].removeContent(input, pos)) {
|
|
193
|
-
assert(!removed);
|
|
194
|
-
removed = true;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
if (removed)
|
|
198
|
-
subTreeSize--;
|
|
199
|
-
// coarsen?
|
|
200
|
-
if (removed && allLeaves && size() < coarsenLimit) {
|
|
201
|
-
// coarsen!!
|
|
202
|
-
// why not assert empty containers and then insert directly?
|
|
203
|
-
vector<T> allContent;
|
|
204
|
-
vector<Point<double>> allPositions;
|
|
205
|
-
for (index i = 0; i < children.size(); i++) {
|
|
206
|
-
allContent.insert(allContent.end(), children[i].content.begin(),
|
|
207
|
-
children[i].content.end());
|
|
208
|
-
allPositions.insert(allPositions.end(), children[i].positions.begin(),
|
|
209
|
-
children[i].positions.end());
|
|
210
|
-
}
|
|
211
|
-
assert(allContent.size() == allPositions.size());
|
|
212
|
-
children.clear();
|
|
213
|
-
content.swap(allContent);
|
|
214
|
-
positions.swap(allPositions);
|
|
215
|
-
isLeaf = true;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
return removed;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Check whether the region managed by this node lies outside of an Euclidean circle.
|
|
224
|
-
*
|
|
225
|
-
* @param query Center of the Euclidean query circle, given in Cartesian coordinates
|
|
226
|
-
* @param radius Radius of the Euclidean query circle
|
|
227
|
-
*
|
|
228
|
-
* @return True if the region managed by this node lies completely outside of the circle
|
|
229
|
-
*/
|
|
230
|
-
bool outOfReach(const Point<double> &query, double radius) const {
|
|
231
|
-
return EuclideanDistances(query).first > radius;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* @param query Position of the query point
|
|
236
|
-
*/
|
|
237
|
-
std::pair<double, double> EuclideanDistances(const Point<double> &query) const {
|
|
238
|
-
/**
|
|
239
|
-
* If the query point is not within the quadnode, the distance minimum is on the border.
|
|
240
|
-
* Need to check whether extremum is between corners.
|
|
241
|
-
*/
|
|
242
|
-
double maxDistance = 0;
|
|
243
|
-
double minDistance = std::numeric_limits<double>::max();
|
|
244
|
-
|
|
245
|
-
if (responsible(query))
|
|
246
|
-
minDistance = 0;
|
|
247
|
-
|
|
248
|
-
auto updateMinMax = [&minDistance, &maxDistance, &query](const Point<double> &pos) -> void {
|
|
249
|
-
double extremalValue = pos.distance(query);
|
|
250
|
-
maxDistance = std::max(extremalValue, maxDistance);
|
|
251
|
-
minDistance = std::min(minDistance, extremalValue);
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
vector<double> closestValues(dimension);
|
|
255
|
-
vector<double> farthestValues(dimension);
|
|
256
|
-
|
|
257
|
-
for (index d = 0; d < dimension; d++) {
|
|
258
|
-
if (std::abs(query[d] - minPoint.at(d)) < std::abs(query[d] - maxPoint.at(d))) {
|
|
259
|
-
closestValues[d] = minPoint.at(d);
|
|
260
|
-
farthestValues[d] = maxPoint.at(d);
|
|
261
|
-
} else {
|
|
262
|
-
farthestValues[d] = minPoint.at(d);
|
|
263
|
-
closestValues[d] = maxPoint.at(d);
|
|
264
|
-
}
|
|
265
|
-
if (query[d] >= minPoint.at(d) && query[d] <= maxPoint.at(d)) {
|
|
266
|
-
closestValues[d] = query[d];
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
updateMinMax(Point<double>(closestValues));
|
|
270
|
-
updateMinMax(Point<double>(farthestValues));
|
|
271
|
-
|
|
272
|
-
assert(minDistance < query.length() + maxPoint.length());
|
|
273
|
-
assert(minDistance < maxDistance);
|
|
274
|
-
return {minDistance, maxDistance};
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Does the point at (angle, r) fall inside the region managed by this QuadNode?
|
|
279
|
-
*
|
|
280
|
-
* @param angle Angular coordinate of input point
|
|
281
|
-
* @param r Radial coordinate of input points
|
|
282
|
-
*
|
|
283
|
-
* @return True if input point lies within the region of this QuadNode
|
|
284
|
-
*/
|
|
285
|
-
bool responsible(Point<double> pos) const {
|
|
286
|
-
for (index d = 0; d < dimension; d++) {
|
|
287
|
-
if (pos[d] < minPoint.at(d) || pos[d] >= maxPoint.at(d))
|
|
288
|
-
return false;
|
|
289
|
-
}
|
|
290
|
-
return true;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Get all Elements in this QuadNode or a descendant of it
|
|
295
|
-
*
|
|
296
|
-
* @return vector of content type T
|
|
297
|
-
*/
|
|
298
|
-
std::vector<T> getElements() const {
|
|
299
|
-
if (isLeaf) {
|
|
300
|
-
return content;
|
|
301
|
-
} else {
|
|
302
|
-
assert(content.size() == 0);
|
|
303
|
-
assert(positions.size() == 0);
|
|
304
|
-
vector<T> result;
|
|
305
|
-
for (index i = 0; i < children.size(); i++) {
|
|
306
|
-
std::vector<T> subresult = children[i].getElements();
|
|
307
|
-
result.insert(result.end(), subresult.begin(), subresult.end());
|
|
308
|
-
}
|
|
309
|
-
return result;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
void getCoordinates(vector<Point<double>> &pointContainer) const {
|
|
314
|
-
if (isLeaf) {
|
|
315
|
-
pointContainer.insert(pointContainer.end(), positions.begin(), positions.end());
|
|
316
|
-
} else {
|
|
317
|
-
assert(content.size() == 0);
|
|
318
|
-
assert(positions.size() == 0);
|
|
319
|
-
for (auto &child : children)
|
|
320
|
-
child.getCoordinates(pointContainer);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Main query method, get points lying in a Euclidean circle around the center point.
|
|
326
|
-
* Optional limits can be given to get a different result or to reduce unnecessary comparisons
|
|
327
|
-
*
|
|
328
|
-
* Elements are pushed onto a vector which is a required argument. This is done to reduce
|
|
329
|
-
* copying. (Maybe not necessary due to copy elisison)
|
|
330
|
-
*
|
|
331
|
-
* Safe to call in parallel.
|
|
332
|
-
*
|
|
333
|
-
* @param center Center of the query circle
|
|
334
|
-
* @param radius Radius of the query circle
|
|
335
|
-
* @param result Reference to the vector where the results will be stored
|
|
336
|
-
* @param minAngle Optional value for the minimum angular coordinate of the query region
|
|
337
|
-
* @param maxAngle Optional value for the maximum angular coordinate of the query region
|
|
338
|
-
* @param lowR Optional value for the minimum radial coordinate of the query region
|
|
339
|
-
* @param highR Optional value for the maximum radial coordinate of the query region
|
|
340
|
-
*/
|
|
341
|
-
void getElementsInEuclideanCircle(Point<double> center, double radius,
|
|
342
|
-
vector<T> &result) const {
|
|
343
|
-
if (outOfReach(center, radius)) {
|
|
344
|
-
return;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
if (isLeaf) {
|
|
348
|
-
const double rsq = radius * radius;
|
|
349
|
-
const count cSize = content.size();
|
|
350
|
-
|
|
351
|
-
for (index i = 0; i < cSize; i++) {
|
|
352
|
-
if (positions[i].squaredDistance(center) < rsq) {
|
|
353
|
-
result.push_back(content[i]);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
} else {
|
|
357
|
-
for (index i = 0; i < children.size(); i++) {
|
|
358
|
-
children[i].getElementsInEuclideanCircle(center, radius, result);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
count getElementsProbabilistically(Point<double> euQuery, std::function<double(double)> prob,
|
|
364
|
-
vector<T> &result) const {
|
|
365
|
-
TRACE("Getting Euclidean distances");
|
|
366
|
-
auto distancePair = EuclideanDistances(euQuery);
|
|
367
|
-
double probUB = prob(distancePair.first);
|
|
368
|
-
double probLB = prob(distancePair.second);
|
|
369
|
-
assert(probLB <= probUB);
|
|
370
|
-
if (probUB > 0.5)
|
|
371
|
-
probUB = 1;
|
|
372
|
-
if (probUB == 0)
|
|
373
|
-
return 0;
|
|
374
|
-
// TODO: return whole if probLB == 1
|
|
375
|
-
double probdenom = std::log(1 - probUB);
|
|
376
|
-
if (probdenom == 0)
|
|
377
|
-
return 0; // there is a very small probability, but we cannot process it.
|
|
378
|
-
TRACE("probUB: ", probUB, ", probdenom: ", probdenom);
|
|
379
|
-
|
|
380
|
-
count expectedNeighbours = probUB * size();
|
|
381
|
-
count candidatesTested = 0;
|
|
382
|
-
count incomingNeighbours = result.size();
|
|
383
|
-
count ownsize = size();
|
|
384
|
-
|
|
385
|
-
if (isLeaf) {
|
|
386
|
-
const count lsize = content.size();
|
|
387
|
-
TRACE("Leaf of size ", lsize);
|
|
388
|
-
for (index i = 0; i < lsize; i++) {
|
|
389
|
-
// jump!
|
|
390
|
-
if (probUB < 1) {
|
|
391
|
-
double random = Aux::Random::real();
|
|
392
|
-
double delta = std::log(random) / probdenom;
|
|
393
|
-
assert(delta >= 0);
|
|
394
|
-
i += delta;
|
|
395
|
-
if (i >= lsize)
|
|
396
|
-
break;
|
|
397
|
-
TRACE("Jumped with delta ", delta, " arrived at ", i);
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
// see where we've arrived
|
|
401
|
-
candidatesTested++;
|
|
402
|
-
double distance = positions[i].distance(euQuery);
|
|
403
|
-
assert(distance >= distancePair.first); // TODO: These should not fail!
|
|
404
|
-
assert(distance <= distancePair.second);
|
|
405
|
-
double q = prob(distance);
|
|
406
|
-
q = q / probUB; // since the candidate was selected by the jumping process, we have
|
|
407
|
-
// to adjust the probabilities
|
|
408
|
-
assert(q <= 1);
|
|
409
|
-
|
|
410
|
-
// accept?
|
|
411
|
-
double acc = Aux::Random::real();
|
|
412
|
-
if (acc < q) {
|
|
413
|
-
TRACE("Accepted node ", i, " with probability ", q, ".");
|
|
414
|
-
result.push_back(content[i]);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
} else {
|
|
418
|
-
if (expectedNeighbours < 4
|
|
419
|
-
|| probUB < 1 / 1000) { // select candidates directly instead of calling recursively
|
|
420
|
-
TRACE("probUB = ", probUB, ", switching to direct candidate selection.");
|
|
421
|
-
assert(probUB < 1);
|
|
422
|
-
const count stsize = size();
|
|
423
|
-
for (index i = 0; i < stsize; i++) {
|
|
424
|
-
double delta = std::log(Aux::Random::real()) / probdenom;
|
|
425
|
-
assert(delta >= 0);
|
|
426
|
-
i += delta;
|
|
427
|
-
TRACE("Jumped with delta ", delta, " arrived at ", i,
|
|
428
|
-
". Calling maybeGetKthElement.");
|
|
429
|
-
if (i < size())
|
|
430
|
-
maybeGetKthElement(
|
|
431
|
-
probUB, euQuery, prob, i,
|
|
432
|
-
result); // this could be optimized. As of now, the offset is subtracted
|
|
433
|
-
// separately for each point
|
|
434
|
-
else
|
|
435
|
-
break;
|
|
436
|
-
candidatesTested++;
|
|
437
|
-
}
|
|
438
|
-
} else { // carry on as normal
|
|
439
|
-
for (index i = 0; i < children.size(); i++) {
|
|
440
|
-
TRACE("Recursively calling child ", i);
|
|
441
|
-
candidatesTested +=
|
|
442
|
-
children[i].getElementsProbabilistically(euQuery, prob, result);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
count finalNeighbours = result.size();
|
|
447
|
-
if (probLB == 1) {
|
|
448
|
-
assert(finalNeighbours == incomingNeighbours + ownsize);
|
|
449
|
-
(void)finalNeighbours;
|
|
450
|
-
(void)incomingNeighbours;
|
|
451
|
-
(void)ownsize;
|
|
452
|
-
}
|
|
453
|
-
return candidatesTested;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
void maybeGetKthElement(double upperBound, Point<double> euQuery,
|
|
457
|
-
std::function<double(double)> prob, index k,
|
|
458
|
-
vector<T> &circleDenizens) const {
|
|
459
|
-
TRACE("Maybe get element ", k, " with upper Bound ", upperBound);
|
|
460
|
-
assert(k < size());
|
|
461
|
-
if (isLeaf) {
|
|
462
|
-
double acceptance = prob(euQuery.distance(positions[k])) / upperBound;
|
|
463
|
-
TRACE("Is leaf, accept with ", acceptance);
|
|
464
|
-
if (Aux::Random::real() < acceptance)
|
|
465
|
-
circleDenizens.push_back(content[k]);
|
|
466
|
-
} else {
|
|
467
|
-
TRACE("Call recursively.");
|
|
468
|
-
index offset = 0;
|
|
469
|
-
for (index i = 0; i < children.size(); i++) {
|
|
470
|
-
count childsize = children[i].size();
|
|
471
|
-
if (k - offset < childsize) {
|
|
472
|
-
children[i].maybeGetKthElement(upperBound, euQuery, prob, k - offset,
|
|
473
|
-
circleDenizens);
|
|
474
|
-
break;
|
|
475
|
-
}
|
|
476
|
-
offset += childsize;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Shrink all vectors in this subtree to fit the content.
|
|
483
|
-
* Call after quadtree construction is complete, causes better memory usage and cache efficiency
|
|
484
|
-
*/
|
|
485
|
-
void trim() {
|
|
486
|
-
content.shrink_to_fit();
|
|
487
|
-
positions.shrink_to_fit();
|
|
488
|
-
if (!isLeaf) {
|
|
489
|
-
for (auto &child : children)
|
|
490
|
-
child.trim();
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Number of points lying in the region managed by this QuadNode
|
|
496
|
-
*/
|
|
497
|
-
count size() const { return isLeaf ? content.size() : subTreeSize; }
|
|
498
|
-
|
|
499
|
-
void recount() {
|
|
500
|
-
subTreeSize = 0;
|
|
501
|
-
for (index i = 0; i < children.size(); i++) {
|
|
502
|
-
children[i].recount();
|
|
503
|
-
subTreeSize += children[i].size();
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Height of subtree hanging from this QuadNode
|
|
509
|
-
*/
|
|
510
|
-
count height() const {
|
|
511
|
-
count result = 1; // if leaf node, the children loop will not execute
|
|
512
|
-
for (const auto &child : children)
|
|
513
|
-
result = std::max(result, child.height() + 1);
|
|
514
|
-
return result;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* Leaf cells in the subtree hanging from this QuadNode
|
|
519
|
-
*/
|
|
520
|
-
count countLeaves() const {
|
|
521
|
-
if (isLeaf)
|
|
522
|
-
return 1;
|
|
523
|
-
return std::accumulate(
|
|
524
|
-
children.begin(), children.end(), count{0},
|
|
525
|
-
[](count result, const auto &child) { return result + child.countLeaves(); });
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
index getID() const { return ID; }
|
|
529
|
-
|
|
530
|
-
index indexSubtree(index nextID) {
|
|
531
|
-
index result = nextID;
|
|
532
|
-
assert(children.size() == std::pow(2, dimension) || children.size() == 0);
|
|
533
|
-
for (auto &child : children)
|
|
534
|
-
result = child.indexSubtree(result);
|
|
535
|
-
|
|
536
|
-
this->ID = result;
|
|
537
|
-
return result + 1;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
index getCellID(Point<double> pos) const {
|
|
541
|
-
if (!responsible(pos))
|
|
542
|
-
return none;
|
|
543
|
-
if (isLeaf)
|
|
544
|
-
return getID();
|
|
545
|
-
else {
|
|
546
|
-
for (const auto &child : children) {
|
|
547
|
-
index childresult = child.getCellID(pos);
|
|
548
|
-
if (childresult != none)
|
|
549
|
-
return childresult;
|
|
550
|
-
}
|
|
551
|
-
throw std::runtime_error(
|
|
552
|
-
"No responsible child node found even though this node is responsible.");
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
index getMaxIDInSubtree() const {
|
|
557
|
-
if (isLeaf)
|
|
558
|
-
return getID();
|
|
559
|
-
else {
|
|
560
|
-
index result = 0;
|
|
561
|
-
for (int i = 0; i < children.size(); i++) {
|
|
562
|
-
result = std::max(children[i].getMaxIDInSubtree(), result);
|
|
563
|
-
}
|
|
564
|
-
return std::max(result, getID());
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
count reindex(count offset) {
|
|
569
|
-
if (isLeaf) {
|
|
570
|
-
#ifndef NETWORKIT_OMP2
|
|
571
|
-
#pragma omp task
|
|
572
|
-
#endif // NETWORKIT_OMP2
|
|
573
|
-
{
|
|
574
|
-
index p = offset;
|
|
575
|
-
std::generate(content.begin(), content.end(), [&p]() { return p++; });
|
|
576
|
-
}
|
|
577
|
-
offset += size();
|
|
578
|
-
} else {
|
|
579
|
-
for (auto &child : children)
|
|
580
|
-
offset = child.reindex(offset);
|
|
581
|
-
}
|
|
582
|
-
return offset;
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
} // namespace NetworKit
|
|
586
|
-
|
|
587
|
-
#endif // NETWORKIT_GENERATORS_QUADTREE_QUAD_NODE_CARTESIAN_EUCLID_HPP_
|