public class Hits extends Object implements Statistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHORITY |
static String |
HUB |
| Constructor and Description |
|---|
Hits() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateHits(org.gephi.graph.api.Graph graph,
double[] hubValues,
double[] authorityValues,
Map<org.gephi.graph.api.Node,Integer> indices,
boolean isDirected,
double eps) |
boolean |
cancel()
Cancel the task.
|
HashMap<org.gephi.graph.api.Node,Integer> |
createIndicesMap(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.
|
double |
getEpsilon() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
boolean |
getUndirected() |
void |
setEpsilon(double eps) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setUndirected(boolean pUndirected) |
public static final String AUTHORITY
public static final String HUB
public void setUndirected(boolean pUndirected)
public boolean getUndirected()
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 void calculateHits(org.gephi.graph.api.Graph graph,
double[] hubValues,
double[] authorityValues,
Map<org.gephi.graph.api.Node,Integer> indices,
boolean isDirected,
double eps)
public HashMap<org.gephi.graph.api.Node,Integer> createIndicesMap(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 setEpsilon(double eps)
eps - public double getEpsilon()
Copyright © 2007–2017. All rights reserved.