Project

rbmetis

0.0
No commit activity in last 3 years
No release in over 3 years
FFI wrapper of METIS graph partitioning library version: 5.1.0 http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
>= 0

Runtime

>= 0
 Project Readme

RbMetis

FFI wrapper of METIS graph partitioning library

Requirement

Installation

Install from RubyGems:

$ gem install rbmetis

Or download source tree from releases, cd to tree top and run:

$ ruby setup.rb

Installation Option

  • 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
    

Usage

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

Contributing

  1. Fork it ( https://github.com/[my-github-username]/rbmetis/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request