Chi-Tech
chi::GraphPartitioner Class Referenceabstract

#include <GraphPartitioner.h>

Inheritance diagram for chi::GraphPartitioner:
ChiObject chi::KBAGraphPartitioner chi::LinearGraphPartitioner chi::PETScGraphPartitioner

Public Member Functions

virtual std::vector< int64_t > Partition (const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > &centroids, int number_of_parts)=0
 
- Public Member Functions inherited from ChiObject
 ChiObject ()
 
 ChiObject (const chi::InputParameters &params)
 
void SetStackID (size_t stack_id)
 
size_t StackID () const
 
virtual void PushOntoStack (std::shared_ptr< ChiObject > &new_object)
 
virtual ~ChiObject ()=default
 

Protected Member Functions

 GraphPartitioner (const InputParameters &params)
 

Static Protected Member Functions

static InputParameters GetInputParameters ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ChiObject
static chi::InputParameters GetInputParameters ()
 

Detailed Description

Abstract base class for all partitioners

Definition at line 16 of file GraphPartitioner.h.

Constructor & Destructor Documentation

◆ GraphPartitioner()

chi::GraphPartitioner::GraphPartitioner ( const InputParameters params)
explicitprotected

Definition at line 13 of file GraphPartitioner.cc.

Member Function Documentation

◆ GetInputParameters()

InputParameters chi::GraphPartitioner::GetInputParameters ( )
staticprotected

Definition at line 6 of file GraphPartitioner.cc.

◆ Partition()

virtual std::vector< int64_t > chi::GraphPartitioner::Partition ( const std::vector< std::vector< uint64_t > > &  graph,
const std::vector< chi_mesh::Vector3 > &  centroids,
int  number_of_parts 
)
pure virtual

Given a graph. Returns the partition ids of each row in the graph.

Implemented in chi::KBAGraphPartitioner, chi::LinearGraphPartitioner, and chi::PETScGraphPartitioner.


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