23 namespace permutations {
37 assert(v.size()==
size());
40 std::vector<T> result; result.reserve(v.size());
42 for (
unsigned long i=0; i<v.size(); ++i)
43 result.push_back(v[pi[i]]);
66 assert(v.size()>=
size());
70 for (
size_t i = 0; i <
size(); ++i)
77 for (
size_t j=pi[i]; j!=i; j=pi[j])
unsigned long size
Definition: testprint.cpp:46
std::vector< T > pull_back(const std::vector< T > &v) const
Definition: permutations_def.h:35
Definition: permutations.h:34
void swap(simple_list< T, Alloc > &x, simple_list< T, Alloc > &y)
Definition: sl_list.h:674
void permute(std::vector< T > &v) const
Definition: permutations_def.h:64
Definitions and declarations for the BitMap class.
Container of a large (more than twice the machine word size) set of bits.
Definition: bitmap.h:52
void insert(unsigned long n)
Definition: bitmap.h:197
bool isMember(unsigned long n) const
Definition: bitmap.h:138
Vertex v
Definition: graph.cpp:116