gephi/gephi-plugins — Issue #8: < and > operators don't work as expected
Author: luizribeiro
Created: 2012-02-18 04:30:36+00:00
State: open
Labels: python-scripting-plugin

The "less than" and "greater than" operators do not work properly at the moment.

The real problem here is that the Filters API does not support open intervals on the Range objects.

A quick hack for having these operators to work with Integer attributes would be to just increment/decrement the value (i.e. turn the filter ``attribute > 10`` into ``attribute >= 11``). Even though this would work for integers, this hack wouldn't actually fix the issue for floats and other data types.

I'm not sure defining > and < for floats would make any sense either, since no sane person should use the == operator for floats (hence, the output for >= and > is the same in most cases). In this case, the "Integer hack" I mentioned above would suffice.

Thoughts?