21 #ifndef __DOLFIN_ZOLTAN_GRAPH_COLORING_H 22 #define __DOLFIN_ZOLTAN_GRAPH_COLORING_H 27 #include <zoltan_cpp.h> 48 std::vector<std::size_t>& colors);
53 class ZoltanGraphInterface
59 ZoltanGraphInterface(
const Graph& graph);
69 void num_vertex_edges(
unsigned int* num_edges)
const;
72 static int get_number_of_objects(
void* data,
int* ierr);
74 static void get_object_list(
void* data,
int sizeGID,
int sizeLID,
75 ZOLTAN_ID_PTR globalID,
76 ZOLTAN_ID_PTR localID,
int wgt_dim,
77 float* obj_wgts,
int* ierr);
79 static void get_number_edges(
void* data,
int num_gid_entries,
81 int num_obj, ZOLTAN_ID_PTR global_ids,
82 ZOLTAN_ID_PTR local_ids,
int* num_edges,
85 static void get_all_edges(
void* data,
int num_gid_entries,
86 int num_lid_entries,
int num_obj,
87 ZOLTAN_ID_PTR global_ids,
88 ZOLTAN_ID_PTR local_ids,
90 ZOLTAN_ID_PTR nbor_global_id,
91 int* nbor_procs,
int wgt_dim,
92 float* ewgts,
int* ierr);
Definition: ZoltanInterface.h:40
std::vector< graph_set_type > Graph
Vector of unordered Sets.
Definition: Graph.h:39
static std::size_t compute_local_vertex_coloring(const Graph &graph, std::vector< std::size_t > &colors)
Compute vertex colors.
Definition: ZoltanInterface.cpp:38