Skip to main content

KaHIP Python Wrapper

Project description

Installation

pip install kahipwrapper

Usage

from kahipwrapper import kaHIP

vwgt = None
xadj = [0,2,5,7,9,12]
adjcwgt = [1,1,1,1,1,1,1,1,1,1,1,1]
adjncy = [1,4,0,2,4,1,3,2,4,0,1,3]
nparts = 2
imbalance = 0.03
suppress_output = False
mode = kaHIP.STRONG
seed = 0

ncount = len(xadj) - 1
nparts = 2

print(ncount)

print(kaHIP.kaffpa_balance_NE(ncount, vwgt, xadj, adjcwgt, adjncy,
                              nparts, imbalance, suppress_output,
                              seed, mode))
print(kaHIP.kaffpa(ncount, vwgt, xadj, adjcwgt, adjncy, nparts,
                   imbalance, suppress_output, seed, mode))

print(kaHIP.node_separator(ncount, vwgt, xadj, adjcwgt, adjncy, nparts,
                           imbalance, suppress_output, seed, mode))

For more information, please visit KaHIP site here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for kahipwrapper, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size kahipwrapper-0.1.7-cp26-cp26m-manylinux1_x86_64.whl (556.6 kB) File type Wheel Python version cp26 Upload date Hashes View
Filename, size kahipwrapper-0.1.7-cp26-cp26mu-manylinux1_x86_64.whl (556.6 kB) File type Wheel Python version cp26 Upload date Hashes View
Filename, size kahipwrapper-0.1.7-cp27-cp27m-manylinux1_x86_64.whl (596.8 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size kahipwrapper-0.1.7-cp27-cp27mu-manylinux1_x86_64.whl (596.8 kB) File type Wheel Python version cp27 Upload date Hashes View
Filename, size kahipwrapper-0.1.7-cp33-cp33m-manylinux1_x86_64.whl (595.1 kB) File type Wheel Python version cp33 Upload date Hashes View
Filename, size kahipwrapper-0.1.7-cp34-cp34m-manylinux1_x86_64.whl (595.7 kB) File type Wheel Python version cp34 Upload date Hashes View
Filename, size kahipwrapper-0.1.7-cp35-cp35m-manylinux1_x86_64.whl (595.8 kB) File type Wheel Python version cp35 Upload date Hashes View
Filename, size kahipwrapper-0.1.7-cp36-cp36m-manylinux1_x86_64.whl (595.8 kB) File type Wheel Python version cp36 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page