Skip to main content

KaHIP v3.30 License: MIT C++ CMake Build Windows CI Codacy Badge GitHub Release PyPI version Homebrew Linux macOS Windows GitHub Stars GitHub Issues Last Commit arXiv arXiv arXiv arXiv arXiv arXiv arXiv arXiv Agent-Ready Heidelberg University

KaHIP Logo

Table of Contents

The graph partitioning framework KaHIP -- High Quality Partitioning. Part of the KaHIP organization. KaHIP supports Linux, macOS and Windows.

Python Interface: An easy-to-use Python interface for this software is available in CHSZLabLib.

The graph partitioning problem asks for a division of a graph's node set into k equally sized blocks such that the number of edges that run between the blocks is minimized. KaHIP is a family of graph partitioning programs. It includes KaFFPa (Karlsruhe Fast Flow Partitioner), which is a multilevel graph partitioning algorithm, in its variants Strong, Eco and Fast, KaFFPaE (KaFFPaEvolutionary), which is a parallel evolutionary algorithm that uses KaFFPa to provide combine and mutation operations, as well as KaBaPE which extends the evolutionary algorithm. Moreover, specialized techniques are included to partition road networks (Buffoon), to output a vertex separator from a given partition as well as techniques geared towards the efficient partitioning of social networks. Here is an overview of our framework:

framework overview

Example Users

Some projects that use KaHIP or ParHIP:

  • DOLFINx (FEniCS): finite element framework, KaHIP as mesh partitioner
  • PyFR: high-order flow solver, KaHIP as mesh partitioner
  • SeisSol: earthquake and seismic wave simulation, uses ParHIP
  • CB-Geo MPM (also geomechanics/mpm): material point method
  • OP2: framework for unstructured-mesh applications on CPUs and GPUs
  • OpenFOAM (ESI, openfoam.com): CFD, decomposition method kahip
  • TCSExam (Moonshot AI): benchmark for theoretical computer science research, uses KaHIP in its graph partitioning task
  • Data leakage in PPI prediction: partitions protein interaction data with KaHIP to build leakage-free train/test splits
  • ESPRESO: parallel framework for engineering simulations
  • meshio++: mesh input/output and partitioning

A longer list, including papers that use KaHIP, is in docs/kahip_users.pdf.

NEW in v3.30:

  • Faster ParHIP: ParHIP's partitioning is 2.5x faster in geometric mean and 3.2x faster in total time over a benchmark of 180 jobs (20 graphs, k = 8 and 64, 1 to 32 processes, all six preconfigurations); reading the graph is 2.8x faster in geometric mean and 3.6x faster in total. Most changes give bit-identical partitions; the others (coarsening node order, input distribution, coarse rebalancing, refinement round budget) passed a quality gate against the previous version, and the geometric mean edge cut is 0.5% smaller. Main changes: an mmap graph reader with a hand-written parser and balanced input distribution, cache-friendly coarsening label propagation with open-addressing maps and prefetching, array-based contraction with reused ghost send lists, sort-based projection, refinement rounds of equal edge work, and a buffered partition writer. It was developed with Agentic Algorithm Engineering (AAE). Details are in PR #189.

  • Example: ParHIP on uk-2007-05, k = 64, 128 cores, fastsocial, seeds 0 to 4:

    v3.29 v3.30 v3.30 / v3.29
    edge cut, average 6,635,192 6,680,251 1.007
    edge cut, minimum 6,191,128 6,300,236 1.018
    edge cut, maximum 7,098,687 7,140,866 1.006
    partitioning time, average (s) 66.93 16.35 0.244 (4.1x faster)
    partitioning time, min to max (s) 66.73 to 67.25 16.26 to 16.43
    time to read the graph (s) about 66.8 about 4.84 0.072 (13.8x faster)

NEW in v3.29:

  • Connected blocks in the library: the connected-blocks partitioning (--connected_blocks, see v3.25) is now also available through the C/C++ interface as kaffpa_connected_blocks, with the same arguments as kaffpa (mode STRONG only). The post-processing that makes every block connected moved from the kaffpa program into the library (lib/partition/connected_blocks.cpp); the output of kaffpa and kaffpaE is unchanged.

NEW in v3.28:

  • New preconfiguration ultra (one-page description): --preconfiguration=ultra (mode ULTRA in the C/C++ interface, kahip.ULTRA in Python) starts from strong and adds Jet refinement (label propagation with bounded negative-gain moves) before the k-way FM on every level, the unlocked flow model in the pairwise flow refinement, and more global work (3 V-cycles for k = 2, the best of 2 runs for k > 2). Against v3.26 strong it gives 2.2% smaller cuts in geometric mean (7% on social graphs) at 2.0x its time, which is still below the time of v3.25 strong on every job of our benchmark. Inside kaffpaE and KaBaPE, ultra also keeps balanced individuals ahead of overloaded ones and, with --input_partition, keeps the input partition, so the result is never worse than the input. All other preconfigurations are unchanged. It was developed with Agentic Algorithm Engineering (AAE), run with a focus on solution quality. Details are in PR #176.
  • Bug fix: when no flow network could be built for a pair of blocks, flow refinement could move a whole stripe of nodes while keeping the old cut value. This changes the output of strong and strongsocial in rare cases (cut quality unchanged on average); all other preconfigurations are unchanged. Fixed in PR #175.

NEW in v3.27:

  • Bug fix: Debug builds and the macOS/Homebrew build of v3.26 failed to link node_ordering and other programs (undefined node_hash_map<T>::EMPTY). Fixed in PR #173; results are unchanged.

NEW in v3.26:

  • Faster KaFFPa: kaffpa is now 3.9x faster in total time and 2.8x faster in geometric mean over a benchmark of 537 runs (20 mesh, road and social/web graphs, all six preconfigurations, k = 2 to 256), with partition quality unchanged (geometric mean cut within 0.1% of v3.25, no more imbalanced partitions). Every preconfiguration gains, from 2.3x (fastsocial) to 5.5x (eco) in total time. Most changes give bit-identical partitions for a given seed; the others only change tie breaking or random decisions and passed a quality gate against v3.25. Main changes: a fast graph reader and writer, cached gains and boundary updates for kept moves only in 2-way and k-way FM, Boykov-Kolmogorov maximum flows for flow refinement, cache-friendly label propagation on a copy of the graph in visiting order, and fewer ensemble clusterings in strongsocial. Details are in PR #171.
  • Agentic Algorithm Engineering: these improvements were engineered with Agentic Algorithm Engineering (AAE): a loop of profiling, hypothesis, implementation and measurement on a fixed benchmark, where each change is kept only if it is faster and passes the correctness or quality gate.

NEW in v3.25:

  • Connected Blocks (Experimental): KaFFPa and KaFFPaE now support --connected_blocks (strong preconfiguration only) to produce partitions where each block is a connected subgraph. The input graph must be connected. Connectivity is enforced via checkpoint-based component elimination during uncoarsening, combined with connectivity-aware refinement and greedy rebalancing. When this flag is not used, KaHIP behavior is unchanged.

NEW in v3.24:

  • 64-bit Edge Support: The C interface now supports 64-bit edges via a compile-time kahip_idx typedef. Compile with -D64BITMODE=On to enable int64_t for all edge-related arrays and values (xadj, adjncy, adjcwgt, edgecut). Node-related parameters remain int.
  • Windows Support: KaHIP now builds on Windows with MSVC. Windows pip wheels are available on PyPI.
  • Python 3.13/3.14: Pip wheels now available for Python 3.10-3.14 on Linux, macOS and Windows.
  • pkg-config Support: KaHIP and ParHIP are now discoverable via pkg-config.
  • ParHIP Example: Added a ParHIP interface usage example (misc/example_parhip_call/).
  • Runtime Index Query: Added kahip_sizeof_idx() to query whether the library was compiled with 32-bit or 64-bit indices.

NEW in v3.23:

Homebrew Support: KaHIP can now be installed via Homebrew on macOS and Linux using

brew install KaHIP/kahip/kahip

NEW in v3.21:

KaFFPa can now be used with pip. Simply run

pip install kahip

and use the example Python code below.

NEW in v3.14:

Support for Python: KaHIP can now also be used in Python. See below how to do that.

Hierarchical Partitionings: KaHIP can compute hierarchial partitionings. All you have to do is specify the hierarchy and KaHIP is ready to go and does the multisection as you specified.

Node Ordering Algorithms: Many applications rely on time-intensive matrix operations, such as factorization, which can be sped up significantly for large sparse matrices by interpreting the matrix as a sparse graph and computing a node ordering that minimizes the so-called fill-in. Here, we added new algorithms to compute fill-in reduced orderings in graphs.

ILPs For Even Higher Quality: ILPs typically don't scale to large instances. We adapt them to heuristically improve a given partition. We do so by defining a much smaller model that allows us to use symmetry breaking and other techniques that make the approach scalable. We include ILPs that can be used as a post-processing step to improve high-quality partitions even further. The codes are now included in KaHIP.

TCMalloc: we added the possibility to link against TCMalloc. Depending on your system, this can yield an overall faster algorithm since it provides faster malloc operations.

Faster IO: we added an option to kaffpa (option --mmap_io) that speedsup the IO of text files significantly -- sometimes by an order of magnitude.

Added Support for Vertex and Edge Weights in ParHIP: we extended the IO functionality of ParHIP to read weighted graphs in the METIS format.

Global Multisection Mapping: we added global multisection n-to-1 process mapping algorithms. This computes better process mapping for parallel applications if information about the system hierarchy/architecture is known.

Determinism in ParHIP: we added an option to run ParHIP deterministically, i.e. two runs of ParHIP using the same seed will always return the same result.

Version Flag: we added an option to output the version that you are currently using, use the --version option of the programs.

NEW in v2.10:

ParHIP (Parallel High Quality Partitioning): Our distributed memory parallel partitioning techniques are designed to partition hierarchically structured networks such as web graphs or social networks.

Mapping Algorithms: Our new algorithms to map the blocks onto processors to minimize overall communication time based on hierarchical partitionings of the task graph and fast local search algorithms.

Edge Partitioning Algorithms: Our new algorithms to compute edge partitionings of graphs.

Main org site:

https://github.com/kahip/

Installation Notes

Install via Homebrew

brew install KaHIP/kahip/kahip

If open-mpi fails to build from source (non-standard Homebrew prefix), either install it separately first:

brew install open-mpi
brew install KaHIP/kahip/kahip

or set the compiler explicitly:

export HOMEBREW_CC=gcc-15
export HOMEBREW_CXX=g++-15
brew install KaHIP/kahip/kahip

Downloading KaHIP:

You can download KaHIP with the following command line:

git clone https://github.com/KaHIP/KaHIP

Compiling KaHIP:

Before you can start, you need to install the following software packages:

  • if you want to use parallel algorithms contained within the framework (e.g. ParHIP), you need OpenMPI (https://www.open-mpi.org/). If you don't want to run ParHIP, you can easily get rid of this dependency.

Once you installed the packages, just type

./compile_withcmake.sh 

In this case, all binaries, libraries and headers are in the folder ./deploy/

Note that this script detects the amount of available cores on your machine and uses all of them for the compilation process. If you don't want that, set the variable NCORES to the number of cores that you would like to use for compilation.

Alternatively use the standard cmake build process:

mkdir build
cd build 
cmake ../ -DCMAKE_BUILD_TYPE=Release     
make 
cd ..

In this case, the binaries, libraries and headers are in the folder ./build as well as ./build/parallel/parallel_src/

We also provide the option to link against TCMalloc. If you have it installed, run cmake with the additional option -DUSE_TCMALLOC=On.

By default node ordering programs are also compiled. If you have Metis installed, the build script also compiles a faster node ordering program that uses reductions before calling Metis ND. Note that Metis requires GKlib (https://github.com/KarypisLab/GKlib).

If you use the option -DUSE_ILP=On and you have Gurobi installed, the build script compiles the ILP programs to improve a given partition ilp_improve and an exact solver ilp_exact. Alternatively, you can also pass these options to ./compile_withmake.sh for example:

./compile_withcmake -DUSE_ILP=On

We also provide an option to support 64-bit edges. In order to use this, compile KaHIP with the option -D64BITMODE=On. When enabled, the C interface uses kahip_idx (typedef for int64_t) instead of int32_t for all edge-related arrays and values (xadj, adjncy, adjcwgt, edgecut, infinity_edge_weight). Node-related parameters (n, vwgt, nparts, part) remain int. No additional flags are needed; -D64BITMODE=On enables both the internal 64-bit edge types and the public kahip_idx typedef.

Lastly, we provide an option for determinism in ParHIP, e.g. two runs with the same seed will give you the same result. Note however that this option can reduce the quality of partitions, as initial partitioning algorithms do not use sophisticated memetic algorithms, but only multilevel algorithms to compute initial partitionings. ONLY use this option if you use ParHIP as a tool. Do not use this option if you want to make quality comparisons against ParHIP. To make use of this option, run

./compile_withcmake -DDETERMINISTIC_PARHIP=On

Running Programs

For a description of the graph format (and an extensive description of all other programs) please have a look into the manual. We give short examples here.

Overview of Programs and Usecase

Default Partitioning Problem

These programs and configurations take a graph and partition it more or less sequentially. We list here kaffpa and kaffpaE (the evolutionary framework) and their configurations. In general, the configurations are such that you can invest a lot of time into solution quality using the memetic algorithm. The memetic algorithm can also be run in parallel using MPI. In general, the more time and resources you invest, the better will be the quality of your partition. We have a lot of trade-offs, contact us if you are unsure what works best for your application. For a description of the algorithm have a look at the references that we list in the manual.

Use Case Input Programs
Graph Format graphchecker
Evaluate Partitions evaluator
Fast Partitioning Meshes kaffpa preconfiguration set to fast
Good Partitioning Meshes kaffpa preconfiguration set to eco
Very Good Partitioning Meshes kaffpa preconfiguration set to strong
Best kaffpa Quality Meshes kaffpa preconfiguration set to ultra (about 2x the time of strong; also for kaffpaE)
Highest Quality Meshes kaffpaE, use mpirun, large time limit
Fast Partitioning Social kaffpa preconfiguration set to fsocial
Good Partitioning Social kaffpa preconfiguration set to esocial
Very Good Partitioning Social kaffpa preconfiguration set to ssocial
Highest Quality Social kaffpaE, use mpirun, large time limit, preconfiguration ssocial
Even Higher Quality kaffpaE, use mpirun, large time limit, use the options --mh_enable_tabu_search, --mh_enable_kabapE
Connected Blocks (Exp) kaffpa or kaffpaE, preconfiguration strong, --connected_blocks (input graph must be connected); library: kaffpa_connected_blocks

Example Runs

./deploy/graphchecker ./examples/rgg_n_2_15_s0.graph 
./deploy/kaffpa ./examples/rgg_n_2_15_s0.graph --k 4  --preconfiguration=strong
./deploy/kaffpa ./examples/rgg_n_2_15_s0.graph --k 4  --preconfiguration=ultra
mpirun -n 24 ./deploy/kaffpaE ./examples/rgg_n_2_15_s0.graph --k 4  --time_limit=3600 --mh_enable_tabu_search --mh_enable_kabapE

Connected blocks (experimental): each block of the partition is guaranteed to be a connected subgraph. Only supported with the strong preconfiguration. The input graph must be connected.

./deploy/kaffpa ./examples/rgg_n_2_15_s0.graph --k 4 --preconfiguration=strong --connected_blocks

Distributed Memory Parallel Partitioning

A large part of the project is distributed memory parallel algorithms designed for networks having a hierarchical cluster structure such as web graphs or social networks. Unfortunately, previous parallel graph partitioners originally developed for more regular mesh-like networks do not work well for complex networks. Here we address this problem by parallelizing and adapting the label propagation technique originally developed for graph clustering. By introducing size constraints, label propagation becomes applicable for both the coarsening and the refinement phase of multilevel graph partitioning. This way we exploit the hierarchical cluster structure present in many complex networks. We obtain very high quality by applying a highly parallel evolutionary algorithm to the coarsest graph. The resulting system is both more scalable and achieves higher quality than state-of-the-art systems like ParMetis or PT-Scotch.

Our distributed memory parallel algorithm can read binary files as well as standard Metis graph format files. Binary files are, in general, much more scalable than reading text files in parallel applications. The way to go here is to convert the Metis file into a binary file first (ending .bgf) and then load this one.

Use Case Programs
Parallel Partitioning parhip, graph2binary, graph2binary_external, toolbox
Distributed Memory Parallel, Mesh parhip with preconfigs ecomesh, fastmesh, ultrafastmesh
Distributed Memory Parallel, Social parhip with preconfigs ecosocial, fastsocial, ultrafastsocial
Convert Metis to Binary graph2binary, graph2binary_external
Evaluate and Convert Partitions toolbox

Example Runs

./deploy/graph2binary examples/rgg_n_2_15_s0.graph examples/rgg_n_2_15_s0.bgf
mpirun -n 24 ./deploy/parhip ./examples/rgg_n_2_15_s0.graph --k 4 --preconfiguration=fastmesh
mpirun -n 24 ./deploy/parhip ./examples/rgg_n_2_15_s0.bgf --k 4 --preconfiguration=fastmesh

Node Separators

The node separator problem asks to partition the node set of a graph into three sets A, B and S such that the removal of S disconnects A and B. We use flow-based and localized local search algorithms within a multilevel framework to compute node separators. KaHIP can also compute node separators. It can do so with a standard node separator (2-way), but it can also compute k-way node separators.

Use Case Programs
2-Way Separators node_separator
KWay Separators use kaffpa to create k-partition, then partition_to_vertex_separator to create a separator

Example Runs

./deploy/node_separator examples/rgg_n_2_15_s0.graph

Node Ordering

Applications such as factorization can be sped up significantly for large sparse matrices by interpreting the matrix as a sparse graph and computing a node ordering that minimizes the so-called fill-in. By applying both new and existing data reduction rules exhaustively before nested dissection, we obtain improved quality and at the same time large improvements in running time on a variety of instances. If METIS is installed, the build script also compiles the fast_node_ordering program, which runs reductions before running Metis to compute an ordering. The programs are also available through the library.

Use Case Programs
Node Ordering node_ordering (with different preconfigurations)
Fast Node Ordering fast_node_ordering

Example Runs

./deploy/node_ordering examples/rgg_n_2_15_s0.graph
./deploy/fast_node_ordering examples/rgg_n_2_15_s0.graph

Edge Partitioning

Edge-centric distributed computations have appeared as a recent technique to improve the shortcomings of think- like-a-vertex algorithms on large scale-free networks. In order to increase parallelism on this model, edge partitioning -- partitioning edges into roughly equally sized blocks -- has emerged as an alternative to traditional (node-based) graph partitioning. We include a fast parallel and sequential split-and-connect graph construction algorithm that yields high-quality edge partitions in a scalable way. Our technique scales to networks with billions of edges, and runs efficiently on thousands of PEs.

Use Case Programs
Edge Partitioning edge_partitioning, distributed_edge_partitioning

Example Runs

./deploy/edge_partitioning ./examples/rgg_n_2_15_s0.graph --k 4 --preconfiguration=fast
mpirun -n 4 ./deploy/distributed_edge_partitioning ./examples/rgg_n_2_15_s0.bgf --k 4 --preconfiguration=fastsocial 

Process Mapping

Communication and topology aware process mapping is a powerful approach to reduce communication time in parallel applications with known communication patterns on large, distributed memory systems. We address the problem as a quadratic assignment problem (QAP), and include algorithms to construct initial mappings of processes to processors as well as fast local search algorithms to further improve the mappings. By exploiting assumptions that typically hold for applications and modern supercomputer systems such as sparse communication patterns and hierarchically organized communication systems, we arrive at significantly more powerful algorithms for these special QAPs. Our multilevel construction algorithms employ perfectly balanced graph partitioning techniques and excessively exploit the given communication system hierarchy. Since v3.0 we included global multisection algorithms that directly partition the input network along the specified hierarchy to obtain an n-to-1 mapping and afterwards call 1-to-1 mapping algorithms to even further improve the mapping.

Use Case Programs
Mapping to Processor Networks kaffpa, and use enable_mapping option with resp. perconfigurations
Global Multisection global_multisection with resp. perconfigurations

Example Runs

./deploy/kaffpa examples/rgg_n_2_15_s0.graph --k 256 --preconfiguration=eco --enable_mapping --hierarchy_parameter_string=4:8:8 --distance_parameter_string=1:10:100
./deploy/global_multisection examples/rgg_n_2_15_s0.graph --preconfiguration=eco  --hierarchy_parameter_string=4:3:3:3 --distance_parameter_string=1:10:100:200

ILP (Exact Solver) and ILP Improvements

We provide an ILP as well as an ILP to improve a given partition. We extend the neighborhood of the combination problem for multiple local searches by employing integer linear programming. This enables us to find even more complex combinations and hence to further improve solutions. However, out of the box those the ILPs for the problem typically do not scale to large inputs, in particular because the graph partitioning problem has a very large amount of symmetry -- given a partition of the graph, each permutation of the block IDs gives a solution having the same objective and balance. We define a much smaller graph, called model, and solve the graph partitioning problem on the model to optimality by the integer linear program. Besides other things, this model enables us to use symmetry breaking, which allows us to scale to much larger inputs. In order to compile these programs you need to run cmake in the build process above as cmake ../ -DCMAKE_BUILD_TYPE=Release -DUSE_ILP=On or run ./compile_withcmake -DUSE_ILP=On.

Use Case Programs
Exact Solver ilp_exact
Improvement via ILP ilp_improve

Example Runs

./deploy/ilp_improve ./examples/rgg_n_2_15_s0.graph --k 4 --input_partition=tmppartition4
./deploy/ilp_exact ./examples/example_weighted.graph  --k 3

Linking the KaHIP Library

KaHIP also offers libraries and interfaces to link the algorithms directly to your code. We explain the details of the interface in the manual. Below we list an example program that links the kahip library. This example can also be found in misc/example_library_call/.

#include <iostream>
#include <sstream>

#include "kaHIP_interface.h"


int main(int argn, char **argv) {

        std::cout <<  "partitioning graph from the manual"  << std::endl;

        int n              = 5;
        kahip_idx* xadj    = new kahip_idx[6];
        xadj[0] = 0; xadj[1] = 2; xadj[2] = 5; xadj[3] = 7; xadj[4] = 9; xadj[5] = 12;

        kahip_idx* adjncy  = new kahip_idx[12];
        adjncy[0]  = 1; adjncy[1]  = 4; adjncy[2]  = 0; adjncy[3]  = 2; adjncy[4]  = 4; adjncy[5]  = 1;
        adjncy[6]  = 3; adjncy[7]  = 2; adjncy[8]  = 4; adjncy[9]  = 0; adjncy[10] = 1; adjncy[11] = 3;

        double imbalance   = 0.03;
        int* part          = new int[n];
        kahip_idx edge_cut = 0;
        int nparts         = 2;
        int* vwgt          = NULL;
        kahip_idx* adjcwgt = NULL;

        kaffpa(&n, vwgt, xadj, adjcwgt, adjncy, &nparts, &imbalance, false, 0, ECO, &edge_cut, part);

        std::cout <<  "edge cut " <<  edge_cut  << std::endl;
}

To get a partition in which every block is a connected subgraph, call kaffpa_connected_blocks instead of kaffpa. It takes the same arguments, supports only mode STRONG (any other mode sets edge_cut to -1 and computes nothing) and requires a connected input graph:

        kaffpa_connected_blocks(&n, vwgt, xadj, adjcwgt, adjncy, &nparts, &imbalance, false, 0, STRONG, &edge_cut, part);

Linking the ParHIP Library (Parallel Partitioning)

ParHIP provides a parallel graph partitioning interface using MPI. Each process reads the METIS graph file but only stores its local portion of the distributed CSR structure. The full example can be found in misc/example_parhip_call/.

#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <mpi.h>

#include "parhip_interface.h"

int main(int argc, char **argv) {
        MPI_Init(&argc, &argv);

        int rank, size;
        MPI_Comm comm = MPI_COMM_WORLD;
        MPI_Comm_rank(comm, &rank);
        MPI_Comm_size(comm, &size);

        // Read header to get number of nodes
        std::ifstream in(argv[1]);
        std::string line;
        while (std::getline(in, line)) { if (line[0] != '%') break; }
        idxtype n_global; { std::stringstream ss(line); ss >> n_global; }

        // Compute which nodes this PE owns
        std::vector<idxtype> vtxdist(size + 1);
        for (int p = 0; p <= size; p++)
                vtxdist[p] = (idxtype)p * n_global / size;
        idxtype local_from = vtxdist[rank];
        idxtype local_to   = vtxdist[rank + 1];
        idxtype local_n    = local_to - local_from;

        // Scan file, only store local nodes
        std::vector<idxtype> xadj(local_n + 1);
        std::vector<idxtype> adjncy;
        idxtype node = 0, local_idx = 0;
        xadj[0] = 0;
        while (std::getline(in, line)) {
                if (line[0] == '%') continue;
                if (node >= local_from && node < local_to) {
                        std::stringstream ss(line);
                        idxtype target;
                        while (ss >> target) adjncy.push_back(target - 1);
                        local_idx++;
                        xadj[local_idx] = adjncy.size();
                }
                node++;
                if (node >= local_to) break;
        }
        in.close();

        // Partition
        int nparts = 2;
        double imbalance = 0.03;
        int edgecut = 0;
        std::vector<idxtype> part(local_n);

        ParHIPPartitionKWay(vtxdist.data(), xadj.data(), adjncy.data(),
                            NULL, NULL, &nparts, &imbalance,
                            false, 0, FASTSOCIAL,
                            &edgecut, part.data(), &comm);

        if (rank == 0) std::cout << "edge cut: " << edgecut << std::endl;

        MPI_Finalize();
        return 0;
}

Compile and run:

mpicxx -o parhip_test parhip_test.cpp -I/path/to/kahip/include -L/path/to/kahip/lib -lparhip_interface
mpirun -np 4 ./parhip_test graph.metis

To link statically, use the installed libparhip_interface_static.a together with libkahip_parallel_static.a, which contains the KaHIP library that ParHIP uses for initial partitioning (the KaFFPaE call kaffpaE_comm from kaHIP_interface_mpi.h):

mpicxx -fopenmp -o parhip_test parhip_test.cpp -I/path/to/kahip/include -L/path/to/kahip/lib -lparhip_interface_static -lkahip_parallel_static

Using KaHIP in Python

KaHIP can also be used in Python. The easiest way is to install it using pip:

pip install kahip

Alterantively, if you want to use latest commit in Python first run

python3 -m pip install pybind11

Then run

./compile_withcmake.sh BUILDPYTHONMODULE

to build the Python model. This will build the Python module and also put an example callkahipfrompython.py into the deploy folder. You can run this by typing the following in the deploy folder:

python3 callkahipfrompython.py 

Note that we only provide preliminary support, i.e. you may need to change some paths to Python inside the compile_withcmake file. An example can also be found below:

import kahip

#build adjacency array representation of the graph
xadj           = [0,2,5,7,9,12]
adjncy         = [1,4,0,2,4,1,3,2,4,0,1,3]
vwgt           = [1,1,1,1,1]
adjcwgt        = [1,1,1,1,1,1,1,1,1,1,1,1]
supress_output = 0
imbalance      = 0.03
nblocks        = 2 
seed           = 0

# set mode 
#const int FAST           = 0;
#const int ECO            = 1;
#const int STRONG         = 2;
#const int FASTSOCIAL     = 3;
#const int ECOSOCIAL      = 4;
#const int STRONGSOCIAL   = 5;
mode = 0 

edgecut, blocks = kahip.kaffpa(vwgt, xadj, adjcwgt, 
                              adjncy,  nblocks, imbalance, 
                              supress_output, seed, mode)

print(edgecut)
print(blocks)

Alternatively, you can use the kahip_graph class to construct graphs programmatically:

import kahip

# Create graph using kahip_graph class
g = kahip.kahip_graph()
g.set_num_nodes(5)
g.add_undirected_edge(0, 1, 2)
g.add_undirected_edge(1, 2, 1)
g.add_undirected_edge(2, 3, 3)
g.add_undirected_edge(3, 4, 1)
g.set_weight(0, 2)  # Set node weight

# Convert to CSR format and partition
vwgt, xadj, adjcwgt, adjncy = g.get_csr_arrays()
edgecut, blocks = kahip.kaffpa(vwgt, xadj, adjcwgt, adjncy, 2, 0.03, 0, 0, 0)

print(f"Edgecut: {edgecut}")
print(f"Blocks: {blocks}")

Using KaHIP in Fortran

KaHIP provides the Fortran modules kahip (all routines of kaHIP_interface.h) and parhip (ParHIPPartitionKWay). Build them with

cmake -B build -DCMAKE_BUILD_TYPE=Release -DBUILDFORTRAN=On
cmake --build build
cmake --install build --prefix /path/to/kahip

This installs kahip.mod, parhip.mod, libkahip_fortran.a and libparhip_fortran.a. Graphs use the same 0-based CSR format as the C interface, and the integer kind kahip_idx matches the library (64 bit with -D64BITMODE=On). Node and edge weights are optional arguments: leave them out for an unweighted graph and pass the remaining arguments by keyword. The constants are prefixed, e.g. KAHIP_ECO or PARHIP_FASTMESH.

program partition
  use, intrinsic :: iso_c_binding, only: c_int, c_double, c_bool
  use kahip
  implicit none

  ! the graph from the manual, 0-based CSR format as in the C interface
  integer(c_int)     :: n = 5, nparts = 2, part(5)
  integer(kahip_idx) :: xadj(6)    = [0, 2, 5, 7, 9, 12]
  integer(kahip_idx) :: adjncy(12) = [1, 4, 0, 2, 4, 1, 3, 2, 4, 0, 1, 3]
  integer(kahip_idx) :: edgecut
  real(c_double)     :: imbalance = 0.03

  ! unweighted graph: leave out vwgt and adjcwgt and pass the rest by keyword
  call kaffpa(n, xadj=xadj, adjncy=adjncy, nparts=nparts, imbalance=imbalance, &
              suppress_output=.true._c_bool, seed=0, mode=KAHIP_ECO,           &
              edgecut=edgecut, part=part)

  print *, "edge cut", edgecut
  print *, "blocks  ", part
end program partition

Compile and link with

gfortran partition.f90 -I/path/to/kahip/include -L/path/to/kahip/lib -lkahip_fortran -lkahip_static -lstdc++ -fopenmp

For ParHIP, use the module parhip; the communicator is passed as a Fortran handle (e.g. MPI_COMM_WORLD from the module mpi):

mpifort parhip_example.f90 -I/path/to/kahip/include -L/path/to/kahip/lib -lparhip_fortran -lparhip_interface_static -lkahip_parallel_static -lstdc++ -fopenmp

Complete examples that call every routine are in misc/example_library_call/fortran; with -DBUILDFORTRAN=On they are built and run by ctest.

Licence

The program is licenced under MIT licence. If you publish results using our algorithms, please acknowledge our work by quoting the following paper:

@inproceedings{sandersschulz2013,
             AUTHOR = {Sanders, Peter and Schulz, Christian},
             TITLE = {{Think Locally, Act Globally: Highly Balanced Graph Partitioning}},
             BOOKTITLE = {Proceedings of the 12th International Symposium on Experimental Algorithms (SEA'13)},
             SERIES = {LNCS},
             PUBLISHER = {Springer},
             YEAR = {2013},
             VOLUME = {7933},
             PAGES = {164--175}
}

If you use our parallel partitioner ParHIP please also cite the following paper:

@inproceedings{meyerhenkesandersschulz2017,
             AUTHOR = {Meyerhenke, Henning and Sanders, Peter and Schulz, Christian},
             TITLE = {{Parallel Graph Partitioning for Complex Networks}},
             JOURNAL = {IEEE Transactions on Parallel and Distributed Systems (TPDS)},
             VOLUME = {28},
             NUMBER = {9},
             PAGES = {2625--2638},
             YEAR = {2017}
}

If you use mapping algorithm please also cite the following paper:

@article{vonkirchbachschulztraeff2020,
             AUTHOR = {von Kirchbach, Konrad and Schulz, Christian and Tr{\"{a}}ff, Jesper Larsson},
             TITLE = {{Better Process Mapping and Sparse Quadratic Assignment}},
             JOURNAL = {ACM Journal of Experimental Algorithmics},
             VOLUME = {25},
             PAGES = {1--37},
             YEAR = {2020},
             DOI = {10.1145/3409667}
}

If you use global multisection mapping please also cite the following paper:

@inproceedings{fonsecafaraj2020mapping,
             AUTHOR = {Fonseca Faraj, Marcelo and van der Grinten, Alexander and Meyerhenke, Henning and Tr{\"{a}}ff, Jesper Larsson and Schulz, Christian},
             TITLE = {{High-Quality Hierarchical Process Mapping}},
             BOOKTITLE = {Proceedings of the 18th International Symposium on Experimental Algorithms (SEA'20)},
             SERIES = {LIPIcs},
             VOLUME = {160},
             PAGES = {4:1--4:15},
             YEAR = {2020},
             DOI = {10.4230/LIPIcs.SEA.2020.4}
}

If you use shared-memory parallel partitioning (mt-KaHIP) please also cite the following paper:

@article{akhremtsevsandersschulz2020,
             AUTHOR = {Akhremtsev, Yaroslav and Sanders, Peter and Schulz, Christian},
             TITLE = {{High-Quality Shared-Memory Graph Partitioning}},
             JOURNAL = {IEEE Transactions on Parallel and Distributed Systems},
             VOLUME = {31},
             NUMBER = {11},
             PAGES = {2710--2722},
             YEAR = {2020},
             DOI = {10.1109/TPDS.2020.3001645}
}

If you use edge partitioning algorithms please also cite the following paper:

@inproceedings{edgepartitioning2019,
             AUTHOR = {Schlag, Sebastian and Schulz, Christian and Seemaier, Daniel and Strash, Darren},
             TITLE = {{Scalable Edge Partitioning}},
             BOOKTITLE = {Proceedings of the 21th Workshop on Algorithm Engineering and Experimentation (ALENEX)},
             PUBLISHER = {SIAM},
             PAGES = {211--225},
             YEAR = {2019}
}

If you use node ordering algorithms please also cite the following paper:

@inproceedings{ostschulzstrash2021,
  author    = {Wolfgang Ost and Christian Schulz and Darren Strash},
  title     = {Engineering Data Reduction for Nested Dissection},
  booktitle = {Proceedings of the 19th Workshop on Algorithm Engineering and Experimentation (ALENEX'21)},
  pages     = {113--126},
  publisher = {SIAM},
  year      = {2021},
  doi       = {10.1137/1.9781611976472.9}
}

If you use ILP algorithms to improve a partition please also cite the following paper:

@article{henzingernoeschulz2020,
  author    = {Alexandra Henzinger and Alexander Noe and Christian Schulz},
  title     = {ILP-based Local Search for Graph Partitioning},
  journal   = {ACM Journal of Experimental Algorithmics},
  volume    = {25},
  pages     = {1--26},
  year      = {2020},
  doi       = {10.1145/3398634}
}

Project Contributors (sorted by last name)

Yaroslav Akhremtsev

Adil Chhabra

Marcelo Fonseca Faraj

Roland Glantz

Alexandra Henzinger

Dennis Luxen

Henning Meyerhenke

Alexander Noe

Mark Olesen

Lara Ost

Ilya Safro

Peter Sanders

Hayk Sargsyan

Sebastian Schlag

Christian Schulz (maintainer)

Daniel Seemaier

Darren Strash

Alexander Svozil

Jesper Larsson Träff

Metadata

Release files for kahip 3.30

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kahip 3.30
File Size Uploaded Provenance Actions
kahip-3.30.tar.gz 2.9 MB Without provenance Details for kahip-3.30.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kahip 3.30
File Actions
kahip-3.30-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for kahip-3.30-cp314-cp314-win_amd64.whl
kahip-3.30-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for kahip-3.30-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
kahip-3.30-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for kahip-3.30-cp314-cp314-macosx_11_0_arm64.whl
kahip-3.30-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for kahip-3.30-cp313-cp313-win_amd64.whl
kahip-3.30-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for kahip-3.30-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
kahip-3.30-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for kahip-3.30-cp313-cp313-macosx_11_0_arm64.whl
kahip-3.30-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for kahip-3.30-cp312-cp312-win_amd64.whl
kahip-3.30-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for kahip-3.30-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
kahip-3.30-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for kahip-3.30-cp312-cp312-macosx_11_0_arm64.whl
kahip-3.30-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for kahip-3.30-cp311-cp311-win_amd64.whl
kahip-3.30-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for kahip-3.30-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
kahip-3.30-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for kahip-3.30-cp311-cp311-macosx_11_0_arm64.whl
kahip-3.30-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for kahip-3.30-cp310-cp310-win_amd64.whl
kahip-3.30-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for kahip-3.30-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
kahip-3.30-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for kahip-3.30-cp310-cp310-macosx_11_0_arm64.whl
kahip-3.30-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for kahip-3.30-cp39-cp39-win_amd64.whl
kahip-3.30-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for kahip-3.30-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
kahip-3.30-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for kahip-3.30-cp39-cp39-macosx_11_0_arm64.whl

Total release size: 138.3 MB

Release files / kahip-3.30.tar.gz

Download URL kahip-3.30.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
29eff4376be8cddfc30fac48a02cd34020eea1ac87346525c53a0f770018dfa0
BLAKE2b-256 checksum
How to use checksums
9f2e3da83e6db1f3830c202c298cb5827e9d14a2bedfe5b1db7e65d181e30712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp314-cp314-win_amd64.whl

Download URL kahip-3.30-cp314-cp314-win_amd64.whl
Size 6.1 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
844f6778cf26b393ad58dcaeb147a508db8afd0eca25da1c97f4bdd9d78f9447
BLAKE2b-256 checksum
How to use checksums
b636f2927d33b4abdda87aae5ab3a0e2b0cdc46bf8f0a8297fe7ee3e983f9acf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL kahip-3.30-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 11.9 MB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0c01e185589853ea2fe883e492433df1873e3c7e7c5711db27f420f3a9ec2ea6
BLAKE2b-256 checksum
How to use checksums
97fae5c7b40795cc9eaac83f4535d726db0969a78f394c10d3e33a590c55b7d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp314-cp314-macosx_11_0_arm64.whl

Download URL kahip-3.30-cp314-cp314-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
71253b72d46528ac1057f685d6a6757ffdf3de1db1b12e2ae3ff536f8ab3e801
BLAKE2b-256 checksum
How to use checksums
3caee3f57e49aa40308238d2c48f684583ec2ce90e98ee7001bb00c876e2e3e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp313-cp313-win_amd64.whl

Download URL kahip-3.30-cp313-cp313-win_amd64.whl
Size 6.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
6d415669195648cdc941a00791e4a36c1607f29d5a45f5d36eb50828e186a4aa
BLAKE2b-256 checksum
How to use checksums
c02807e95a7f113ae326c77c8f098485994e0a4d03667e61186416876f6de3d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL kahip-3.30-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 11.9 MB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f44bb418b38e129f35e50f351ce51919fae906b4a237d41bf377acab29ad81ce
BLAKE2b-256 checksum
How to use checksums
4178956f40563871c6b0e951c4c7c057bac9dfab96867fb52687a42858a5c405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp313-cp313-macosx_11_0_arm64.whl

Download URL kahip-3.30-cp313-cp313-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f431ebb1839afeae9a938ca6853a4d419b8b905152312e1d19d473fc4c6e0b21
BLAKE2b-256 checksum
How to use checksums
df84a9ab28f8e7d21d438b9eb17dbac1c14aa58d5a6f04540473e39c64fd8c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp312-cp312-win_amd64.whl

Download URL kahip-3.30-cp312-cp312-win_amd64.whl
Size 6.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d15d8a9056ceb8c00dc756e7f450b7c6e71b7ff4505879389205a897b059af71
BLAKE2b-256 checksum
How to use checksums
5869e985587913dc98113d05862a83e053402bb6c445c156b37c2488acf7da41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL kahip-3.30-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 11.9 MB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c2ace90fd297ca82b562141c2c1af2b7de8e9dc2e1f89e155876df4238f1fe46
BLAKE2b-256 checksum
How to use checksums
0fa4b5e09771410a281b468e2bb04ce56bd8a0f43b974bb9e7ddc622242d7e35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp312-cp312-macosx_11_0_arm64.whl

Download URL kahip-3.30-cp312-cp312-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d84b9e125a6ae903e37445269fa3558c8c33a6ea32b324485878eaa125a56521
BLAKE2b-256 checksum
How to use checksums
608d2e06266b417e24b5def45d97b93124d2d1c6aecd56071711e35f6882b613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp311-cp311-win_amd64.whl

Download URL kahip-3.30-cp311-cp311-win_amd64.whl
Size 6.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
e2e18f4014f705cd3a2bba7978dc68888968aee4894de03a95c2c5ab27045754
BLAKE2b-256 checksum
How to use checksums
95fbf9ec761d3b43b32e00b5574cba3b00de7b09402aa7200a4a2b9637d74a4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL kahip-3.30-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 11.9 MB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a861641a55c0c987c49c5b26f08bd9e734dfba45384485003983bc82e1f43c63
BLAKE2b-256 checksum
How to use checksums
78d6d81d121c5cdeeb3c7555eed029f5206f26a2adf7418239bc030ac0fb3011
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp311-cp311-macosx_11_0_arm64.whl

Download URL kahip-3.30-cp311-cp311-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c4dd4230145ab2386616072a1c417062318063d01c54d76c4c5af396d9088d71
BLAKE2b-256 checksum
How to use checksums
00498619ef7886c6a53c8dd67f1f7731cc78320d9c104eea7fa94347634bc232
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp310-cp310-win_amd64.whl

Download URL kahip-3.30-cp310-cp310-win_amd64.whl
Size 6.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a2d43077ea571f0ec45225d9dc8ca7e13d44c2222f87fdb1ce6db5c8101c855e
BLAKE2b-256 checksum
How to use checksums
72dc91a18397e782736da897f76d061a609e0d6980f1c59f67bf3b767499c175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL kahip-3.30-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 11.9 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a55038c7c0ca316423f307df85d794a49a259c60971d626cce62b3af9cbe589a
BLAKE2b-256 checksum
How to use checksums
c861a89803b85597c070edc40096da770197b91f6984ef048f79767f6d13ce36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp310-cp310-macosx_11_0_arm64.whl

Download URL kahip-3.30-cp310-cp310-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
772892e18f0e8dfc0f41d43dd454484d6e0c8ed1a904aec424b0748e56334caa
BLAKE2b-256 checksum
How to use checksums
57b9b9a7b837328b570decfde3fb1e89152fca6889d53cd41f62b0e40a99013b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp39-cp39-win_amd64.whl

Download URL kahip-3.30-cp39-cp39-win_amd64.whl
Size 6.0 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
75298698806d6d2198d99226417ddc3fda64f7be529a65a7a8a02faac335eb0f
BLAKE2b-256 checksum
How to use checksums
371799e695ab7330e94c0626123b235ce7ec9f49dd488349273f22c46e3ba586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL kahip-3.30-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 11.9 MB
Tags CPython 3.9 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
0f81ba36eb6515f44d79e4adf4668b88333355d927f8d2846ecf0b94c9043738
BLAKE2b-256 checksum
How to use checksums
21856a64f2ea845ba273a14faa1ff3e4b36bbce45557041652965f5f72735da6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / kahip-3.30-cp39-cp39-macosx_11_0_arm64.whl

Download URL kahip-3.30-cp39-cp39-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2d625804fc3edf45e4713e0ec15841ac5031d94f1bb9faeb019d7b28b669b24a
BLAKE2b-256 checksum
How to use checksums
41a997538ff34315c4c0e950cb921eb19b61346b02b0a1d00bbd6ed46c1bcee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for kahip 3.30

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page