← Back to team overview

gephi.team team mailing list archive

[Bug 590226] Re: Impossible to cancel the Average Path Length Statistic calculation

 

The bug arises when more than one StatisticsUI is associated to one
Statistic. It comes from the fact that all StatisticsFrontEnd are
refreshed each time one StatiscticsUI is set running (line 103 of
StatisticsControllerImpl). This refreshing process has for effect to set
the currentStatistic variable to null of the StatisticsFrontEnd
associated with the "Average Path Length" Statistic. And because of
that, it is impossible to cancel the Statistic.

The fix provided makes sure all StatisticsUI are added to the
runningList before firing the ChangeEvent that refresh all
StatisticsFrontEnd. By doing so it is now possible to cancel the
"Average Path Length" Statistic by clicking on "Cancel" next to the name
of the Statistic. However, it is not possible to do so by clicking on
"Cancel"  next to the "Network Diameter" Statistic. To make that
possible, one way would be to add a getStatistic method in the
StatisticsUI class so that each StatisticsFrontEnd could update its
currentStatistic variable with the instance of Statistic contained in
its statisticsUI variable.

** Changed in: gephi
       Status: Confirmed => In Progress

-- 
Impossible to cancel the Average Path Length Statistic calculation
https://bugs.launchpad.net/bugs/590226
You received this bug notification because you are a member of Gephi
Team, which is subscribed to 0.7.

Status in Gephi - Network exploration and manipulation: In Progress
Status in Gephi 0.7 series: Confirmed

Bug description:
- Open a graph with a large number of nodes (Power Grid.gml for instance)
- Run the average path length statistic (undirected)
- While the operation is running, clicking on "cancel" has no effect (The only way to cancel the calculation is with the cross button next to the progress bar)