ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches

The partitions of METIS (https://github.com/KarypisLab/METIS) of a StaticGraph, beyond the book. More...

Files

file  ADS/interop/metis/Metis.h
 The partitions of METIS (https://github.com/KarypisLab/METIS) of a StaticGraph, beyond the book: partition( g , k , o ) calls METIS_PartGraphKway(), or METIS_PartGraphRecursive() when o.recursive, on the compressed rows of \( g \), and gives back a Partition [see interop/Csr.h], the part of each node and the weight of the edges cut, whose order() relabels the graph part by part through StaticGraph::relabel().

Classes

struct  ADS::metis::Options
 the options of a partition by METIS More...

Typedefs

using ADS::metis::Input = CsrInput< idx_t , idx_t >
 the arrays of a graph for METIS: in place where the layouts agree

Functions

template<class G>
Partition ADS::metis::partition (const G &g, const Input &I, int k, const Options &o=Options())
 the partition of the nodes of \( g \) into \( k \) parts by METIS, on the input \( I \) of \( g \) (whose arrays it reads in place, or the copies of CsrInput)
template<class G>
Partition ADS::metis::partition (const G &g, int k, const Options &o=Options())
 the partition of the nodes of \( g \) into \( k \) parts by METIS, on the rows of \( g \) read in place where the layouts agree

Detailed description

The partitions of METIS (https://github.com/KarypisLab/METIS) of a StaticGraph, beyond the book.

Typedef documentation

◆ Input

using ADS::metis::Input = CsrInput< idx_t , idx_t >

the arrays of a graph for METIS: in place where the layouts agree

Function documentation

◆ partition() [1/2]

template<class G>
Partition ADS::metis::partition ( const G & g,
const Input & I,
int k,
const Options & o = Options() )
nodiscard

the partition of the nodes of \( g \) into \( k \) parts by METIS, on the input \( I \) of \( g \) (whose arrays it reads in place, or the copies of CsrInput)

Precondition
\( g \) unoriented, without loops, \( 1 \le k \le n \)

◆ partition() [2/2]

template<class G>
Partition ADS::metis::partition ( const G & g,
int k,
const Options & o = Options() )
nodiscard

the partition of the nodes of \( g \) into \( k \) parts by METIS, on the rows of \( g \) read in place where the layouts agree

Precondition
\( g \) unoriented, without loops, \( 1 \le k \le n \)