Public Member Functions

MatrixOracle Class Reference

Weight oracle that explicitly stores weight matrix of unipartite graph. More...

#include <MatrixOracle.h>

Inheritance diagram for MatrixOracle:
WeightOracle

List of all members.

Public Member Functions

 MatrixOracle (int n, double **w)
int  getSize ()
double  computeWeight (int row, int col)

Detailed Description

Weight oracle that explicitly stores weight matrix of unipartite graph.


Constructor & Destructor Documentation

MatrixOracle::MatrixOracle ( int   n,
double **   w  
)
Parameters:
[in]ntotal number of nodes
[in]wweight 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]rowrow or id of first node
[in]colcol 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:
 All Classes Namespaces Files Functions Variables Defines