graphistry / pygraphistry

PyGraphistry is a Python library to quickly load, shape, embed, and explore big graphs with the GPU-accelerated Graphistry visual graph analyzer
BSD 3-Clause "New" or "Revised" License
2.16k stars 206 forks source link

Way to pass in filters #26

Open lmeyerov opened 9 years ago

lmeyerov commented 9 years ago

( + @thibaudh + @briantrice )

This will have to wait for the API to support it first (...), but I'd like to write something like

g
   .data(nodes=..., edges=...)
   .bind(...)
   .filter('correlation > 10 & degree > 7')
   .plot()

The key is that all data should be passed into the viz so I can interactively change the filters later. (If I didn't want that behavior, I could filter on the data argument.)

lmeyerov commented 9 years ago

Assigning Brian, as it seems more him than Quinn.

Low priority for now. May go up in urgency as @padentomasello @thibaudh and I experiment w/ dashboards/notebooks.

quinnhj commented 9 years ago

There's a bit on me as well, since filtering currently assumes that a non-filtered world has at one point existed. I think it's purely a backend assumption, but complications could arise. E.g., not being able to have the first VBO received already filtered. I'll keep an eye on this as well.

briantrice commented 9 years ago

As long as we pass the metadata along somehow (expression strings or structures), we should be able to express and manipulate this at some point, thank you.

lmeyerov commented 7 years ago

iframe api supports this, but not yet pygraphistry, will keep open for now