edu.ucla.belief.dtree
Class Hmetis

Object
  extended by Hmetis

public class Hmetis
extends Object

This class is an interface library to the C++ hMeTiS library.

The library java_hmetis is loaded in a static initializer, but will not throw an error there. It can be tested for using loaded(). An UnsatisfiedLinkError will be thrown if its functions are later called after failing to load the library.

The timing parameter will return the information from the system call "clock()", where [0]=the time used by the library. It will add the current amount of time to whatever is already in the array, thereby allowing a cumulative time to be kept.


Method Summary
static int[] HMETIS_PartKway(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, double[] timing)
          Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.
static int[] HMETIS_PartKway(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, int[] vwgts, double[] timing)
          Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.
static int HMETIS_PartKway(int nvtxs, int nhedges, int[] vwgts, int[] eptr, int[] eind, int[] hewgts, int nparts, int ubfactor, int[] options, int[] part, int[] edgecut, double[] timing)
          Call the hMetis function, and return 0 if success, or nonzero if an error happened.
static int[] HMETIS_PartRecursive(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, double[] timing)
          Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.
static int[] HMETIS_PartRecursive(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, int[] vwgts, double[] timing)
          Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.
static int HMETIS_PartRecursive(int nvtxs, int nhedges, int[] vwgts, int[] eptr, int[] eind, int[] hewgts, int nparts, int ubfactor, int[] options, int[] part, int[] edgecut, double[] timing)
          Call the hMetis function, and return 0 if success, or nonzero if an error happened.
static boolean loaded()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loaded

public static boolean loaded()

HMETIS_PartRecursive

public static int HMETIS_PartRecursive(int nvtxs,
                                       int nhedges,
                                       int[] vwgts,
                                       int[] eptr,
                                       int[] eind,
                                       int[] hewgts,
                                       int nparts,
                                       int ubfactor,
                                       int[] options,
                                       int[] part,
                                       int[] edgecut,
                                       double[] timing)
Call the hMetis function, and return 0 if success, or nonzero if an error happened.


HMETIS_PartKway

public static int HMETIS_PartKway(int nvtxs,
                                  int nhedges,
                                  int[] vwgts,
                                  int[] eptr,
                                  int[] eind,
                                  int[] hewgts,
                                  int nparts,
                                  int ubfactor,
                                  int[] options,
                                  int[] part,
                                  int[] edgecut,
                                  double[] timing)
Call the hMetis function, and return 0 if success, or nonzero if an error happened.


HMETIS_PartRecursive

public static int[] HMETIS_PartRecursive(Hypergraph hg,
                                         int[] options,
                                         int ubfactor,
                                         int[] edgecut,
                                         double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.


HMETIS_PartRecursive

public static int[] HMETIS_PartRecursive(Hypergraph hg,
                                         int[] options,
                                         int ubfactor,
                                         int[] edgecut,
                                         int[] vwgts,
                                         double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.


HMETIS_PartKway

public static int[] HMETIS_PartKway(Hypergraph hg,
                                    int[] options,
                                    int ubfactor,
                                    int[] edgecut,
                                    double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.


HMETIS_PartKway

public static int[] HMETIS_PartKway(Hypergraph hg,
                                    int[] options,
                                    int ubfactor,
                                    int[] edgecut,
                                    int[] vwgts,
                                    double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned.



Copyright 2010 UCLA Automated Reasoning Group