Gephi Toolkit Javadoc

org.gephi.statistics.plugin
Class ClusteringCoefficient

java.lang.Object
  extended by org.gephi.statistics.plugin.ClusteringCoefficient
All Implemented Interfaces:
Statistics, LongTask

public class ClusteringCoefficient
extends java.lang.Object
implements Statistics, LongTask

Author:
Patrick J. McSweeney

Field Summary
static java.lang.String CLUSTERING_COEFF
           
 
Constructor Summary
ClusteringCoefficient()
           
 
Method Summary
 boolean cancel()
          Cancel the task.
 void execute(GraphModel graphModel, AttributeModel attributeModel)
          Executes the statistics algorithm.
 void execute(HierarchicalGraph hgraph, AttributeModel attributeModel)
           
 double getAverageClusteringCoefficient()
           
 double[] getCoefficientReuslts()
           
 java.lang.String getReport()
          Returns an HTML string that displays the statistics result.
 double[] getTriangesReuslts()
           
 boolean isDirected()
           
 void setDirected(boolean isDirected)
           
 void setProgressTicket(ProgressTicket ProgressTicket)
          Set the progress ticket for the long task.
 void triangles(HierarchicalGraph hgraph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLUSTERING_COEFF

public static final java.lang.String CLUSTERING_COEFF
See Also:
Constant Field Values
Constructor Detail

ClusteringCoefficient

public ClusteringCoefficient()
Method Detail

getAverageClusteringCoefficient

public double getAverageClusteringCoefficient()

execute

public void execute(GraphModel graphModel,
                    AttributeModel attributeModel)
Description copied from interface: Statistics
Executes the statistics algorithm.

It is preferable to work on visible graphs, to be synchronized with the visualization.

Specified by:
execute in interface Statistics
Parameters:
graphModel - The graph topology
attributeModel - The elements attributes, and where to write table results

execute

public void execute(HierarchicalGraph hgraph,
                    AttributeModel attributeModel)

triangles

public void triangles(HierarchicalGraph hgraph)

getReport

public java.lang.String getReport()
Description copied from interface: Statistics
Returns an HTML string that displays the statistics result. Can contains complex HTML snippets and images.

Specified by:
getReport in interface Statistics
Returns:
An HTML string that displays the results for this Statistics

setDirected

public void setDirected(boolean isDirected)

isDirected

public boolean isDirected()

cancel

public boolean cancel()
Description copied from interface: LongTask
Cancel the task. Returns true if the task has been sucessfully cancelled, false otherwise.

Specified by:
cancel in interface LongTask
Returns:
true if the task has been sucessfully cancelled, false otherwise

setProgressTicket

public void setProgressTicket(ProgressTicket ProgressTicket)
Description copied from interface: LongTask
Set the progress ticket for the long task. Can't be null.

Specified by:
setProgressTicket in interface LongTask
Parameters:
ProgressTicket - the progress ticket for this task

getCoefficientReuslts

public double[] getCoefficientReuslts()

getTriangesReuslts

public double[] getTriangesReuslts()

Gephi Toolkit Javadoc