11 #ifndef PERMUTAHEDRAL_REPRESENTATION_SIMPLEX_COMPARATOR_H_
12 #define PERMUTAHEDRAL_REPRESENTATION_SIMPLEX_COMPARATOR_H_
16 namespace coxeter_triangulation {
30 template <
class Permutahedral_representation_>
36 bool operator()(
const Permutahedral_representation_& lhs,
const Permutahedral_representation_& rhs)
const {
37 if (lhs.vertex() < rhs.vertex())
return true;
38 if (lhs.vertex() > rhs.vertex())
return false;
40 if (lhs.partition().size() > rhs.partition().size())
return true;
41 if (lhs.partition().size() < rhs.partition().size())
return false;
43 if (lhs.partition() < rhs.partition())
return true;
44 if (lhs.partition() > rhs.partition())
return false;
Gudhi namespace.
Definition: SimplicialComplexForAlpha.h:14
A comparator class for Permutahedral_representation. The comparison is in lexicographic order first o...
Definition: Simplex_comparator.h:31
bool operator()(const Permutahedral_representation_ &lhs, const Permutahedral_representation_ &rhs) const
Comparison between two permutahedral representations. Both permutahedral representations need to be v...
Definition: Simplex_comparator.h:36