Poros
|
Top level header file for Poros (a C++ implementation of Metis algorithms [http://cs.umn.edu/~metis]). More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | poros_options_struct |
Typedefs | |
typedef uint32_t | poros_vtx_type |
typedef uint32_t | poros_adj_type |
typedef uint32_t | poros_wgt_type |
typedef uint32_t | poros_pid_type |
Enumerations | |
enum | aggregator_type { RANDOM_MATCHING = 0, SORTED_HEAVY_EDGE_MATCHING = 1 } |
Aggregation types. More... | |
enum | bisector_type { RANDOM_BISECTION, BFS_BISECTION } |
Bisector types. More... | |
enum | two_way_refiner_type { FM_TWOWAY_REFINEMENT } |
Two way refinement type. More... | |
Functions | |
poros_options_struct | POROS_defaultOptions (void) |
Generate the default options to execute Poros with. More... | |
int | POROS_PartGraphRecursive (poros_vtx_type numVertices, poros_adj_type const *edgePrefix, poros_vtx_type const *edgeList, poros_wgt_type const *vertexWeights, poros_wgt_type const *edgeWeights, poros_pid_type numPartitions, poros_options_struct const *options, poros_wgt_type *totalCutEdgeWeight, poros_pid_type *partitionAssignment) |
Partition a graph using recursive bisection. More... | |
Top level header file for Poros (a C++ implementation of Metis algorithms [http://cs.umn.edu/~metis]).
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
typedef uint32_t poros_adj_type |
typedef uint32_t poros_pid_type |
typedef uint32_t poros_vtx_type |
typedef uint32_t poros_wgt_type |
enum aggregator_type |
enum bisector_type |
enum two_way_refiner_type |
poros_options_struct POROS_defaultOptions | ( | void | ) |
Generate the default options to execute Poros with.
int POROS_PartGraphRecursive | ( | poros_vtx_type | numVertices, |
poros_adj_type const * | edgePrefix, | ||
poros_vtx_type const * | edgeList, | ||
poros_wgt_type const * | vertexWeights, | ||
poros_wgt_type const * | edgeWeights, | ||
poros_pid_type | numPartitions, | ||
poros_options_struct const * | options, | ||
poros_wgt_type * | totalCutEdgeWeight, | ||
poros_pid_type * | partitionAssignment | ||
) |
Partition a graph using recursive bisection.
numVertices | The number of vertices in the graph. |
edgePrefix | The prefixsum of the edge list (xadj or rowptr). |
edgeList | The list of edge endpoints (adjncy or rowind). |
vertexWeights | The list of vertex weights (if null, every vertex will be assigned a weight of 1). |
edgeWeights | The weight associated with each edge (if null, every edge will be assigned a weight of 1). |
numPartitions | The number of partitions to create. |
options | The list of options to use. This may be null when the defaults are desired. |
totalCutEdgeWeight | The total weight of cut edges (output). |
partitionAssignment | The partition assignment of each vertex. |