public class BaryCenter extends AbstractRanker
A simple example of usage is:
BaryCenter ranker = new BaryCenter(someGraph); ranker.evaluate(); ranker.printRankings();
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY |
DEFAULT_EDGE_WEIGHT_KEY
Constructor and Description |
---|
BaryCenter(Graph g)
Constructor which initializes the algorithm
|
Modifier and Type | Method and Description |
---|---|
protected double |
evaluateIteration()
Evaluate the result of the current interation.
|
java.lang.String |
getRankScoreKey()
The user datum key used to store the rank score.
|
assignDefaultEdgeTransitionWeights, finalizeIterations, getEdgeWeight, getEdgeWeightKeyName, getGraph, getRankings, getRankScore, getRankScores, getVertices, initialize, isRankingEdges, isRankingNodes, normalizeEdgeTransitionWeights, normalizeRankings, onFinalize, printRankings, reinitialize, setEdgeWeight, setNormalizeRankings, setRankScore, setRemoveRankScoresOnFinalize, setUserDefinedEdgeWeightKey
evaluate, getDesiredPrecision, getIterations, getMaximumIterations, getPrecision, hasConverged, initializeIterations, relativePrecision, setDesiredPrecision, setMaximumIterations
public static final java.lang.String KEY
public BaryCenter(Graph g)
g
- the graph whose nodes are to be analyzedprotected double evaluateIteration()
IterativeProcess
evaluateIteration
in class IterativeProcess
public java.lang.String getRankScoreKey()
AbstractRanker
getRankScoreKey
in class AbstractRanker