Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
/ metis_python Public archive

Just a modified package from official "METIS for Python" to support networkx 2.4

License

Notifications You must be signed in to change notification settings

james77777778/metis_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metis for Python

Just a modified package from official "METIS for Python" to support lastest networkx. Should support all features.

Installation

You need to install metis first for this wrapper.

  1. Download and extract metis-5.1.0.tar.gz from METIS - Serial Graph Partitioning and Fill-reducing Matrix Ordering
  2. cd metis-5.1.0
  3. make config shared=1 prefix=~/.local/
  4. make install
  5. export METIS_DLL=~/.local/lib/libmetis.so

You are ready to use this wrapper

pip3 install metis-python

Usage

import metispy as metis

G = metis.example_networkx()
(edgecuts, parts) = metis.part_graph(G, 3)

Test

python3 metis.py  # Official Test
python3 test.py  # A Simple Test

About

Just a modified package from official "METIS for Python" to support networkx 2.4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages