Object representing a b-matching problem.
More...
#include <BMatchingProblem.h>
List of all members.
Detailed Description
Object representing a b-matching problem.
Constructor & Destructor Documentation
BMatchingProblem::BMatchingProblem
|
( |
WeightOracle *
|
wo,
|
|
|
int
|
size,
|
|
|
int *
|
b,
|
|
|
bool
|
verbose
|
|
) |
|
|
- Parameters:
-
[in] | wo | weight oracle that provides edge weights |
[in] | size | total number of nodes for this problem |
[in] | b | array of target degrees for each node |
[in] | verbose | whether to print status |
Member Function Documentation
int BMatchingProblem::getIters
|
( |
) |
|
returns the number of iterations run so far
- Returns:
- number of iterations so far
int BMatchingProblem::getSize
|
( |
) |
|
returns the number of nodes
- Returns:
- number of nodes in graph
int * BMatchingProblem::getSolutionCols
|
( |
) |
|
Returns the column indicies of the matched pairs
- Returns:
- vector of column indices of matched edges
int * BMatchingProblem::getSolutionRows
|
( |
) |
|
Returns the row indices of the matched pairs
- Returns:
- vector of row indices of matched edges
returns the weightOracle
- Returns:
- weight oracle
void BMatchingProblem::setB
|
( |
int *
|
degrees
) |
|
sets the degree constraints as a single vector
- Parameters:
-
[in] | degrees | new vector of target degrees for each node |
void BMatchingProblem::setB
|
( |
int *
|
br,
|
|
|
int *
|
bc,
|
|
|
int
|
rows,
|
|
|
int
|
cols
|
|
) |
|
|
sets the degree constraints for a bipartite graph
- Parameters:
-
[in] | br | target degrees for first bipartition (along rows) |
[in] | bc | target degrees for second bipartition (along columns) |
[in] | rows | total number of rows (number of nodes in first bipartition) |
[in] | cols | total number of columns (number of nodes in second bipartition) |
void BMatchingProblem::setB
|
( |
int
|
b
) |
|
sets the degree constraints, all nodes must have degree b
- Parameters:
-
[in] | b | target degree for ALL nodes |
void BMatchingProblem::setMaxIter
|
( |
int
|
i
) |
|
sets the maximum number of iterations to try
- Parameters:
-
[in] | i | maximum number of iterations |
void BMatchingProblem::setSize
|
( |
int
|
n
) |
|
Sets the number of nodes in the problem
- Parameters:
-
[in] | n | new number of nodes in graph |
void BMatchingProblem::setWeightOracle
|
( |
WeightOracle *
|
wo
) |
|
Sets the WeightOracle for this problem
- Parameters:
-
[in] | wo | weight oracle that provides edge weights |
Run the solver until completion
The documentation for this class was generated from the following files: