public class WeightedDegree extends Object implements Statistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
WDEGREE |
static String |
WINDEGREE |
static String |
WOUTDEGREE |
| Constructor and Description |
|---|
WeightedDegree() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateAverageWeightedDegree(org.gephi.graph.api.Graph graph,
boolean isDirected,
boolean updateAttributes) |
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.
|
double |
getAverageDegree() |
String |
getDirectedReport() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
public static final String WDEGREE
public static final String WINDEGREE
public static final String WOUTDEGREE
public double getAverageDegree()
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 double calculateAverageWeightedDegree(org.gephi.graph.api.Graph graph,
boolean isDirected,
boolean updateAttributes)
public String getReport()
StatisticsgetReport in interface Statisticspublic String getDirectedReport()
public 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.