|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uci.ics.jung.algorithms.IterativeProcess
edu.uci.ics.jung.algorithms.importance.AbstractRanker
edu.uci.ics.jung.algorithms.importance.HITS
Calculates the "hubs-and-authorities" importance measures for each node in a graph. These measures are defined recursively as follows:
Note: This algorithm uses the same key as HITSWithPriors for storing rank sccores.
A simple example of usage is:
HITS ranker = new HITS(someGraph); ranker.evaluate(); ranker.printRankings();
Running time: O(|V|*I) where |V| is the number of vertices and I is the number of iterations until convergence
| Field Summary |
| Fields inherited from class edu.uci.ics.jung.algorithms.importance.AbstractRanker |
DEFAULT_EDGE_WEIGHT_KEY |
| Constructor Summary | |
HITS(Graph graph)
Constructs an instance of the ranker where the type of importance that is associated with the rank score is the node's importance as an authority. |
|
HITS(Graph graph,
boolean useAuthorityForRanking)
Constructs an instance of the ranker where the type of importance that is associated with the rank score is the node's importance as an authority. |
|
| Method Summary | |
double |
getRankScore(UserDataContainer v)
Given a node, returns the corresponding rank score. |
java.lang.String |
getRankScoreKey()
the user datum key used to store the rank scores |
void |
setUseAuthorityForRanking(boolean useAuthorityForRanking)
If evaluate() has not already been called, the user can override the type of importance.
|
| Methods inherited from class edu.uci.ics.jung.algorithms.importance.AbstractRanker |
getEdgeWeightKeyName, getRankings, getRankScores, isRankingNodes, printRankings, setNormalizeRankings, setRemoveRankScoresOnFinalize, setUserDefinedEdgeWeightKey |
| Methods inherited from class edu.uci.ics.jung.algorithms.IterativeProcess |
evaluate, getDesiredPrecision, getIterations, getMaximumIterations, getPrecision, hasConverged, relativePrecision, setDesiredPrecision, setMaximumIterations |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HITS(Graph graph,
boolean useAuthorityForRanking)
graph - the graph whose nodes are to be rankeduseAuthorityForRanking - public HITS(Graph graph)
graph - the graph whose nodes are to be ranked| Method Detail |
public java.lang.String getRankScoreKey()
getRankScoreKey in class AbstractRankerpublic double getRankScore(UserDataContainer v)
getRankScore assumes
the decoration representing the rank score is of type MutableDouble.
getRankScore in class AbstractRankerpublic void setUseAuthorityForRanking(boolean useAuthorityForRanking)
evaluate() has not already been called, the user can override the type of importance.
(hub or authority) that should be associated with the rank score.
useAuthorityForRanking - if true, authority is used; if false, hub is used
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||