A Python wrapper around Metis, a graph partitioning package
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pymetis
src
test
.gitignore
.gitlab-ci.yml
LICENSE
MANIFEST.in
Makefile.in
README.rst
README_SETUP.txt
aksetup_helper.py
configure.py
requirements.txt
setup.cfg
setup.py

README.rst

PyMetis is a Python wrapper for the Metis graph partititioning software by George Karypis, Vipin Kumar and others. It includes version 5.1.0 of Metis and wraps it using the Boost Python wrapper generator library. So far, it only wraps the most basic graph partitioning functionality (which is enough for my current use), but extending it in case you need more should be quite straightforward. Using PyMetis to partition your meshes is really easy--essentially all you need to pass into PyMetis is an adjacency list for the graph and the number of parts you would like.

Installation

The following line should do the job:

pip install pymetis