AttributeRangeFilter returns main graph when nothing matches filter #435

Closed
mbastian opened this Issue Oct 22, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@mbastian
Member

mbastian commented Oct 22, 2011

When you apply a NodeAttributeRangeFilter with a given range that doesn't match any node (or edge, in the case of an EdgeAttributeRangeFilter), a GraphView which is equal to the original main graph is returned.

Here's an example code, suppose that all the nodes have the attributeColumn in the range [0, +inf[ (i.e. strictly positive):

AttributeRangeFilter filter = new
AttributeRangeBuilder.NodeAttributeRangeFilter(attributeColumn);
Query query = filterController.createQuery(filter);
// this shouldn't match any nodes
filter.setRange(new Range(-10, -5));
filterController.filterVisible(query);


Imported from Launchpad using lp2gh.

@mbastian

This comment has been minimized.

Show comment
Hide comment
@mbastian

mbastian Oct 22, 2011

Member

(by luizribeiro)
I have attached a JUnit Test class in which NodeAttributeRangeFilter fails several tests.

Member

mbastian commented Oct 22, 2011

(by luizribeiro)
I have attached a JUnit Test class in which NodeAttributeRangeFilter fails several tests.

@ghost ghost assigned mbastian Nov 18, 2011

@mbastian mbastian closed this Nov 18, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment