Gephi Toolkit Javadoc

org.gephi.statistics.plugin
Class Degree

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

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


Field Summary
static java.lang.String AVERAGE_DEGREE
           
static java.lang.String DEGREE
           
static java.lang.String INDEGREE
           
static java.lang.String OUTDEGREE
           
 
Constructor Summary
Degree()
           
 
Method Summary
 boolean cancel()
          Cancel the task.
 void execute(GraphModel graphModel, AttributeModel attributeModel)
          Executes the statistics algorithm.
 void execute(HierarchicalGraph graph, AttributeModel attributeModel)
           
 double getAverageDegree()
           
 java.lang.String getDirectedReport()
           
 java.lang.String getReport()
          Returns an HTML string that displays the statistics result.
 void setProgressTicket(ProgressTicket progressTicket)
          Set the progress ticket for the long task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEGREE

public static final java.lang.String INDEGREE
See Also:
Constant Field Values

OUTDEGREE

public static final java.lang.String OUTDEGREE
See Also:
Constant Field Values

DEGREE

public static final java.lang.String DEGREE
See Also:
Constant Field Values

AVERAGE_DEGREE

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

Degree

public Degree()
Method Detail

getAverageDegree

public double getAverageDegree()
Returns:

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 -
attributeModel - The elements attributes, and where to write table results

execute

public void execute(HierarchicalGraph graph,
                    AttributeModel attributeModel)

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:

getDirectedReport

public java.lang.String getDirectedReport()

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:

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 -

Gephi Toolkit Javadoc