32 using IndexVector = std::vector < Index>;
105 const IndexVector& coloring);
#define ASSERT(expr)
Debug-Assertion macro definition.
Coloring object implementation.
const Index & operator[](Index i) const
Returns the color for a node i.
Index & operator[](Index i)
Returns the color for a node i.
IndexVector _coloring
coloring vector
Graph create_partition_graph() const
Creates a color partition graph.
Index _num_colors
total number of colors used
Index get_num_nodes() const
Returns the total number of nodes.
virtual ~Coloring()
virtual destructor
bool empty() const
Checks whether the coloring is empty.
auto size() const -> decltype(_coloring.size())
Returns the total number of nodes.
Coloring & operator=(Coloring &&other) noexcept
move-assign operator
Index get_max_color() const
Returns the maximum color index.
Coloring()
Default constructor.
Index * get_coloring()
Returns the coloring array.
const Index * get_coloring() const
Returns the coloring array.
Index get_num_colors() const
Returns the number of colors.
Coloring clone() const
Clones this coloring.
Adjacency Graph implementation.
std::uint64_t Index
Index data type.