Package org.gephi.statistics.spi
Interfaces for creating new statistics and metrics algorihms.
Create a new Metrics
-
Create a new module and set
StatisticsAPIandGraphAPIas dependencies. -
Create a new builder class by implementing
StatisticsBuilder -
Add @ServiceProvider annotation to your builder, that it can
be found by the system. Set
StatisticsBuilderas the annotation parameter. -
Create a new class that implements
Statistics. Write you code in theexecute()method. -
Create a new class implementing
StatisticsUIand add @ServiceProvider annotation as well. -
In both
StatisticsBuilderandStatisticsUI, return yourStatisticsclass object for thegetStatisticsClass()method.
To let your export task be cancelled and its progress watched, implement LongTask interface.
-
Interface Summary Interface Description 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.