Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GraphPartitioner Class Reference

#include <GraphPartitioner.h>

Inheritance diagram for GraphPartitioner::

Metis List of all members.

Public Methods

 GraphPartitioner ()
virtual ~GraphPartitioner ()
virtual int partition (Graph &theGraph, int numPart)=0

Detailed Description

GraphPartitioner is an abstract class. The GraphPartitioner class defines the interface that all programmers must provide when introducing new GraphPartitioner subclasses. A GraphPartitioner is an algorithm for partitioning (coloring) the vertices of a graph; that is assigning a color (1 through the number of partitions) to each vertex of the graph. \

}

Definition at line 57 of file GraphPartitioner.h.


Constructor & Destructor Documentation

GraphPartitioner::GraphPartitioner ( ) [inline]
 

To construct a GraphPartitioner.

Definition at line 63 of file GraphPartitioner.h.

GraphPartitioner::~GraphPartitioner ( ) [inline, virtual]
 

{\bf Public Methods }

Definition at line 69 of file GraphPartitioner.h.


Member Function Documentation

int GraphPartitioner::partition ( Graph & theGraph,
int numPart ) [pure virtual]
 

This is the method invoked to partition the graph into {numPart} partitions. On completion of the routine each vertex will be assigned a color through {numPart}, the color assigned indicating the partition to which the vertex belongs. Returns a if successful, a negative number if not; the value depending on the subclass.

Reimplemented in Metis.


The documentation for this class was generated from the following file:
Copyright Contact Us