PandA-2024.02
Public Member Functions
TTT_based_clique_covering< vertex_type > Class Template Reference

#include <clique_covering.hpp>

Inheritance diagram for TTT_based_clique_covering< vertex_type >:
Inheritance graph
[legend]
Collaboration diagram for TTT_based_clique_covering< vertex_type >:
Collaboration graph
[legend]

Public Member Functions

 TTT_based_clique_covering (bool _all_edges, unsigned int nvert)
 constructor More...
 
void do_clique_covering (const cc_compatibility_graphRef CG, typename boost::disjoint_sets< rank_pmap_type, pred_pmap_type > &ds, CustomUnorderedSet< C_vertex > &support, const CustomUnorderedSet< C_vertex > &all_vertices, const filter_clique< vertex_type > &fc) override
 
- Public Member Functions inherited from coloring_based_clique_covering< vertex_type >
 coloring_based_clique_covering (bool _all_edges, unsigned int nvert)
 constructor More...
 
 ~coloring_based_clique_covering () override=default
 destructor More...
 
C_vertex add_vertex (const vertex_type &element, const std::string &name) override
 add a vertex More...
 
void add_edge (const vertex_type &src, const vertex_type &dest, int _weight) override
 add an edge More...
 
size_t num_vertices () override
 return the number of vertices of the clique More...
 
CustomOrderedSet< vertex_type > get_clique (unsigned int i) override
 Returns a clique. More...
 
void build_partitions (CustomUnorderedSet< C_vertex > &support, boost::disjoint_sets< rank_pmap_type, pred_pmap_type > &ds, std::map< C_vertex, CustomOrderedSet< C_vertex >> &current_partitions)
 build partitions More...
 
void exec (const filter_clique< vertex_type > &fc, check_clique< vertex_type > &) override
 Abstract method that will execute clique covering algorithm. More...
 
void writeDot (const std::string &filename) const override
 Writes a dotty representation of the actual graph. More...
 
void add_subpartitions (size_t, vertex_type) override
 add subpartitions over which bipartite matching can start on More...
 
void suggest_min_resources (size_t) override
 suggest that the problem have at least a given number of resources More...
 
void suggest_max_resources (size_t) override
 suggest that the problem have at worst no more than the given number of resources More...
 
void min_resources (size_t) override
 specify the minimum number of resources More...
 
void max_resources (size_t) override
 specify the maximum number of resources More...
 
- Public Member Functions inherited from clique_covering< vertex_type >
 clique_covering ()=default
 Default constructor. More...
 
virtual ~clique_covering ()=default
 Destructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from clique_covering< vertex_type >
static refcount< clique_covering< vertex_type > > create_solver (CliqueCovering_Algorithm solver, unsigned int nvert)
 Creates a reference to desired solver. More...
 
- Protected Attributes inherited from coloring_based_clique_covering< vertex_type >
CustomUnorderedMap< C_vertex, vertex_type > uv2v
 map between C_vertex and vertex_type More...
 
CustomUnorderedMap< C_vertex, std::string > names
 name map for the C_vertex vertices More...
 

Detailed Description

template<typename vertex_type>
class TTT_based_clique_covering< vertex_type >

Definition at line 1134 of file clique_covering.hpp.

Constructor & Destructor Documentation

◆ TTT_based_clique_covering()

template<typename vertex_type >
TTT_based_clique_covering< vertex_type >::TTT_based_clique_covering ( bool  _all_edges,
unsigned int  nvert 
)
inlineexplicit

constructor

Definition at line 1138 of file clique_covering.hpp.

Member Function Documentation

◆ do_clique_covering()

template<typename vertex_type >
void TTT_based_clique_covering< vertex_type >::do_clique_covering ( const cc_compatibility_graphRef  CG,
typename boost::disjoint_sets< rank_pmap_type, pred_pmap_type > &  ds,
CustomUnorderedSet< C_vertex > &  support,
const CustomUnorderedSet< C_vertex > &  all_vertices,
const filter_clique< vertex_type > &  fc 
)
inlineoverridevirtual

update the upper bound with the last weight

do some filtering

check trivial cases

Reimplemented from coloring_based_clique_covering< vertex_type >.

Definition at line 1143 of file clique_covering.hpp.

References TTT_maximal_weighted_clique< Graph >::get_last_W_Q_max(), TTT_maximal_weighted_clique< Graph >::get_weighted_maximal_cliques(), max, filter_clique< vertex_type >::select_candidate_to_remove(), and THROW_ASSERT.

Here is the call graph for this function:

The documentation for this class was generated from the following file:

Generated on Mon Feb 12 2024 13:04:08 for PandA-2024.02 by doxygen 1.8.13