public class Modularity extends Object implements Statistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
MODULARITY_CLASS |
| Constructor and Description |
|---|
Modularity() |
| 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 |
getModularity() |
boolean |
getRandom() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
double |
getResolution() |
boolean |
getUseWeight() |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setRandom(boolean isRandomized) |
void |
setResolution(double resolution) |
void |
setUseWeight(boolean useWeight) |
public static final String MODULARITY_CLASS
public void setRandom(boolean isRandomized)
public boolean getRandom()
public void setUseWeight(boolean useWeight)
public boolean getUseWeight()
public void setResolution(double resolution)
public double getResolution()
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 taskpublic 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 getModularity()
public String getReport()
StatisticsgetReport in interface StatisticsCopyright © 2007–2017. All rights reserved.