ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::Partition Struct Reference

a partition of the nodes of a graph into \( k \) parts More...

#include <ADS/interop/Csr.h>

Public member functions

std::vector< int > order (void) const
 the name of each node when the nodes are numbered part by part, in the order of their names within a part: a permutation for StaticGraph::relabel(), in \( O( n + k ) \) time
std::vector< int > sizes (void) const
 the number of the nodes of each part

Public attributes

std::vector< int > part
 the part of each node, in \( [ 0 , k ) \)
long long cut = 0
 the weight of the edges between two parts
int k = 0
 the number of the parts

Detailed description

a partition of the nodes of a graph into \( k \) parts

Member function documentation

◆ order()

std::vector< int > ADS::Partition::order ( void ) const
inlinenodiscard

the name of each node when the nodes are numbered part by part, in the order of their names within a part: a permutation for StaticGraph::relabel(), in \( O( n + k ) \) time

◆ sizes()

std::vector< int > ADS::Partition::sizes ( void ) const
inlinenodiscard

the number of the nodes of each part

Member data documentation

◆ cut

long long ADS::Partition::cut = 0

the weight of the edges between two parts

◆ k

int ADS::Partition::k = 0

the number of the parts

◆ part

std::vector< int > ADS::Partition::part

the part of each node, in \( [ 0 , k ) \)


The documentation for this struct was generated from the following file: