public class EigenvectorCentrality extends Object implements Statistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
EIGENVECTOR |
| Constructor and Description |
|---|
EigenvectorCentrality() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateEigenvectorCentrality(org.gephi.graph.api.Graph graph,
double[] eigCentralities,
HashMap<Integer,org.gephi.graph.api.Node> indicies,
HashMap<org.gephi.graph.api.Node,Integer> invIndicies,
boolean directed,
int numIterations) |
boolean |
cancel()
Cancel the task.
|
void |
execute(org.gephi.graph.api.Graph graph) |
void |
execute(org.gephi.graph.api.GraphModel graphModel)
Executes the statistics algorithm.
|
void |
fillIndiciesMaps(org.gephi.graph.api.Graph graph,
double[] eigCentralities,
HashMap<Integer,org.gephi.graph.api.Node> indicies,
HashMap<org.gephi.graph.api.Node,Integer> invIndicies) |
int |
getNumRuns() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
boolean |
isDirected() |
void |
setDirected(boolean isDirected) |
void |
setNumRuns(int numRuns) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
public static final String EIGENVECTOR
public void setNumRuns(int numRuns)
public int getNumRuns()
public boolean isDirected()
public void setDirected(boolean isDirected)
isDirected - 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 - public void execute(org.gephi.graph.api.Graph graph)
public void fillIndiciesMaps(org.gephi.graph.api.Graph graph,
double[] eigCentralities,
HashMap<Integer,org.gephi.graph.api.Node> indicies,
HashMap<org.gephi.graph.api.Node,Integer> invIndicies)
public double calculateEigenvectorCentrality(org.gephi.graph.api.Graph graph,
double[] eigCentralities,
HashMap<Integer,org.gephi.graph.api.Node> indicies,
HashMap<org.gephi.graph.api.Node,Integer> invIndicies,
boolean directed,
int numIterations)
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 - the progress ticket for this taskCopyright © 2007–2017. All rights reserved.