45#include <lal/linear_arrangement.hpp>
46#include <lal/graphs/graph.hpp>
47#include <lal/properties/bipartite_graph_coloring.hpp>
48#include <lal/properties/bipartite_graph_colorability.hpp>
130 template <
class graph_t>
132 static_assert(std::is_base_of_v<graphs::graph, graph_t>);
253 static constexpr properties::bipartite_graph_coloring::color_t blue =
254 properties::bipartite_graph_coloring::blue;
256 static constexpr properties::bipartite_graph_coloring::color_t red =
257 properties::bipartite_graph_coloring::red;
Exhaustive enumeration of all bipartite arrangements of any bipartite graph.
Definition all_bipartite_arrangements.hpp:119
all_bipartite_arrangements(all_bipartite_arrangements &&Gen) noexcept=default
Default move constructor.
all_bipartite_arrangements(const all_bipartite_arrangements &Gen) noexcept=default
Default copy constructor.
all_bipartite_arrangements(const graph_t &g)
Constructor with graph.
Definition all_bipartite_arrangements.hpp:131
bool end() const noexcept
Returns true if the end of the iteration was reached.
Definition all_bipartite_arrangements.hpp:180
void init() noexcept
Initializes this class.
const linear_arrangement & get_arrangement() const noexcept
Returns the current linear arrangemnt.
Definition all_bipartite_arrangements.hpp:176
all_bipartite_arrangements(properties::bipartite_graph_coloring &&c) noexcept
Constructor with coloring.
Definition all_bipartite_arrangements.hpp:160
~all_bipartite_arrangements() noexcept=default
Default destructor.
void next() noexcept
Generates the next arrangement.
linear_arrangement m_arr
The arrangement generated by this class.
Definition all_bipartite_arrangements.hpp:246
bool m_reached_end_blue
Has the end of the iteration been reached for blue vertices?
Definition all_bipartite_arrangements.hpp:232
all_bipartite_arrangements(const properties::bipartite_graph_coloring &c) noexcept
Constructor with coloring.
Definition all_bipartite_arrangements.hpp:152
bool m_reached_end_red
Has the end of the iteration been reached for red vertices?
Definition all_bipartite_arrangements.hpp:234
std::size_t m_n_red
Number of red vertices.
Definition all_bipartite_arrangements.hpp:239
linear_arrangement yield_arrangement() noexcept
Constructs the current arrangement.
Definition all_bipartite_arrangements.hpp:203
properties::bipartite_graph_coloring m_coloring
Coloring of the bipartite graph.
Definition all_bipartite_arrangements.hpp:249
void reset() noexcept
Sets the generator to its initial state.
Definition all_bipartite_arrangements.hpp:191
std::size_t m_n_blue
Number of blue vertices.
Definition all_bipartite_arrangements.hpp:237
void init_arrangement(const bool red_first) noexcept
Initializes this class.
bool m_do_mirror
Has the end of the iteration been reached for mirrored arrangements?
Definition all_bipartite_arrangements.hpp:230
Linear arrangement of vertices.
Definition linear_arrangement.hpp:103
A class to represent a coloring of the vertices of a bipartite graph.
Definition bipartite_graph_coloring.hpp:60
bipartite_graph_coloring bipartite_coloring(const graphs::undirected_graph &g) noexcept
Calculates the coloring of a bipartite graph.
Main namespace of the library.
Definition basic_types.hpp:48