Zoltan2
Public Member Functions | List of all members
Zoltan2::Matcher Class Reference

An implementation of the Matcher interface that operates on Epetra matrices and Graphs. More...

#include <Zoltan2_MatcherHelper.hpp>

Public Member Functions

 Matcher (int *_rowPtr, int *_cols, int _numU, int _numV, int _numE)
 Constructor. More...
 
virtual ~Matcher ()
 Destructor. More...
 
int getNumberOfMatchedVertices ()
 
const std::vector< int > & getVertexUMatches ()
 
const std::vector< int > & getVertexVMatches ()
 
int match ()
 Computes the maximum cardinality matching. More...
 

Detailed Description

An implementation of the Matcher interface that operates on Epetra matrices and Graphs.

matching algorithms provides an interface to solve the Bipartite Matching problem.

Definition at line 35 of file Zoltan2_MatcherHelper.hpp.

Constructor & Destructor Documentation

◆ Matcher()

Zoltan2::Matcher::Matcher ( int *  _rowPtr,
int *  _cols,
int  _numU,
int  _numV,
int  _numE 
)

Constructor.

Parameters
[in]rowpointer for CRS matrix for of bipartite graph
[in]colsfor CRS matrix for of bipartite graph
[in]Numberof vertices in u set (num row vertices)
[in]Numberof vertices in v set (num col vertices)

Definition at line 126 of file Zoltan2_MatcherHelper.hpp.

◆ ~Matcher()

Zoltan2::Matcher::~Matcher ( )
virtual

Destructor.

Definition at line 164 of file Zoltan2_MatcherHelper.hpp.

Member Function Documentation

◆ getNumberOfMatchedVertices()

int Zoltan2::Matcher::getNumberOfMatchedVertices ( )
inline

Definition at line 99 of file Zoltan2_MatcherHelper.hpp.

◆ getVertexUMatches()

const std::vector<int>& Zoltan2::Matcher::getVertexUMatches ( )
inline

Definition at line 114 of file Zoltan2_MatcherHelper.hpp.

◆ getVertexVMatches()

const std::vector<int>& Zoltan2::Matcher::getVertexVMatches ( )
inline

Definition at line 115 of file Zoltan2_MatcherHelper.hpp.

◆ match()

int Zoltan2::Matcher::match ( )

Computes the maximum cardinality matching.

Definition at line 520 of file Zoltan2_MatcherHelper.hpp.


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