public class Degree extends Object implements Statistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
AVERAGE_DEGREE |
static String |
DEGREE |
static String |
INDEGREE |
static String |
OUTDEGREE |
| Constructor and Description |
|---|
Degree() |
| Modifier and Type | Method and Description |
|---|---|
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 INDEGREE
public static final String OUTDEGREE
public static final String DEGREE
public static final String AVERAGE_DEGREE
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 - public void execute(org.gephi.graph.api.Graph graph)
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 - Copyright © 2007–2017. All rights reserved.