@ladybugmem/icebug 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +32 -10
- package/lib/index.js +23 -11
- package/package.json +8 -13
- 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,111 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* SparseAccumulator.hpp
|
|
3
|
-
*
|
|
4
|
-
* Created on: 14.05.2014
|
|
5
|
-
* Author: Michael Wegner (michael.wegner@student.kit.edu)
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#ifndef NETWORKIT_ALGEBRAIC_SPARSE_ACCUMULATOR_HPP_
|
|
9
|
-
#define NETWORKIT_ALGEBRAIC_SPARSE_ACCUMULATOR_HPP_
|
|
10
|
-
|
|
11
|
-
#include <algorithm>
|
|
12
|
-
#include <cassert>
|
|
13
|
-
#include <vector>
|
|
14
|
-
|
|
15
|
-
#include <networkit/Globals.hpp>
|
|
16
|
-
|
|
17
|
-
namespace NetworKit {
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The SparseAccumulator class represents the sparse accumulator datastructure as described in
|
|
21
|
-
* Kepner, Jeremy, and John Gilbert, eds. Graph algorithms in the language of linear algebra.
|
|
22
|
-
* Vol. 22. SIAM, 2011. It is used as temporal storage for efficient computations on matrices.
|
|
23
|
-
*/
|
|
24
|
-
class SparseAccumulator final {
|
|
25
|
-
private:
|
|
26
|
-
/** row indicator used to avoid resetting the occupied vector */
|
|
27
|
-
count row;
|
|
28
|
-
|
|
29
|
-
/** dense vector of doubles which stores the computed values */
|
|
30
|
-
std::vector<double> values; // w
|
|
31
|
-
|
|
32
|
-
/** dense vector of integers which stores whether a valid value is stored in values at each
|
|
33
|
-
* position */
|
|
34
|
-
std::vector<count> occupied; // b
|
|
35
|
-
|
|
36
|
-
/** unordered list to store the position of valid values in values vector */
|
|
37
|
-
std::vector<index> indices; // LS
|
|
38
|
-
|
|
39
|
-
public:
|
|
40
|
-
/**
|
|
41
|
-
* Constructs the SparseAccumulator with size @a size.
|
|
42
|
-
* @param size The size of the SparseAccumulator.
|
|
43
|
-
*/
|
|
44
|
-
SparseAccumulator(count size) : row(1), values(size), occupied(size, 0) {}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Stores @a value at @a pos. If a valid value is already stored at @a pos then @value is added
|
|
48
|
-
* to that.
|
|
49
|
-
* @param value The value to store or add at @a pos in values.
|
|
50
|
-
* @param pos The position in values.
|
|
51
|
-
*/
|
|
52
|
-
void scatter(double value, index pos) {
|
|
53
|
-
if (occupied[pos] < row) {
|
|
54
|
-
values[pos] = value;
|
|
55
|
-
occupied[pos] = row;
|
|
56
|
-
indices.push_back(pos);
|
|
57
|
-
} else {
|
|
58
|
-
values[pos] += value;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Stores @a value at @a pos. If a valid value is already stored at @a pos then we call the
|
|
64
|
-
* binary handle function with the stored value and the new @a value as arguments.
|
|
65
|
-
* @param value The value to store or add at @a pos in values.
|
|
66
|
-
* @param pos The position in values.
|
|
67
|
-
* @param handle (double, double) -> double
|
|
68
|
-
*/
|
|
69
|
-
template <typename L>
|
|
70
|
-
void scatter(double value, index pos, L &handle) {
|
|
71
|
-
assert(pos < values.size());
|
|
72
|
-
|
|
73
|
-
if (occupied[pos] < row) {
|
|
74
|
-
values[pos] = value;
|
|
75
|
-
occupied[pos] = row;
|
|
76
|
-
indices.push_back(pos);
|
|
77
|
-
} else {
|
|
78
|
-
values[pos] = handle(values[pos], value);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Calls @a handle for each non zero value of the current row.
|
|
84
|
-
* @note handle signature: handle(index row, index column, double value)
|
|
85
|
-
* @return The number of non zero values in the current row.
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
88
|
-
template <typename L>
|
|
89
|
-
count gather(L handle) {
|
|
90
|
-
count nonZeros = 0;
|
|
91
|
-
std::sort(indices.begin(), indices.end());
|
|
92
|
-
for (index idx : indices) {
|
|
93
|
-
handle(row - 1, idx, values[idx]);
|
|
94
|
-
++nonZeros;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return nonZeros;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Sets the SparseAccumulator to the next row which invalidates all currently stored data.
|
|
102
|
-
*/
|
|
103
|
-
void increaseRow() {
|
|
104
|
-
++row;
|
|
105
|
-
indices.clear();
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
} /* namespace NetworKit */
|
|
110
|
-
|
|
111
|
-
#endif // NETWORKIT_ALGEBRAIC_SPARSE_ACCUMULATOR_HPP_
|
|
@@ -1,371 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Vector.hpp
|
|
3
|
-
*
|
|
4
|
-
* Created on: 12.03.2014
|
|
5
|
-
* Author: Michael Wegner (michael.wegner@student.kit.edu)
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#ifndef NETWORKIT_ALGEBRAIC_VECTOR_HPP_
|
|
9
|
-
#define NETWORKIT_ALGEBRAIC_VECTOR_HPP_
|
|
10
|
-
|
|
11
|
-
#include <cassert>
|
|
12
|
-
#include <cmath>
|
|
13
|
-
#include <iostream>
|
|
14
|
-
#include <numeric>
|
|
15
|
-
#include <stdexcept>
|
|
16
|
-
#include <vector>
|
|
17
|
-
|
|
18
|
-
#include <networkit/Globals.hpp>
|
|
19
|
-
#include <networkit/algebraic/AlgebraicGlobals.hpp>
|
|
20
|
-
|
|
21
|
-
namespace NetworKit {
|
|
22
|
-
|
|
23
|
-
// forward declaration of DynamicMatrix class
|
|
24
|
-
class DynamicMatrix;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @ingroup algebraic
|
|
28
|
-
* The Vector class represents a basic vector with double coefficients.
|
|
29
|
-
*/
|
|
30
|
-
class Vector final {
|
|
31
|
-
private:
|
|
32
|
-
std::vector<double> values;
|
|
33
|
-
bool transposed;
|
|
34
|
-
|
|
35
|
-
public:
|
|
36
|
-
/** Default constructor */
|
|
37
|
-
Vector();
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Constructs the Vector with @a dimension elements with value @a initialValue.
|
|
41
|
-
* @param dimension The dimension of this vector.
|
|
42
|
-
* @param initialValue All coefficients will be initialized to @a initialValue.
|
|
43
|
-
* @param transpose Indicates whether this vector is transposed (row vector) or not (column
|
|
44
|
-
* vector).
|
|
45
|
-
*/
|
|
46
|
-
Vector(count dimension, double initialValue = 0, bool transpose = false);
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Constructs the Vector with the contents of @a values.
|
|
50
|
-
* @param values The values of this Vector.
|
|
51
|
-
* @param transpose Indicates whether this vector is transposed (row vector) or not (column
|
|
52
|
-
* vector).
|
|
53
|
-
*/
|
|
54
|
-
Vector(const std::vector<double> &values, bool transpose = false);
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Constructs the Vector from the contents of the initializer list @a list.
|
|
58
|
-
* @param list The initializer list.
|
|
59
|
-
*/
|
|
60
|
-
Vector(const std::initializer_list<double> &list);
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @return dimension of vector
|
|
64
|
-
*/
|
|
65
|
-
inline count getDimension() const { return values.size(); }
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* A transposed vector is a row vector.
|
|
69
|
-
* @return True, if this vector is transposed, otherwise false.
|
|
70
|
-
*/
|
|
71
|
-
bool isTransposed() const;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @return Transposed copy of this vector.
|
|
75
|
-
*/
|
|
76
|
-
Vector transpose() const;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Calculates and returns the Euclidean length of this vector
|
|
80
|
-
* @return The Euclidean length of this vector.
|
|
81
|
-
*/
|
|
82
|
-
double length() const;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Calculates and returns the arithmetic mean of this vector
|
|
86
|
-
* @return The arithmetic mean of this vector.
|
|
87
|
-
*/
|
|
88
|
-
double mean() const;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Returns a reference to the element at index @a idx without checking the range of this vector.
|
|
92
|
-
* @param idx The index of the element.
|
|
93
|
-
* @return Reference to the element at index @a idx.
|
|
94
|
-
*/
|
|
95
|
-
inline double &operator[](index idx) {
|
|
96
|
-
assert(idx < values.size());
|
|
97
|
-
return values[idx];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Assigns the given value to all the elements in the vector.
|
|
102
|
-
*
|
|
103
|
-
* @param val The value to be assigned.
|
|
104
|
-
*/
|
|
105
|
-
void fill(double val) { std::fill(values.begin(), values.end(), val); }
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Returns the element at index @a idx without checking the range of this vector.
|
|
109
|
-
* @a idx The index of the element.
|
|
110
|
-
* @return Constant reference to the element at index @a idx.
|
|
111
|
-
*/
|
|
112
|
-
inline double operator[](index idx) const {
|
|
113
|
-
assert(idx < values.size());
|
|
114
|
-
return values[idx];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Returns a reference to the element at index @a idx. If @a idx is not a valid index an
|
|
119
|
-
* exception is thrown.
|
|
120
|
-
* @param idx The index of the element.
|
|
121
|
-
* @return Reference to the element at index @a idx.
|
|
122
|
-
*/
|
|
123
|
-
double &at(index idx) {
|
|
124
|
-
if (idx >= values.size()) {
|
|
125
|
-
throw std::runtime_error("index out of range");
|
|
126
|
-
} else {
|
|
127
|
-
return values[idx];
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Compares this vector and @a other element-wise.
|
|
133
|
-
* @return True, if this vector is element-wise equal to @a other, otherwise false.
|
|
134
|
-
*/
|
|
135
|
-
bool operator==(const Vector &other) const;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Compares this vector and @a other element-wise.
|
|
139
|
-
* @return True, if this vector is element-wise unequal to @a other, otherwise false.
|
|
140
|
-
*/
|
|
141
|
-
bool operator!=(const Vector &other) const;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Computes the outer product of @a v1 and @a v2.
|
|
145
|
-
* @param v1 First Vector.
|
|
146
|
-
* @param v2 Second Vector.
|
|
147
|
-
* @return The resulting matrix from the outer product.
|
|
148
|
-
*/
|
|
149
|
-
template <class Matrix = DynamicMatrix>
|
|
150
|
-
static Matrix outerProduct(const Vector &v1, const Vector &v2);
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Computes the inner product (dot product) of the vectors @a v1 and @a v2.
|
|
154
|
-
* @return The result of the inner product.
|
|
155
|
-
*/
|
|
156
|
-
static double innerProduct(const Vector &v1, const Vector &v2);
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Computes the inner product (dot product) of this vector and @a other.
|
|
160
|
-
* @return The result of the inner product.
|
|
161
|
-
*/
|
|
162
|
-
double operator*(const Vector &other) const;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Multiplies this vector with @a matrix and returns the result.
|
|
166
|
-
* @return The result of multiplying this vector with @a matrix.
|
|
167
|
-
*/
|
|
168
|
-
template <typename Matrix = DynamicMatrix>
|
|
169
|
-
Vector operator*(const Matrix &matrix) const;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Multiplies this vector with a scalar specified in @a scalar and returns the result in a new
|
|
173
|
-
* vector.
|
|
174
|
-
* @return The result of multiplying this vector with @a scalar.
|
|
175
|
-
*/
|
|
176
|
-
Vector operator*(double scalar) const;
|
|
177
|
-
|
|
178
|
-
/*
|
|
179
|
-
* Multiplies this vector with a scalar specified in @a scalar.
|
|
180
|
-
* @return Reference to this vector.
|
|
181
|
-
*/
|
|
182
|
-
Vector &operator*=(double scalar);
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Divides this vector by a divisor specified in @a divisor and returns the result in a new
|
|
186
|
-
* vector.
|
|
187
|
-
* @return The result of dividing this vector by @a divisor.
|
|
188
|
-
*/
|
|
189
|
-
Vector operator/(double divisor) const;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Divides this vector by a divisor specified in @a divisor.
|
|
193
|
-
* @return Reference to this vector.
|
|
194
|
-
*/
|
|
195
|
-
Vector &operator/=(double divisor);
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Adds this vector to @a other and returns the result.
|
|
199
|
-
* Note that the dimensions of the vectors have to be the same.
|
|
200
|
-
* @return The sum of this vector and @a other.
|
|
201
|
-
*/
|
|
202
|
-
Vector operator+(const Vector &other) const;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Adds @a value to each element of this vector and returns the result.
|
|
206
|
-
*/
|
|
207
|
-
Vector operator+(double value) const;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Adds @a other to this vector.
|
|
211
|
-
* Note that the dimensions of the vectors have to be the same.
|
|
212
|
-
* @return Reference to this vector.
|
|
213
|
-
*/
|
|
214
|
-
Vector &operator+=(const Vector &other);
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Adds @a value to each element of this vector.
|
|
218
|
-
*/
|
|
219
|
-
Vector &operator+=(double value);
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Subtracts @a other from this vector and returns the result.
|
|
223
|
-
* Note that the dimensions of the vectors have to be the same.
|
|
224
|
-
* @return The difference of this vector and @a other.
|
|
225
|
-
*
|
|
226
|
-
*/
|
|
227
|
-
Vector operator-(const Vector &other) const;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Subtracts @a value from each element of this vector and returns the result.
|
|
231
|
-
*/
|
|
232
|
-
Vector operator-(double value) const;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Subtracts @a other from this vector.
|
|
236
|
-
* Note that the dimensions of the vectors have to be the same.
|
|
237
|
-
* @return Reference to this vector.
|
|
238
|
-
*/
|
|
239
|
-
Vector &operator-=(const Vector &other);
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Subtracts @a value from each element of this vector.
|
|
243
|
-
*/
|
|
244
|
-
Vector &operator-=(double value);
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Applies the unary function @a unaryElementFunction to each value in the Vector. Note that it
|
|
248
|
-
* must hold that the function applied to the zero element of this matrix returns the zero
|
|
249
|
-
* element.
|
|
250
|
-
* @param unaryElementFunction
|
|
251
|
-
*/
|
|
252
|
-
template <typename F>
|
|
253
|
-
void apply(F unaryElementFunction);
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Iterate over all elements of the vector and call handler (lambda closure).
|
|
257
|
-
*/
|
|
258
|
-
template <typename L>
|
|
259
|
-
void forElements(L handle);
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Iterate over all elements of the vector and call handler (lambda closure).
|
|
263
|
-
*/
|
|
264
|
-
template <typename L>
|
|
265
|
-
void forElements(L handle) const;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Iterate in parallel over all elements of the vector and call handler (lambda closure).
|
|
269
|
-
*
|
|
270
|
-
*/
|
|
271
|
-
template <typename L>
|
|
272
|
-
void parallelForElements(L handle);
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Iterate in parallel over all elements of the vector and call handler (lambda closure).
|
|
276
|
-
*/
|
|
277
|
-
template <typename L>
|
|
278
|
-
void parallelForElements(L handle) const;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* Multiplies the vector @a v with a scalar specified in @a scalar and returns the result.
|
|
283
|
-
* @return The result of multiplying this vector with @a scalar.
|
|
284
|
-
*/
|
|
285
|
-
inline Vector operator*(double scalar, const Vector &v) {
|
|
286
|
-
return v.operator*(scalar);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
template <class Matrix>
|
|
290
|
-
Matrix Vector::outerProduct(const Vector &v1, const Vector &v2) {
|
|
291
|
-
std::vector<Triplet> triplets;
|
|
292
|
-
|
|
293
|
-
for (index i = 0; i < v1.getDimension(); ++i) {
|
|
294
|
-
for (index j = 0; j < v2.getDimension(); ++j) {
|
|
295
|
-
double result = v1[i] * v2[j];
|
|
296
|
-
if (std::fabs(result) >= FLOAT_EPSILON) {
|
|
297
|
-
triplets.push_back({i, j, result});
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
return Matrix(v1.getDimension(), v2.getDimension(), triplets);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
template <class Matrix>
|
|
306
|
-
Vector Vector::operator*(const Matrix &matrix) const {
|
|
307
|
-
assert(isTransposed()); // vector must be of the form 1xn
|
|
308
|
-
assert(getDimension() == matrix.numberOfRows()); // dimensions of vector and matrix must match
|
|
309
|
-
|
|
310
|
-
Vector result(matrix.numberOfColumns(), 0.0, true);
|
|
311
|
-
#pragma omp parallel for
|
|
312
|
-
for (omp_index k = 0; k < static_cast<omp_index>(matrix.numberOfColumns()); ++k) {
|
|
313
|
-
Vector column = matrix.column(k);
|
|
314
|
-
result[k] = (*this) * column;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
return result;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
template <typename F>
|
|
321
|
-
void Vector::apply(F unaryElementFunction) {
|
|
322
|
-
#pragma omp parallel for
|
|
323
|
-
for (omp_index i = 0; i < static_cast<omp_index>(getDimension()); ++i) {
|
|
324
|
-
values[i] = unaryElementFunction(values[i]);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
template <typename L>
|
|
329
|
-
inline void Vector::forElements(L handle) {
|
|
330
|
-
for (uint64_t i = 0; i < getDimension(); ++i) {
|
|
331
|
-
handle(values[i]);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
template <typename L>
|
|
336
|
-
inline void Vector::forElements(L handle) const {
|
|
337
|
-
for (uint64_t i = 0; i < getDimension(); ++i) {
|
|
338
|
-
handle(values[i]);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
template <typename L>
|
|
343
|
-
inline void Vector::parallelForElements(L handle) {
|
|
344
|
-
#pragma omp parallel for
|
|
345
|
-
for (omp_index i = 0; i < static_cast<omp_index>(getDimension()); ++i) {
|
|
346
|
-
handle(i, values[i]);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
template <typename L>
|
|
351
|
-
inline void Vector::parallelForElements(L handle) const {
|
|
352
|
-
#pragma omp parallel for
|
|
353
|
-
for (omp_index i = 0; i < static_cast<omp_index>(getDimension()); ++i) {
|
|
354
|
-
handle(i, values[i]);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
// print functions for test debugging / output. Prints Vector as [0, 1, 2, 3, 4]
|
|
359
|
-
inline std::ostream &operator<<(std::ostream &os, const Vector &vec) {
|
|
360
|
-
os << "[";
|
|
361
|
-
for (index i = 0; i < vec.getDimension(); i++) {
|
|
362
|
-
if (i != 0)
|
|
363
|
-
os << ", ";
|
|
364
|
-
os << vec[i];
|
|
365
|
-
}
|
|
366
|
-
os << "]";
|
|
367
|
-
return os;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
} /* namespace NetworKit */
|
|
371
|
-
#endif // NETWORKIT_ALGEBRAIC_VECTOR_HPP_
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* AlgebraicBFS.hpp
|
|
3
|
-
*
|
|
4
|
-
* Created on: Jun 7, 2016
|
|
5
|
-
* Author: Michael Wegner (michael.wegner@student.kit.edu)
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#ifndef NETWORKIT_ALGEBRAIC_ALGORITHMS_ALGEBRAIC_BFS_HPP_
|
|
9
|
-
#define NETWORKIT_ALGEBRAIC_ALGORITHMS_ALGEBRAIC_BFS_HPP_
|
|
10
|
-
|
|
11
|
-
#include <networkit/algebraic/GraphBLAS.hpp>
|
|
12
|
-
#include <networkit/algebraic/Vector.hpp>
|
|
13
|
-
#include <networkit/base/Algorithm.hpp>
|
|
14
|
-
#include <networkit/graph/Graph.hpp>
|
|
15
|
-
|
|
16
|
-
namespace NetworKit {
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @ingroup algebraic
|
|
20
|
-
* Implementation of Breadth-First-Search using the GraphBLAS interface.
|
|
21
|
-
*/
|
|
22
|
-
template <class Matrix>
|
|
23
|
-
class AlgebraicBFS : public Algorithm {
|
|
24
|
-
public:
|
|
25
|
-
/**
|
|
26
|
-
* Constructs an instance of the AlgebraicBFS algorithm for the given Graph @a graph and the
|
|
27
|
-
* given @a source node.
|
|
28
|
-
* @param graph
|
|
29
|
-
* @param source
|
|
30
|
-
*/
|
|
31
|
-
AlgebraicBFS(const Graph &graph, node source)
|
|
32
|
-
: At(Matrix::adjacencyMatrix(graph, MinPlusSemiring::zero()).transpose()), source(source) {}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Runs a bfs using the GraphBLAS interface from the source node.
|
|
36
|
-
*/
|
|
37
|
-
void run();
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Returns the distance from the source to node @a v.
|
|
41
|
-
* @param v
|
|
42
|
-
*/
|
|
43
|
-
double distance(node v) const {
|
|
44
|
-
assureFinished();
|
|
45
|
-
assert(v <= At.numberOfRows());
|
|
46
|
-
return distances[v];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
private:
|
|
50
|
-
Matrix At;
|
|
51
|
-
node source;
|
|
52
|
-
Vector distances;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
template <class Matrix>
|
|
56
|
-
void AlgebraicBFS<Matrix>::run() {
|
|
57
|
-
count n = At.numberOfRows();
|
|
58
|
-
distances = Vector(n, std::numeric_limits<double>::infinity());
|
|
59
|
-
distances[source] = 0;
|
|
60
|
-
|
|
61
|
-
Vector oldDist;
|
|
62
|
-
do {
|
|
63
|
-
oldDist = distances;
|
|
64
|
-
GraphBLAS::MxV<MinPlusSemiring>(At, distances, distances);
|
|
65
|
-
} while (oldDist != distances);
|
|
66
|
-
|
|
67
|
-
hasRun = true;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
} /* namespace NetworKit */
|
|
71
|
-
|
|
72
|
-
#endif // NETWORKIT_ALGEBRAIC_ALGORITHMS_ALGEBRAIC_BFS_HPP_
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* AlgebraicBellmanFord.hpp
|
|
3
|
-
*
|
|
4
|
-
* Created on: Jun 6, 2016
|
|
5
|
-
* Author: Michael Wegner (michael.wegner@student.kit.edu)
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#ifndef NETWORKIT_ALGEBRAIC_ALGORITHMS_ALGEBRAIC_BELLMAN_FORD_HPP_
|
|
9
|
-
#define NETWORKIT_ALGEBRAIC_ALGORITHMS_ALGEBRAIC_BELLMAN_FORD_HPP_
|
|
10
|
-
|
|
11
|
-
#include <cassert>
|
|
12
|
-
|
|
13
|
-
#include <networkit/algebraic/GraphBLAS.hpp>
|
|
14
|
-
#include <networkit/base/Algorithm.hpp>
|
|
15
|
-
#include <networkit/graph/Graph.hpp>
|
|
16
|
-
|
|
17
|
-
namespace NetworKit {
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @ingroup algebraic
|
|
21
|
-
* Implementation of the Bellman-Ford algorithm using the GraphBLAS interface.
|
|
22
|
-
*/
|
|
23
|
-
template <class Matrix>
|
|
24
|
-
class AlgebraicBellmanFord : public Algorithm {
|
|
25
|
-
public:
|
|
26
|
-
/**
|
|
27
|
-
* Construct an instance of the BellmanFord algorithm for the Graph @a graph and the given @a
|
|
28
|
-
* source node.
|
|
29
|
-
* @param graph
|
|
30
|
-
* @param source
|
|
31
|
-
*/
|
|
32
|
-
AlgebraicBellmanFord(const Graph &graph, node source)
|
|
33
|
-
: At(Matrix::adjacencyMatrix(graph, MinPlusSemiring::zero()).transpose()), source(source),
|
|
34
|
-
negCycle(false) {}
|
|
35
|
-
|
|
36
|
-
/** Default destructor */
|
|
37
|
-
~AlgebraicBellmanFord() = default;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Compute the shortest path from the source to all other nodes.
|
|
41
|
-
*/
|
|
42
|
-
void run();
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Returns the distance from the source node to @a t.
|
|
46
|
-
* @param t Target node.
|
|
47
|
-
* @return The distance from source to target node @a t.
|
|
48
|
-
*/
|
|
49
|
-
inline edgeweight distance(node t) const {
|
|
50
|
-
assert(t < At.numberOfRows());
|
|
51
|
-
assureFinished();
|
|
52
|
-
return distances[t];
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @return True if there is a negative cycle present in the graph, otherwise false.
|
|
57
|
-
*/
|
|
58
|
-
inline bool hasNegativeCycle() const {
|
|
59
|
-
assureFinished();
|
|
60
|
-
return negCycle;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private:
|
|
64
|
-
const Matrix At;
|
|
65
|
-
node source;
|
|
66
|
-
Vector distances;
|
|
67
|
-
bool negCycle;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
template <class Matrix>
|
|
71
|
-
void AlgebraicBellmanFord<Matrix>::run() {
|
|
72
|
-
count n = At.numberOfRows();
|
|
73
|
-
distances = Vector(n, std::numeric_limits<double>::infinity());
|
|
74
|
-
distances[source] = 0;
|
|
75
|
-
|
|
76
|
-
for (index k = 1; k < n; ++k) {
|
|
77
|
-
GraphBLAS::MxV<MinPlusSemiring>(At, distances, distances);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
Vector oldDist = distances;
|
|
81
|
-
GraphBLAS::MxV<MinPlusSemiring>(At, distances, distances);
|
|
82
|
-
negCycle = (oldDist != distances);
|
|
83
|
-
hasRun = true;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
} /* namespace NetworKit */
|
|
87
|
-
|
|
88
|
-
#endif // NETWORKIT_ALGEBRAIC_ALGORITHMS_ALGEBRAIC_BELLMAN_FORD_HPP_
|