Package org.gephi.statistics.plugin
Class Modularity
- java.lang.Object
-
- org.gephi.statistics.plugin.Modularity
-
- All Implemented Interfaces:
Statistics,LongTask
public class Modularity extends Object implements Statistics, LongTask
- Author:
- pjmcswee
-
-
Field Summary
Fields Modifier and Type Field Description static StringMODULARITY_CLASS
-
Constructor Summary
Constructors Constructor Description Modularity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Cancel the task.voidexecute(org.gephi.graph.api.Graph graph)voidexecute(org.gephi.graph.api.GraphModel graphModel)Executes the statistics algorithm.intgetInitialModularityClassIndex()doublegetModularity()booleangetRandom()StringgetReport()Returns an HTML string that displays the statistics result.doublegetResolution()booleangetUseWeight()voidsetInitialModularityClassIndex(int initialModularityClassIndex)voidsetProgressTicket(ProgressTicket progressTicket)Set the progress ticket for the long task.voidsetRandom(boolean isRandomized)voidsetResolution(double resolution)voidsetUseWeight(boolean useWeight)
-
-
-
Field Detail
-
MODULARITY_CLASS
public static final String MODULARITY_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRandom
public boolean getRandom()
-
setRandom
public void setRandom(boolean isRandomized)
-
getUseWeight
public boolean getUseWeight()
-
setUseWeight
public void setUseWeight(boolean useWeight)
-
getResolution
public double getResolution()
-
setResolution
public void setResolution(double resolution)
-
getInitialModularityClassIndex
public int getInitialModularityClassIndex()
-
setInitialModularityClassIndex
public void setInitialModularityClassIndex(int initialModularityClassIndex)
-
cancel
public boolean cancel()
Description copied from interface:LongTaskCancel the task. Returnstrueif the task has been successfully cancelled,falseotherwise.
-
setProgressTicket
public void setProgressTicket(ProgressTicket progressTicket)
Description copied from interface:LongTaskSet the progress ticket for the long task. Can't be null.- Specified by:
setProgressTicketin interfaceLongTask- Parameters:
progressTicket- the progress ticket for this task
-
execute
public void execute(org.gephi.graph.api.GraphModel graphModel)
Description copied from interface:StatisticsExecutes the statistics algorithm.It is preferable to work on visible graphs, to be synchronized with the visualization.
- Specified by:
executein interfaceStatistics- Parameters:
graphModel- The graph model
-
execute
public void execute(org.gephi.graph.api.Graph graph)
-
getModularity
public double getModularity()
-
getReport
public String getReport()
Description copied from interface:StatisticsReturns an HTML string that displays the statistics result. Can contains complex HTML snippets and images.- Specified by:
getReportin interfaceStatistics- Returns:
- An HTML string that displays the results for this Statistics
-
-