Weight oracle that explictly stores the weight matrix for bipartite graph.
More...
#include <BipartiteMatrixOracle.h>
List of all members.
Detailed Description
Weight oracle that explictly stores the weight matrix for bipartite graph.
Constructor & Destructor Documentation
BipartiteMatrixOracle::BipartiteMatrixOracle
|
( |
double **
|
kernel,
|
|
|
int
|
r,
|
|
|
int
|
c
|
|
) |
|
|
- Parameters:
-
[in] | kernel | the weight matrix (r x c) between bipartitions |
[in] | r | number of rows (number of nodes in first bipartition) |
[in] | c | number of columns (number of nodes in second bipartition) |
Member Function Documentation
double BipartiteMatrixOracle::computeWeight
|
( |
int
|
row,
|
|
|
int
|
col
|
|
) |
| [virtual]
|
returns the weight between the row'th and col'th nodes
- Parameters:
-
[in] | row | row or id of first node |
[in] | col | col or id of second node |
- Returns:
- weight of edge between first and second node
Reimplemented from WeightOracle.
int BipartiteMatrixOracle::getSize
|
( |
) |
[virtual]
|
returns the number of nodes
- Returns:
- total number of nodes
Reimplemented from WeightOracle.
The documentation for this class was generated from the following files: