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

Add path search with chain syntax #6

Open
bgajdero opened this issue Mar 8, 2024 · 0 comments
Open

Add path search with chain syntax #6

bgajdero opened this issue Mar 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bgajdero
Copy link
Contributor

bgajdero commented Mar 8, 2024

Add search notation by chaining properties to path search in graph.
For example, find all output hypothesis starting with Ks where:
Ks with ks_inputs in [3,4], then for all ksars have ks_status.

Example code:
Ks.search().ks_inputs([3,4]).ks_status(1).output_hypotheses

Ks.search().ks_inputs.ks_status.output_hypotheses

Using existing functions for path search, adopt dot notation for chaining values:
Node._path_search(preds={hasKsInputs, hasKsStatus, hasOutputHypotheses})

@bgajdero bgajdero added the enhancement New feature or request label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants