Comment 3 for bug 878962

Revision history for this message
Mathieu Bastian (mathieu.bastian) wrote :

I didn't test with your graph yet but I think this bug happens because of some boundary update code. The problem appears when the range is out of the boundary. In Gephi we always show you the range you can filter (with a min and a max) so you can't set up an incorrect filter. For instance if the ma degree is 10 and the min is 3 you can't create a filter [3, 200]. If you do, the system will automatically prune 200 to the limit 10. That is what is happening here I think. The range is changed and therefore the filter doesn't work.

I fixed something in the Range class and did some tests on a random graph. Can you please pull the trunk, build the new toolkit and test?

In addition I fixed another bug so you don't have to call init() on your filters anymore. That should be done by the system, but it was throwing an exception without.

Moreover, you can now execute a layout with N iterations directly from the layout controller:
LayoutController layoutController = Lookup.getDefault().lookup(LayoutController.class);
layoutController.setLayout(layout);
layoutController.executeLayout(200);