12 #include "Molassembler/Export.h"
15 namespace Molassembler {
53 bool next_partition();
67 static bool isOrderedMapping(
const std::vector<unsigned>& mapping);
70 inline unsigned s()
const {
75 inline unsigned e()
const {
80 inline const std::vector<unsigned>&
map()
const {
const std::vector< unsigned > & map() const
Access to underlying flat map from element index to group index.
Definition: Partitioner.h:80
unsigned e() const
Number of elements per group.
Definition: Partitioner.h:75
unsigned E
Number of elements per group.
Definition: Partitioner.h:88
std::vector< unsigned > mapping
Flat map from element index to group index.
Definition: Partitioner.h:90
Given S * E distinguishable objects, this class helps enumerate all partitions into S groups of size ...
Definition: Partitioner.h:34
unsigned S
Number of groups.
Definition: Partitioner.h:86
unsigned s() const
Number of groups.
Definition: Partitioner.h:70