Gephi Toolkit Javadoc

org.gephi.statistics.plugin
Class GraphDensity

java.lang.Object
  extended by org.gephi.statistics.plugin.GraphDensity
All Implemented Interfaces:
Statistics

public class GraphDensity
extends java.lang.Object
implements Statistics

Author:
pjmcswee

Constructor Summary
GraphDensity()
           
 
Method Summary
 void execute(GraphModel graphModel, AttributeModel attributeModel)
          Executes the statistics algorithm.
 double getDensity()
           
 boolean getDirected()
           
 java.lang.String getReport()
          Returns an HTML string that displays the statistics result.
 void setDirected(boolean isDirected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphDensity

public GraphDensity()
Method Detail

setDirected

public void setDirected(boolean isDirected)

getDirected

public boolean getDirected()

getDensity

public double getDensity()

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

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:

Gephi Toolkit Javadoc