FFI wrapper of METIS graph partitioning library
Install from RubyGems:
$ gem install rbmetis
Or download source tree from releases, cd to tree top and run:
$ ruby setup.rb
-
Required METIS files:
- C header: metis.h
- Library: libmetis.so
-
option for extconf.rb
--with-metis-dir=path --with-metis-include=path --with-metis-lib=path
-
How to pass option to extconf.rb
$ gem install rbmetis -- --with-metis-dir=/opt/metis or $ ruby setup.rb -- --with-metis-dir=/opt/metis
Loading RbMeits:
require 'rbmetis'
Currently implemented APIs:
RbMetis.part_graph_recursive(xadj, adjncy, npart, opts = {})
RbMetis.part_graph_kway(xadj, adjncy, npart, opts = {})
RbMetis.default_options
See also RbMeits API document and METIS manual
- Fork it ( https://github.com/[my-github-username]/rbmetis/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request