-
Notifications
You must be signed in to change notification settings - Fork 191
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
Graph traversals using QueryBuilder #3535
Comments
A (large) part of what you describe all ready exists and is provided by the |
Yes, you can do this at the first level, i.e, |
I think that we should clarify the goal (for me: writing faster common qb queries) and in this case it would be nice to see a couple of commands where writing with the new syntax is a big advantage than writing a qb from scratch (that for novice users takes some time). Also, if the purpose is solely to reduce typing (which I think that by itself is a noble goal to attract users), should we then decide these commands are really shortcuts, and e.g. use |
A new Graph Traversal tool was added to AiiDA (#3686), solving this ussue or making it obsolete |
A long time ago in a galaxy far far away we discussed the possibility of having an additional tool for graph traversal queries using the QueryBuilder, as in:
node = load_node() node.qb.incoming(filters={}, project=...).outgoing(filters={}, project=....).all() # get all outgoing of all incoming of node
This functionality existed before in a very preliminary state (undocumented and untested). Some of it disappeared (see #3526). If we want this functionality as a quick way to traverse a graph around a given entry, we should properly add this light-weight feature based on the newest naming conventions and supply tests and documentation. If this functionality is not wanted, we have to remove some legacy functions in the QB. @sphuber @giovannipizzi @CasperWA @ltalirz
The text was updated successfully, but these errors were encountered: