public class PageRank extends Object implements Statistics, LongTask
| Constructor and Description |
|---|
PageRank() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the task.
|
HashMap<org.gephi.graph.api.Node,Integer> |
createIndiciesMap(org.gephi.graph.api.Graph graph) |
void |
execute(org.gephi.graph.api.Graph graph) |
void |
execute(org.gephi.graph.api.GraphModel graphModel)
Executes the statistics algorithm.
|
boolean |
getDirected() |
double |
getEpsilon() |
double |
getProbability() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
boolean |
isUseEdgeWeight() |
void |
setDirected(boolean isDirected) |
void |
setEpsilon(double eps) |
void |
setProbability(double prob) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setUseEdgeWeight(boolean useEdgeWeight) |
public static final String PAGERANK
public void setDirected(boolean isDirected)
public boolean getDirected()
public void execute(org.gephi.graph.api.GraphModel graphModel)
StatisticsIt is preferable to work on visible graphs, to be synchronized with the visualization.
execute in interface StatisticsgraphModel - The graph modelpublic void execute(org.gephi.graph.api.Graph graph)
public HashMap<org.gephi.graph.api.Node,Integer> createIndiciesMap(org.gephi.graph.api.Graph graph)
public String getReport()
StatisticsgetReport in interface Statisticspublic boolean cancel()
LongTasktrue if the task has been sucessfully cancelled, false otherwise.public void setProgressTicket(ProgressTicket progressTicket)
LongTasksetProgressTicket in interface LongTaskprogressTicket - public void setProbability(double prob)
prob - public void setEpsilon(double eps)
eps - public double getProbability()
public double getEpsilon()
public boolean isUseEdgeWeight()
public void setUseEdgeWeight(boolean useEdgeWeight)
Copyright © 2007–2017. All rights reserved.