Gephi Toolkit Javadoc

Package org.gephi.statistics.spi

Interfaces for creating new statistics and metrics algorihms.

See:
          Description

Interface Summary
DynamicStatistics Define a dynamic statistics implementation.
Statistics Define a Statistics/Metrics execution task, that performs analysis and write results as new attribute columns and/or HTML report.
StatisticsBuilder Statistics builder defines an statistics and is responsible for building new instances.
StatisticsUI Statistics and Metrics UI integration information.
 

Package org.gephi.statistics.spi Description

Interfaces for creating new statistics and metrics algorihms.

Create a new Metrics

  1. Create a new module and set StatisticsAPI, GraphAPI and AttributesAPI as dependencies.
  2. Create a new builder class by implementing StatisticsBuilder
  3. Add @ServiceProvider annotation to your builder, that it can be found by the system. Set StatisticsBuilder as the annotation parameter.
  4. Create a new class that implements Statistics. Write you code in the execute() method.
  5. Create a new class implementing StatisticsUI and add @ServiceProvider annotation as well.
  6. In both StatisticsBuilder and StatisticsUI, return your Statistics class object for the getStatisticsClass()/ method.

To let your export task be cancelled and its progress watched, implement LongTask interface.


Gephi Toolkit Javadoc