Mex files for METIS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
external/metis
src
test
.gitignore
LICENSE
METIS_startup.m
README.md
make.m

README.md

MetisMex

MetisMex is a Matlab interface to METIS. This code works with the latest stable version of Metis (5.1.0, 2013-03-30). And the source files are included under external folder.

The following instructions worked on Ubuntu (14.04 LTS) and OSX 10.10 with Matlab installed.

Compile on Ubuntu


  1. Download MetisMex
git clone https://github.com/YingzhouLi/metismex.git
cd metismex
  1. Install the latest version of metis.

a. Superuser or Root

sudo apt-get install libmetis-dev

b. User

cd external/metis
make config
make
cd ../..
  1. Compile MetisMex.
matlab -nojvm -r "make;quit"
  1. Test MetisMex
cd test
matlab &
>> test
>> test_sparse

Compile on Mac


  1. Download MetisMex
git clone https://github.com/YingzhouLi/metismex.git
cd metismex
  1. Install the latest version of metis.

a. Superuser or Root

brew install metis

b. User

cd external/metis
make config
make
cd ../..
  1. Compile MetisMex.
matlab -nojvm -r "make;quit"
  1. Test MetisMex
cd test
matlab &
>> test
>> test_sparse

Install on Ubuntu


  1. Download MetisMex
git clone https://github.com/YingzhouLi/metismex.git
cd metismex
  1. Install the latest version of metis.

a. Superuser or Root

sudo apt-get install libmetis-dev

b. User

cd external/metis
make config
make
cd ../..
  1. Install MetisMex.
matlab -nojvm -r "make(1);quit"

Install on Mac


  1. Download MetisMex
git clone https://github.com/YingzhouLi/metismex.git
cd metismex
  1. Install the latest version of metis.

a. Superuser or Root

brew install metis

b. User

cd external/metis
make config
make
cd ../..
  1. Install MetisMex.
git clone https://github.com/YingzhouLi/metismex.git
cd metismex
matlab -nojvm -r "make(1);quit"

Uninstall on Ubuntu and Mac


  1. Download MetisMex.
git clone https://github.com/YingzhouLi/metismex.git
cd metismex
  1. Uninstall MetisMex
matlab -nojvm -r "make(-1);quit"

Acknowledgments


Many thanks to David Gleich and Robert Bridson. Yingzhou Li implements this repository after carefully exploring their previous work metismex and metismex.c.