New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
Copy link
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.

Copy link
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