Biorithm  1.1
Public Member Functions | Protected Member Functions
PageRank Class Reference

This class implements the PageRank algorithm. More...

#include <reconciliation-algorithms.h>

Inheritance diagram for PageRank:
AbstractSingleReconciliation

List of all members.

Public Member Functions

 PageRank (MyGraph &graph, MyPointSet &weights, double q, double maxIters, double epsilon, string output)
 PageRank (vector< MyGraph > &graphs, double q, double maxIters, double epsilon, string outputPrefix)
virtual ~PageRank ()
 Destructor.
virtual string getName ()
 Returns the name of the PageRank algorithm.

Protected Member Functions

virtual void _updateNodeWeightA (MyNode node)
 Update the weight of a node in the current graph according to the PageRank update function.
pair< double, double > _computeEnergy ()
 Compute the node sum and edge sum from the PageRank energy function.

Detailed Description

This class implements the PageRank algorithm.


Constructor & Destructor Documentation

PageRank::PageRank ( MyGraph graph,
MyPointSet weights,
double  q,
double  maxIters,
double  epsilon,
string  output 
) [inline]

Constructor for running the algorithm on a single network with multiple initial weights samples.

Parameters:
[in]graphThe network on which to operate.
[in]weightsThe samples containing initial node weights.
[in]qThe parameter q used by the algorithm.
[in]maxItersThe maximum number of iterations to run the iterative reconciliation algorithms.
[in]epsilonA small value that defines part of the convergence criteria.
[in]outputA string to prepend to all output files.
PageRank::PageRank ( vector< MyGraph > &  graphs,
double  q,
double  maxIters,
double  epsilon,
string  outputPrefix 
) [inline]

Constructor for running the algorithm on multiple networks with no initial weights.

Parameters:
[in]graphsThe networks on which to operate.
[in]qThe parameter q used by the algorithm.
[in]maxItersThe maximum number of iterations to run the iterative reconciliation algorithms.
[in]epsilonA small value that defines part of the convergence criteria.
[in]outputPrefixA string to prepend to all output files.

The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Friends