Basic page rank calculation. More...
#include <ogdf/graphalg/PageRank.h>
Public Member Functions | |
BasicPageRank () | |
void | call (const Graph &graph, const EdgeArray< double > &edgeWeight, NodeArray< double > &pageRankResult) |
main algorithm call | |
double | dampingFactor () const |
returns the damping factor for each iteration (default is 0.85) | |
void | initDefaultOptions () |
sets the default options. | |
int | maxNumIterations () const |
the maximum number of iterations (default is 1000) | |
void | setDampingFactor (double dampingFactor) |
sets the damping factor for each iteration (default is 0.85) | |
void | setMaxNumIterations (int maxNumIterations) |
sets the maximum number of iterations (default is 1000) | |
void | setThreshold (double t) |
sets the threshold to t. See threshold for more information | |
double | threshold () const |
returns the threshold/epsilon. | |
Private Attributes | |
double | m_dampingFactor |
the damping factor | |
int | m_maxNumIterations |
maximum number of iterations | |
double | m_threshold |
the threshold | |
Basic page rank calculation.
Definition at line 43 of file PageRank.h.
|
inline |
Definition at line 45 of file PageRank.h.
void ogdf::BasicPageRank::call | ( | const Graph & | graph, |
const EdgeArray< double > & | edgeWeight, | ||
NodeArray< double > & | pageRankResult | ||
) |
main algorithm call
|
inline |
returns the damping factor for each iteration (default is 0.85)
Definition at line 59 of file PageRank.h.
|
inline |
sets the default options.
Definition at line 52 of file PageRank.h.
|
inline |
the maximum number of iterations (default is 1000)
Definition at line 65 of file PageRank.h.
sets the damping factor for each iteration (default is 0.85)
Definition at line 62 of file PageRank.h.
sets the maximum number of iterations (default is 1000)
Definition at line 68 of file PageRank.h.
sets the threshold to t. See threshold for more information
Definition at line 77 of file PageRank.h.
|
inline |
returns the threshold/epsilon.
After each iteration the result is compared to to the old one and in case all changes are smaller than threshold the algorithm stops. Note that the default value is 0.0 resulting in maxNumIterations usually.
Definition at line 74 of file PageRank.h.
|
private |
the damping factor
Definition at line 81 of file PageRank.h.
|
private |
maximum number of iterations
Definition at line 84 of file PageRank.h.
|
private |
the threshold
Definition at line 87 of file PageRank.h.