gephi/trunk — Issue #64: NodeEqualNumberFilter does not work
Author: mbastian
Created: 2011-10-22 16:42:06+00:00
State: open
Labels: Fix Released, High

Filtering with the Attribute Equals filter doesn't work on an Integer column (and probably doesn't work with other Number types).

Steps to reproduce this bug:

1. Add a few nodes to a newly created graph (say, 3 nodes);
2. Create a new attribute column with the Integer type (let's call this "num");
3. Assign values to each of the nodes (e.g. {1, 2, 3});
4. Try filtering the graph with the Attributes Equal filter on the "num" column, from Filters UI.

The following exception is thrown:
java.lang.IllegalArgumentException: min, max and value must be the same class
at org.gephi.filters.api.Range.tribToBounds(Range.java:356)
at org.gephi.filters.plugin.attribute.AttributeEqualBuilder$EqualNumberFilter.refreshValues(AttributeEqualBuilder.java:390)
at org.gephi.filters.plugin.attribute.AttributeEqualBuilder$EqualNumberFilter.init(AttributeEqualBuilder.java:337)
at org.gephi.filters.FilterProcessor.processNodeFilter(FilterProcessor.java:110)
at org.gephi.filters.FilterProcessor.process(FilterProcessor.java:84)
at org.gephi.filters.FilterThread.filter(FilterThread.java:128)
[catch] at org.gephi.filters.FilterThread.run(FilterThread.java:99)

I have the same problem when trying to filter with the Filters API (i.e. through code, without the UI).