static int bucket_size(const int ncount)
Maximum partition size as function of number of nodes ncount.
Definition: karp.cpp:113
const std::vector< int > & operator[](int i) const
The nodes of the i th partition.
Definition: karp.hpp:45
KarpPartition(const Data::Instance &inst)
Construct a partition from an Instance inst.
Definition: karp.hpp:38
Storing TSP instance data.
Definition: datagroups.hpp:36
KarpPartition()=default
Default construct an empty partition.
int num_parts() const
The number of sub-regions into which the data has been partitioned.
Definition: karp.hpp:43
The namespace for this project.
Definition: abc_nodesel.hpp:20
Class for computing and storing Karp partitions.
Definition: karp.hpp:30
std::vector< std::vector< int > > part_list
A ragged matrix storing the partitions.
Definition: karp.hpp:53