PandA-2024.02
|
fast version that just returns the first maximal clique found More...
#include <clique_covering.hpp>
Public Member Functions | |
const CustomOrderedSet< vertex > | get_weighted_maximal_cliques (const Graph &g) |
return the weighted maximal clique of a graph g More... | |
TTT_maximal_weighted_clique_fast (CustomUnorderedMap< typename boost::graph_traits< Graph >::vertex_descriptor, std::string > &_names) | |
Private Types | |
using | vertex_iterator = typename boost::graph_traits< Graph >::vertex_iterator |
vertex iterator More... | |
using | vertex = typename boost::graph_traits< Graph >::vertex_descriptor |
vertex object More... | |
using | adjacency_iterator = typename boost::graph_traits< Graph >::adjacency_iterator |
adjacency iterator More... | |
using | edge_iterator = typename boost::graph_traits< Graph >::out_edge_iterator |
out edge iterator More... | |
Private Member Functions | |
vertex | get_max_weighted_adiacent_intersection (const CustomUnorderedSet< vertex > &subg, const CustomUnorderedSet< vertex > &cand, const Graph &g) |
return the vertex of subg with the maximum intersection with cand More... | |
vertex | get_max_weight_vertex (CustomUnorderedSet< vertex > &ext, const Graph &g) |
return the vertex of ext having the maximum degree with respect to the graph g More... | |
int | compute_delta_weight (vertex q_vertex, CustomUnorderedSet< vertex > Q_set, const Graph &g) |
compute the delta of the weight by adding q_vertex to the clique More... | |
void | expand (CustomUnorderedSet< vertex > &subg, CustomUnorderedSet< vertex > &cand, const Graph &g) |
recursive procedure expand defined in first cited paper More... | |
Private Attributes | |
CustomUnorderedSet< vertex > | Q |
set of vertices of the current clique More... | |
CustomOrderedSet< vertex > | Q_max |
set of vertices of the maximum clique found so far More... | |
int | W_Q |
weight of Q More... | |
int | W_Q_max |
weight of Q_max More... | |
CustomUnorderedMap< C_vertex, std::string > & | names |
fast version that just returns the first maximal clique found
Definition at line 495 of file clique_covering.hpp.
|
private |
adjacency iterator
Definition at line 502 of file clique_covering.hpp.
|
private |
out edge iterator
Definition at line 504 of file clique_covering.hpp.
|
private |
vertex object
Definition at line 500 of file clique_covering.hpp.
|
private |
vertex iterator
Definition at line 498 of file clique_covering.hpp.
|
inlineexplicit |
Definition at line 670 of file clique_covering.hpp.
|
inlineprivate |
compute the delta of the weight by adding q_vertex to the clique
Definition at line 574 of file clique_covering.hpp.
References result, and lenet_tvm::target.
|
inlineprivate |
recursive procedure expand defined in first cited paper
get the vertex in subg with the maximum of adjacent vertices in cand
get adjacent vertices of u
set of vertices adjacent to u
compute EXT_u = CAND - gamma_u
compute delta_weight
Definition at line 590 of file clique_covering.hpp.
References unordered_set_difference(), and unordered_set_intersection().
|
inlineprivate |
return the vertex of ext having the maximum degree with respect to the graph g
Definition at line 548 of file clique_covering.hpp.
References result, and THROW_ASSERT.
|
inlineprivate |
return the vertex of subg with the maximum intersection with cand
Definition at line 518 of file clique_covering.hpp.
References result, lenet_tvm::target, and THROW_ASSERT.
|
inline |
return the weighted maximal clique of a graph g
Definition at line 654 of file clique_covering.hpp.
References min.
Referenced by TTT_based_clique_covering_fast< vertex_type >::do_clique_covering().
|
private |
Definition at line 515 of file clique_covering.hpp.
|
private |
set of vertices of the current clique
Definition at line 507 of file clique_covering.hpp.
|
private |
set of vertices of the maximum clique found so far
Definition at line 509 of file clique_covering.hpp.
|
private |
weight of Q
Definition at line 511 of file clique_covering.hpp.
|
private |
weight of Q_max
Definition at line 513 of file clique_covering.hpp.