Chi-Tech
GraphPartitioner.h
Go to the documentation of this file.
1
#ifndef CHITECH_GRAPHPARTITIONER_H
2
#define CHITECH_GRAPHPARTITIONER_H
3
4
#include "
ChiObject.h
"
5
6
namespace
chi_mesh
7
{
8
struct
Vector3
;
9
}
10
11
12
namespace
chi
13
{
14
15
/**Abstract base class for all partitioners*/
16
class
GraphPartitioner
:
public
ChiObject
17
{
18
public
:
19
/**Given a graph. Returns the partition ids of each row in the graph.*/
20
virtual
std::vector<int64_t>
21
Partition
(
const
std::vector<std::vector<uint64_t>>& graph,
22
const
std::vector<chi_mesh::Vector3>& centroids,
23
int
number_of_parts) = 0;
24
25
protected
:
26
static
InputParameters
GetInputParameters
();
27
explicit
GraphPartitioner
(
const
InputParameters
& params);
28
};
29
30
}
// namespace chi
31
32
#endif
// CHITECH_GRAPHPARTITIONER_H
ChiObject.h
ChiObject
Definition:
ChiObject.h:8
chi::GraphPartitioner
Definition:
GraphPartitioner.h:17
chi::GraphPartitioner::GetInputParameters
static InputParameters GetInputParameters()
Definition:
GraphPartitioner.cc:6
chi::GraphPartitioner::Partition
virtual std::vector< int64_t > Partition(const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > ¢roids, int number_of_parts)=0
chi::GraphPartitioner::GraphPartitioner
GraphPartitioner(const InputParameters ¶ms)
Definition:
GraphPartitioner.cc:13
chi::InputParameters
Definition:
input_parameters.h:23
chi_math::Vector3
VectorN< 3 > Vector3
Definition:
chi_math_vectorNX.h:474
chi_mesh
Definition:
chi_runtime.h:13
chi
Definition:
chi_runtime.h:53
framework
graphs
GraphPartitioner.h
Generated by
1.9.3