Weight oracle that explicitly stores weight matrix of unipartite graph.
More...
#include <MatrixOracle.h>
List of all members.
Detailed Description
Weight oracle that explicitly stores weight matrix of unipartite graph.
Constructor & Destructor Documentation
MatrixOracle::MatrixOracle
|
( |
int
|
n,
|
|
|
double **
|
w
|
|
) |
|
|
- Parameters:
-
[in] | n | total number of nodes |
[in] | w | weight matrix. Entry w[i][j] is the weight between node i and node j |
Member Function Documentation
double MatrixOracle::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 MatrixOracle::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: