Public Member Functions

BipartiteMatrixOracle Class Reference

Weight oracle that explictly stores the weight matrix for bipartite graph. More...

#include <BipartiteMatrixOracle.h>

Inheritance diagram for BipartiteMatrixOracle:
WeightOracle

List of all members.

Public Member Functions

 BipartiteMatrixOracle (double **kernel, int r, int c)
int  getSize ()
double  computeWeight (int row, int col)

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]kernelthe weight matrix (r x c) between bipartitions
[in]rnumber of rows (number of nodes in first bipartition)
[in]cnumber 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]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 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:
 All Classes Namespaces Files Functions Variables Defines