public class ClusteringCoefficient extends Object implements Statistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTERING_COEFF |
| Constructor and Description |
|---|
ClusteringCoefficient() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the task.
|
HashMap<String,Double> |
computeClusteringCoefficient(org.gephi.graph.api.Graph graph,
org.gephi.statistics.plugin.ArrayWrapper[] currentNetwork,
int[] currentTriangles,
double[] currentNodeClustering,
boolean directed) |
int |
createIndiciesMapAndInitNetwork(org.gephi.graph.api.Graph graph,
HashMap<org.gephi.graph.api.Node,Integer> indicies,
org.gephi.statistics.plugin.ArrayWrapper[] networks,
int currentProgress) |
void |
execute(org.gephi.graph.api.Graph graph) |
void |
execute(org.gephi.graph.api.GraphModel graphModel)
Executes the statistics algorithm.
|
double |
getAverageClusteringCoefficient() |
double[] |
getCoefficientReuslts() |
String |
getReport()
Returns an HTML string that displays the statistics result.
|
double[] |
getTriangesReuslts() |
void |
initStartValues(org.gephi.graph.api.Graph graph) |
boolean |
isDirected() |
void |
setDirected(boolean isDirected) |
void |
setProgressTicket(ProgressTicket ProgressTicket)
Set the progress ticket for the long task.
|
void |
triangles(org.gephi.graph.api.Graph graph) |
public static final String CLUSTERING_COEFF
public double getAverageClusteringCoefficient()
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 void triangles(org.gephi.graph.api.Graph graph)
public HashMap<String,Double> computeClusteringCoefficient(org.gephi.graph.api.Graph graph, org.gephi.statistics.plugin.ArrayWrapper[] currentNetwork, int[] currentTriangles, double[] currentNodeClustering, boolean directed)
public void initStartValues(org.gephi.graph.api.Graph graph)
public int createIndiciesMapAndInitNetwork(org.gephi.graph.api.Graph graph,
HashMap<org.gephi.graph.api.Node,Integer> indicies,
org.gephi.statistics.plugin.ArrayWrapper[] networks,
int currentProgress)
public String getReport()
StatisticsgetReport in interface Statisticspublic void setDirected(boolean isDirected)
public boolean isDirected()
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 double[] getCoefficientReuslts()
public double[] getTriangesReuslts()
Copyright © 2007–2017. All rights reserved.