|
ADS
Algorithms and Data Structures
|
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 | |
a partition of the nodes of a graph into \( k \) parts
|
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
|
inlinenodiscard |
the number of the nodes of each part
| long long ADS::Partition::cut = 0 |
the weight of the edges between two parts
| int ADS::Partition::k = 0 |
the number of the parts
| std::vector< int > ADS::Partition::part |
the part of each node, in \( [ 0 , k ) \)