Skip to content
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

liststring in filters/queries values just listed as array.tostring #2061

Closed
kyleboyle opened this issue Dec 10, 2018 · 2 comments
Closed

liststring in filters/queries values just listed as array.tostring #2061

kyleboyle opened this issue Dec 10, 2018 · 2 comments
Assignees
Labels
Filters Wishlist New features (not a bug)
Milestone

Comments

@kyleboyle
Copy link

Expected Behavior

I expected to be able to work with the list items as a set (eg does it contain a specific value or not)

Steps to Reproduce

screen shot 2018-12-10 at 11 05 20 am

<attribute id="2" title="suppressedTypes" type="liststring"/>

Your Environment

  • Version used: Gephi 0.9.2
  • Java version: 8
  • Operating System: macos
@mbastian
Copy link
Member

There is indeed some gaps in filtering array columns. There isn't any filters that work with the elements IN the list.

Definition of done

  • Add a new 'Contains' category under 'Attributes' designed to only work with list columns. Only nodes/edges with the provided string as one of the element in the list would be returned. The UI could be either the same as 'Equal'.
  • Add a new 'Partition for lists' category under Attributes designed to work like a partition filter but with the elements in the list flattened. So for instance if a graph has 2 nodes with a list column with [a,b] and [a,b,c] the partition chooser would have 3 items a, b and c. Having percentages would be nice to have.

@mbastian
Copy link
Member

I completed the work:

  • New "List Contains" filter under Attributes. Exact match on the list element, based on the user input. Only one element can be matched.
  • New option on the existing "Partition" filter. When the attribute is a list, one can right click and select the "Flatten list" option, which will allow the selection of elements in the list.

Screenshot 2022-11-25 at 20 02 22

One can use this example GEXF with a list attribute for testing
test.gexf.zip

Repository owner moved this from In Progress to Done in Gephi Retreat 2022 Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Filters Wishlist New features (not a bug)
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants