18 const int grid =
static_cast<int>(sqrt(
num_nodes + 1.0));
19 const int num_grid_nodes = grid * grid;
23 buf.
pack(has_four_cycles);
28 buf.
pack(has_triangles);
38 const int num_nodes_j = sw_structs[
j].
num_nodes;
40 buf.
pack(num_nodes_j).
pack(num_neighbors_j);
41 buf.
pack(sw_structs[j].
nodes, num_nodes_j + num_neighbors_j);
46 const bool has_feas_sol =
feas_sol != 0;
47 buf.
pack(has_feas_sol);
71 buf.
unpack(has_four_cycles);
91 for (j = 0; j < num_switch_structures[i]; ++
j) {
129 int total_degree = 0;
BCP_buffer & pack(const T &value)
Pack a single object of type T.
BCP_buffer & unpack(T &value)
Unpack a single object of type T.
MC_adjacency_entry * all_adj_list
BCP_buffer & unpack(BCP_buffer &buf)
MC_switch_structure ** switch_structures
void fint fint fint fint fint fint fint fint fint fint real real real real real real real real * s
This class describes the message buffer used for all processes of BCP.
MC_adjacency_entry * adj_list
int * num_switch_structures
BCP_buffer & pack(BCP_buffer &buf)